Model provider integration¶
Switching Model Providers¶
The application uses controller classes for centralized model management. To switch providers, just update config.yaml:
For LLM:
For Vision:
For Embeddings:
The controllers (llm_controller.py, vision_model_controller.py, embeddings_controller.py) handle all provider-specific initialization automatically.
Adding New Model Providers¶
- Update the appropriate controller in
models/:
def initialize_model(self):
if self.model_type == "your_provider":
# Your provider initialization
self.model = YourProviderModel(...)
- Add configuration in
config.yaml