-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (28 loc) · 866 Bytes
/
.env.example
File metadata and controls
34 lines (28 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Environment variables for the RAG application
# FastAPI settings
API_V1_STR=/api
PROJECT_NAME=Retrieval Augmented Generation
# Gemini settings
GEMINI_API_KEY=
OCR_MODEL=gemini-2.5-flash
GEMINI_MAX_CONCURRENT_REQUESTS=8
GEMINI_MAX_ATTEMPTS=3
# Database settings
ASYNC_DATABASE_URL=postgresql+asyncpg://postgres:yourSecurePassword@localhost:5432/rag
SYNC_DATABASE_URL=postgresql://postgres:yourSecurePassword@localhost:5432/rag
# Hugging Face models
HF_SPARSE_EMBEDDINGS_MODEL=naver/splade-cocondenser-ensembledistil
HF_DENSE_EMBEDDINGS_MODEL=thenlper/gte-small
HF_DENSE_EMBEDDINGS_MAX_LENGTH=512
HF_DENSE_EMBEDDINGS_DIMENSION=384
# Qdrant settings
QDRANT_HOST=localhost
QDRANT_PORT=6333
QDRANT_COLLECTION_NAME=documents
QDRANT_TIMEOUT=30
# Retrieval settings
DENSE_RETRIEVAL_K=10
SPARSE_RETRIEVAL_K=10
HYBRID_RETRIEVAL_K=10
HYBRID_RETRIEVAL_ALPHA=0.5
RRF_K=60