financial chat
1.0.0
由 LangChain、LangGraph、OpenBB、Claude 3 Opus 和 Streamlit 提供支持的金融聊天应用程序。
如果您对构建此项目的过程感到好奇,请查看以下博客文章:
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 >
运行 Streamlit 应用程序:
streamlit run app/ui.py
启动 FastAPI 服务器:
uvicorn app.server:app --host 0.0.0.0 --port 8080
您可以查看 Swagger 文档并测试 Playground(由 LangServe 提供)。
构建 Docker 镜像:
docker build -t financial-chat .
运行 Docker 容器:
docker run -p 8080:8080 --env-file .env financial-chat
app/
: 主要应用程序代码chains/
: LangChain 代理及提示features/
: 特定功能的代码(技术分析、图表)tools/
:用于数据检索和分析的自定义工具ui.py
: Streamlit UIserver.py
:FastAPI服务器Dockerfile
:用于构建应用程序的 Dockerfilepyproject.toml
:项目依赖项和配置README.md
:项目文档