""" 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" ]