|
""" |
|
Updated configuration for Norwegian RAG chatbot with GPT-4o integration. |
|
Contains model IDs, API endpoints, and other configuration parameters. |
|
""" |
|
|
|
|
|
OPENAI_CONFIG = { |
|
"model": "gpt-4o", |
|
"embedding_model": "text-embedding-3-small", |
|
"max_tokens": 512, |
|
"temperature": 0.7, |
|
"top_p": 0.9 |
|
} |
|
|
|
|
|
CHUNK_SIZE = 512 |
|
CHUNK_OVERLAP = 100 |
|
|
|
|
|
MAX_CHUNKS_TO_RETRIEVE = 5 |
|
SIMILARITY_THRESHOLD = 0.75 |
|
|
|
|
|
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" |
|
] |
|
|