-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathconfig.py
More file actions
34 lines (25 loc) · 1.17 KB
/
config.py
File metadata and controls
34 lines (25 loc) · 1.17 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
import os
from dataclasses import dataclass
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
@dataclass
class Config:
"""Configuration settings for the RAG system"""
# Company LLM API settings (following LLMProvider.md specifications)
RDSEC_API_ENDPOINT: str = os.getenv("RDSEC_API_ENDPOINT", "")
RDSEC_API_KEY: str = os.getenv("RDSEC_API_KEY", "")
RDSEC_MODEL: str = "gpt-4o" # Using gpt-4o as specified in LLMProvider.md
# Legacy Anthropic settings (kept for fallback if needed)
ANTHROPIC_API_KEY: str = os.getenv("ANTHROPIC_API_KEY", "")
ANTHROPIC_MODEL: str = "claude-sonnet-4-20250514"
# Embedding model settings
EMBEDDING_MODEL: str = "all-MiniLM-L6-v2"
# Document processing settings
CHUNK_SIZE: int = 800 # Size of text chunks for vector storage
CHUNK_OVERLAP: int = 100 # Characters to overlap between chunks
MAX_RESULTS: int = 5 # Maximum search results to return
MAX_HISTORY: int = 2 # Number of conversation messages to remember
# Database paths
CHROMA_PATH: str = "./chroma_db" # ChromaDB storage location
config = Config()