LangChain: Use the Power of GPT to Chat with Earnings Reports of Companies
![LangChain: Use the Power of GPT to Chat with Earnings Reports of Companies](https://assets-proxy.steadyhq.com/https%3A%2F%2Fsubstackcdn.com%2Fimage%2Ffetch%2Fw_1456%2Cc_limit%2Cf_auto%2Cq_auto%3Agood%2Cfl_progressive%3Asteep%2Fhttps%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252F72cc515b-530f-46a8-8d1b-bdb4c4430157_1600x1067.png?auto=compress&w=800&fit=max&dpr=2&fm=webp&s=e53e439931c14c22f077d2baa3646bdd)
Do you want to compare many quarterly reports of public companies? It’s tedious to look through all the quarterly reports by hand. An assistant would be very helpful, wouldn’t it? That’s our motivation to build an AI assistant for comparing different earnings reports. Be curious!
We implement the assistant with the frameworks LangChain and Plotly Dash in Python. If you want to learn more about Plotly Dash, we recommend our article “A Comprehensive Guide to Building Enterprise-Level Plotly Dash Apps (S'ouvre dans une nouvelle fenêtre)”. This article shows you how to build a production-ready web app with Plotly Dash and Docker. If you are a LangChain beginner, we recommend our introduction article about LangChain.
https://hub.tinztwins.de/constructing-a-chatgpt-like-app-using-langchain-and-plotly-dash (S'ouvre dans une nouvelle fenêtre)The article is a perfect starting point for understanding the basics of LangChain, and it’s essential for understanding the concepts in this article.
Now let’s start with what you can expect in this article.
What can you expect?
In this article, we’ll analyse the Q1–2023 earnings reports of Tesla, Mercedes Benz and BMW. First, we’ll give you a technical overview. The overview shows you the individual components which we need. Furthermore, we explain the loading of the PDF documents (earnings reports), the data preparation and how agents in LangChain work.
Do you want to know what the finished app looks like? Here’s a demo of the final web app:
![LangChain: Chat with earnings reports demo (GIF by authors)](https://assets-proxy.steadyhq.com/https%3A%2F%2Fsubstackcdn.com%2Fimage%2Ffetch%2Fw_1456%2Cc_limit%2Cf_auto%2Cq_auto%3Agood%2Cfl_lossy%2Fhttps%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252F27af7745-6920-46d5-9092-d15f71027fd0_800x384.gif?auto=compress&w=800&fit=max&dpr=2&fm=webp&s=0ad539fef4f16df34a186a830fcdc61f)
LangChain: Chat with earnings reports demo (GIF by authors)
We’ve no time to waste. Let’s jump into the setup!
To read this post you'll need to become a member. Members help us fund our work to ensure we can stick around long-term.
See our plans (S'ouvre dans une nouvelle fenêtre)
Déjà membre ? Connexion (S'ouvre dans une nouvelle fenêtre)