LOG
A financial chat application powered by LangChain, LangGraph, OpenBB, Claude 3 Opus, and Streamlit.
If you’re curious about the journey of building this project, check out these blog articles:
poetry install
.env
export OPENAI_API_KEY=<your-api-key> export OPENBB_TOKEN=<your-openbb-token> export TIINGO_API_KEY=<your-tiingo-api-key> export IMGUR_CLIENT_ID=<your-imgur-client-id> export IMGUR_CLIENT_SECRET=<your-imgur-client-secret> export FMP_API_KEY=<fmp-api-key> export INTRINIO_API_KEY=<intrinio-api-key>
Run the Streamlit app:
streamlit run app/ui.py
Start the FastAPI server:
uvicorn app.server:app --host 0.0.0.0 --port 8080
You can view the Swagger Docs and test out the Playground, courtesy of LangServe.
Build the Docker image:
docker build -t financial-chat .
Run the Docker container:
docker run -p 8080:8080 --env-file .env financial-chat
app/
chains/
features/
tools/
ui.py
server.py
Dockerfile
pyproject.toml
README.md
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
financial-chat
A financial chat application powered by LangChain, LangGraph, OpenBB, Claude 3 Opus, and Streamlit.
Blog Articles
If you’re curious about the journey of building this project, check out these blog articles:
Features
Installation
.envat the project root for these:Usage
Streamlit UI
Run the Streamlit app:
FastAPI Server
Start the FastAPI server:
You can view the Swagger Docs and test out the Playground, courtesy of LangServe.
Docker
Build the Docker image:
Run the Docker container:
Project Structure
app/: Main application codechains/: LangChain agent and promptsfeatures/: Feature-specific code (technical analysis, charting)tools/: Custom tools for data retrieval and analysisui.py: Streamlit UIserver.py: FastAPI serverDockerfile: Dockerfile for building the applicationpyproject.toml: Project dependencies and configurationREADME.md: Project documentationFlowchart