Ragdocs هو حل متطور مفتوح المصدر يسبب ثورة في كيفية تفاعلك مع الوثائق. من خلال الجمع بين قوة LLMs المحلية مع الجيل المتطرف في حالة التغذية (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
تثبيت node.js مع NVM :
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التبعيات الرئيسية:
- Llama-Index: 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هذا المشروع مرخص بموجب ترخيص معهد ماساتشوستس للتكنولوجيا. انظر ملف الترخيص للحصول على التفاصيل.
إذا أضاف هذا المشروع قيمة إلى عملك ، فيرجى إعطائها نجمة!
دعمكم يحدث فرقًا ويشجع المزيد من التطوير. ردود الفعل واقتراحات الميزات نرحب دائمًا!