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许可获得许可。有关详细信息,请参见许可证文件。
如果此项目为您的工作增加价值,请给它星星!
您的支持会有所作为,并鼓励进一步发展。总是欢迎反馈和功能建议!