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與我聯繫。
享受!