Files
Ai/config/rag_config.yaml
T
sajad-dev 197f70ee12 Add Qdrant and ChromaDB support to the project
- Added Qdrant service to both docker-compose files for production and development.
- Updated environment variables in .env.example and settings.py to include Qdrant configuration.
- Included necessary dependencies for Qdrant and ChromaDB in requirements.txt.
- Updated .gitignore to exclude ChromaDB data files.
2026-02-27 19:37:02 +03:30

24 lines
667 B
YAML

# تنظیمات RAG برای پایگاه دانش CropLogic
embedding:
provider: "avalai" # Avalai API (OpenAI-compatible)
model: "text-embedding-3-small"
base_url: "https://api.avalai.ir/v1"
api_key_env: "AVALAI_API_KEY"
batch_size: 32
# فاز یک: Qdrant به‌عنوان vector store
qdrant:
host: "localhost" # یا qdrant در Docker
port: 6333
collection_name: "croplogic_kb"
vector_size: 1536 # متناسب با text-embedding-3-small
chunking:
max_chunk_tokens: 500
overlap_tokens: 50
tone_file: "config/tone.txt"
knowledge_base_path: "config/knowledge_base"
user_info_path: "config/user_info"