-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
40 lines (32 loc) · 1.15 KB
/
config.py
File metadata and controls
40 lines (32 loc) · 1.15 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
"""
Configuration settings for the Restaurant RAG System
"""
import os
from dotenv import load_dotenv
load_dotenv()
# API Keys
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "your-openai-api-key")
SERPAPI_KEY = os.getenv("SERPAPI_KEY", "your-serpapi-key") # For Google search
YELP_API_KEY = os.getenv("YELP_API_KEY", "your-yelp-api-key") # Optional
# LLM Settings
LLM_MODEL = "gpt-4o-mini" # or "gpt-4o" for better results
TEMPERATURE = 0.3
MAX_TOKENS = 2000
# Vector Store Settings
EMBEDDING_MODEL = "text-embedding-3-small"
CHUNK_SIZE = 500
CHUNK_OVERLAP = 50
# Scraping Settings
MAX_RESTAURANTS_TO_SCRAPE = 20
REQUEST_DELAY = 1.0 # Seconds between requests to avoid rate limiting
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
# Search Settings
TOP_K_RESULTS = 5
# Supported Cities (can be extended)
SUPPORTED_CITIES = [
"new york", "los angeles", "chicago", "houston", "phoenix",
"philadelphia", "san antonio", "san diego", "dallas", "san jose",
"austin", "jacksonville", "fort worth", "columbus", "charlotte",
"seattle", "denver", "boston", "detroit", "nashville",
"london", "paris", "berlin", "tokyo", "sydney"
]