-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_config.py
More file actions
19 lines (17 loc) · 686 Bytes
/
setup_config.py
File metadata and controls
19 lines (17 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Setup configuration for Info Naut with OpenAI API key
"""
import os
# Set environment variables for the application
os.environ['OPENAI_API_KEY'] = 'your-openai-api-key-here'
os.environ['OPENAI_API_BASE'] = 'https://api.openai.com/v1'
os.environ['EMBEDDING_MODEL'] = 'text-embedding-3-small'
os.environ['GENERATION_MODEL'] = 'gpt-4o-mini'
os.environ['RAG_STORE'] = 'sqlite'
os.environ['SQLITE_FILE'] = './data/infonaut.db'
os.environ['PROJECT_NAME'] = 'Info Naut'
os.environ['VERSION'] = '1.0.0'
os.environ['VECTOR_STORE_TYPE'] = 'chroma'
print("✓ Environment configured")
print("✓ Info Naut ready to run")
print("→ Run: python -m uvicorn app.main:app --reload --port 8000")