-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
39 lines (29 loc) · 804 Bytes
/
config.py
File metadata and controls
39 lines (29 loc) · 804 Bytes
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
import os
from dotenv import load_dotenv
load_dotenv()
"""
Configuration settings for the RAG system.
"""
# Mode
DEBUG = True
# File paths
CHROMA_PATH = "chroma"
JSON_PATH = "dataset/mdgspace_dataset.json"
# Embedding model configuration
DEFAULT_EMBEDDING_MODEL = os.getenv("DEFAULT_EMBEDDING_MODEL")
# LLM configuration
LLM_API_URL = os.getenv("OPENROUTER_ENDPOINT")
HEADERS = {
"Authorization": f"Bearer {os.getenv('OPENROUTER_API_KEYS')}",
"Content-Type": "application/json",
}
LLM_MODEL = "llama-3.3-70b-versatile"
LLM_TEMPERATURE = 0.85
LLM_TOP_P = 0.9
# Retrieval configuration
DEFAULT_RELEVANCE_THRESHOLD = 0.5
DEFAULT_RETRIEVAL_K = 10
# Hugging Face Creds
HUGGING_FACE_ACCESS_TOKEN = os.getenv("HUGGING_FACE_ACCESS_TOKEN")
# Groq API Key
GROQ_API_KEY = os.getenv("GROQ_API_KEY")