contract qa high precision rag
1.0.0
该项目着重于使用检索增强发电(RAG)构建高精度合同分析工具。这种方法利用大型语言模型(LLM)的力量从外部知识来源中检索相关信息,在这种情况下是法律合同。目的是创建一个可以准确有效地回答有关合同内容的问题的系统,并充当虚拟法律助理。
project_root/
├── .github/ # GitHub Actions workflows
├── frontend/ # React frontend code
├── backend/ # FastAPI backend code
├── src/ # Source code for RAG pipeline, utils, etc.
├── tests/ # Unit and integration tests
├── README.md # This file
└── requirements.txt # Project dependencies
git clone [email protected]:hillaryke/contract-qa-high-precision-rag.git
cd contract-qa-high-precision-rag
将您的OpenAI_API_KEY添加到项目根目录中的.ENV文件中。
pip install -r requirements.txt
运行命令以启动FastAPI服务器:
make run-server
服务器将从http:// localhost:8000/
make run-frontend
在浏览器上,从http:// localhost访问前端应用程序:3000/
要运行测试,请使用以下命令:
make test
该项目是根据MIT许可证获得许可的 - 有关详细信息,请参见许可证文件。
如有任何疑问或支持,请通过电子邮件Hillary K与我联系。
享受!