-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (49 loc) · 1.84 KB
/
.env.example
File metadata and controls
66 lines (49 loc) · 1.84 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# AI PDF Search Engine Configuration
# ========================================
# REQUIRED API KEYS
# ========================================
# OpenAI API Key - Get from https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here
# Pinecone API Key - Get from https://app.pinecone.io/
PINECONE_API_KEY=your_pinecone_api_key_here
PINECONE_INDEX_NAME=pdf-search-engine
# Supabase Configuration - Get from https://supabase.com/
SUPABASE_URL=your_supabase_project_url
SUPABASE_KEY=your_supabase_anon_key
# ========================================
# EMBEDDING CONFIGURATION
# ========================================
# OpenAI Embedding Model Settings
EMBEDDING_MODEL=text-embedding-3-small
EMBEDDING_DIMENSION=512
# Document Processing Settings
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
# ========================================
# RAG OPTIMIZATION SETTINGS
# ========================================
# Document Relevance Threshold (0.0-1.0)
# Higher values = more strict document matching
# Lower values = more permissive document matching
SIMILARITY_THRESHOLD=0.7
# Maximum documents to retrieve per query
# More documents = better context but slower responses
MAX_DOCUMENTS_PER_QUERY=5
# LLM Response Settings
# Temperature: 0 = deterministic, 1 = creative
LLM_TEMPERATURE=0
# Maximum tokens in response (affects response length)
MAX_TOKENS=1000
# ========================================
# CHATBOT INTERFACE SETTINGS
# ========================================
# Maximum chat messages to keep in memory
# Higher values = better conversation context but more memory usage
MAX_CHAT_HISTORY=20
# Whether to display source documents in the UI
ENABLE_SOURCE_DISPLAY=true
# ========================================
# OPTIONAL: PINECONE ENVIRONMENT
# ========================================
# Pinecone Environment (usually auto-detected)
PINECONE_ENVIRONMENT=gcp-starter