RagDocs
1.0.0
Ragdocs是一種尖端的開源解決方案,它徹底改變了您與文檔的互動方式。通過將本地LLM的力量與最先進的檢索型發電(RAG)相結合,開發人員可以立即從文檔中獲得準確的答案,而無需任何API成本。
告別昂貴的API電話和隱私問題。使用Ragdocs ,您的所有文檔都保持私密,同時提供類似Chatgpt的互動。它是由Milvus Vector Search和Next.js構建的,它已經準備就緒且易於部署。通過完整的數據隱私和沒有使用費來體驗文檔搜索的未來。
ragdocs/
├── data/ # Documentation storage
│ ├── milvus_docs/ # Milvus documentation
│ ├── qdrant_docs/ # Qdrant documentation
│ └── weaviate_docs/ # Weaviate documentation
├── milvus/ # Milvus standalone setup
│ └── standalone_embed.sh # Milvus standalone script
├── ragdocs_api/ # FastAPI backend
│ ├── conversation_api.py # Chat API endpoints
│ ├── file_tracker.py # Document change tracking
│ ├── llm_provider.py # LLM integration (Ollama)
│ ├── markdown_processor.py # Markdown processing
│ └── rag_system.py # Core RAG implementation
└── ragdocs_frontend/ # Next.js frontend
└── src/ # Frontend source code
使用NVM安裝node.js:
nvm install 20.17.0
nvm use 20.17.0git clone https://github.com/AlexisBalayre/RagDocs.git
cd RagDocs # Install poetry if not already installed
curl -sSL https://install.python-poetry.org | python3 -
# Install project dependencies
poetry install
poetry shell關鍵依賴性:
- 駱駝指數:0.11.22
- FastApi:0.115.4
- Milvus-Lite:2.4.10
- 句子轉換器:2.7.0
- 火炬:2.5.1
cd ragdocs_frontend
yarncp example.env.local .env.local
# Edit .env.local with your configuration cd milvus
bash standalone_embed.sh startpoetry run uvicorn ragdocs_api.conversation_api:app --reload cd ragdocs_frontend
yarn devdata/下方的文件夾中。為密鑰設置編輯.env.local文件:
MILVUS_HOST = localhost
MILVUS_PORT = 19530
OLLAMA_MODEL = llama3.2 鼓勵捐款!請按照以下步驟:
git checkout -b feature/AmazingFeaturegit commit -m ' Add some AmazingFeature 'git push origin feature/AmazingFeature該項目已根據MIT許可獲得許可。有關詳細信息,請參見許可證文件。
如果此項目為您的工作增加價值,請給它星星!
您的支持會有所作為,並鼓勵進一步發展。總是歡迎反饋和功能建議!