File size: 683 Bytes
e99acf7 |
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 |
"""
Updated configuration for Norwegian RAG chatbot with GPT-4o integration.
Contains model IDs, API endpoints, and other configuration parameters.
"""
# OpenAI GPT-4o configuration
OPENAI_CONFIG = {
"model": "gpt-4o",
"embedding_model": "text-embedding-3-small",
"max_tokens": 512,
"temperature": 0.7,
"top_p": 0.9
}
# Document processing parameters
CHUNK_SIZE = 512
CHUNK_OVERLAP = 100
# RAG parameters
MAX_CHUNKS_TO_RETRIEVE = 5
SIMILARITY_THRESHOLD = 0.75
# Requirements for OpenAI integration
REQUIRED_PACKAGES = [
"openai>=1.0.0",
"numpy>=1.24.0",
"gradio>=4.0.0",
"PyPDF2>=3.0.0",
"beautifulsoup4>=4.12.0",
"requests>=2.31.0"
]
|