Dash-LangChain App Building Challenge

StockSavvy

Happy New Year everyone! I wanted to share a dash app that I developed for this competition I’m calling StockSavvy. This app showcases Dash integrated with LangChain in order to provide users with an AI agent that can read recent news stories about stocks in the S&P500, summarize the news and answer questions about it. It uses the LangChain conversational retrieval agent, so the agent will remember the previous elements of the conversation, which allows you to ask follow up questions.

Demo
You can test the live demo here:
http://34.207.77.108:8050/market

This app does require an OpenAI API key as well as an AlphaVantage API Key in order to download market news through. You can get a free API key here: Customer Support | Alpha Vantage

Features
The main feature is the conversational agent that answers questions about stock market news. The page also lists up to 50 news stories that are organized in a dash-ag-grid table for easy search. There is a polar graph that shows the relative strength of different financial metrics (price to earnings, debt to equity, etc) for each stock relative to the other stocks in the S&P500, as well as a chart of the stock price over the past 2 years.

Github Code
The source code can be found here:

Acknowledgements
Appreciate the Plotly team for the fantastic tools and the community for the opportunity to learn.

Troy Scribner

1 Like