File size: 991 Bytes
0f77bc1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
# .env.example
# Copy this to .env and fill in your values

# ============== LLM Provider ==============
# Options: ollama, replicate, huggingface
LLM_PROVIDER=ollama

# Model to use (varies by provider)
LLM_MODEL=mistral

# ============== API Tokens (if using cloud LLMs) ==============
# Get free token from https://replicate.com
REPLICATE_API_TOKEN=

# Get free token from https://huggingface.co/settings/tokens
HF_API_TOKEN=

# HuggingFace dataset repository (for storing data)
HF_DATASET_REPO=your-username/sap-dataset

# ============== Embeddings ==============
# HuggingFace model for embeddings (smaller is faster)
# Options: all-MiniLM-L6-v2 (fast), all-mpnet-base-v2 (better), etc.
EMBEDDINGS_MODEL=all-MiniLM-L6-v2

# ============== RAG Configuration ==============
RAG_CHUNK_SIZE=512
RAG_CHUNK_OVERLAP=100
RAG_TOP_K=5

# ============== Data Paths ==============
DATA_DIR=data
DATASET_PATH=data/sap_dataset.json
INDEX_PATH=data/rag_index.faiss
METADATA_PATH=data/rag_metadata.pkl