Ahmed-Alghamdi commited on
Commit
98cc026
·
verified ·
1 Parent(s): 2f28009

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +5 -1
config.py CHANGED
@@ -6,4 +6,8 @@ class Config:
6
  BATCH_SIZE = 32
7
  TOP_K = 3
8
  MIN_SIMILARITY_SCORE = 0.35
9
- MAX_LENGTH = 512
 
 
 
 
 
6
  BATCH_SIZE = 32
7
  TOP_K = 3
8
  MIN_SIMILARITY_SCORE = 0.35
9
+ MAX_LENGTH = 512
10
+ # New LLM Configuration
11
+ # Ensure you set 'OPENAI_API_KEY' in your Hugging Face Space Settings > Secrets
12
+ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
13
+ OPENAI_MODEL = "gpt-4o-mini" # Cost-effective and fast for RAG