Configuration
This section contains auto-generated documentation for configuration modules.
Config Module
Pydantic models for service configuration.
- class routir.config.config.ServiceConfig(*, name, engine, config, processor='BatchQueryProcessor', cache=-1, batch_size=32, cache_ttl=600, max_wait_time=0.05, cache_key_fields=<factory>, cache_redis_url=None, cache_redis_kwargs=<factory>, scoring_disabled=False)[source]
Bases:
BaseModelConfiguration for a search/ranking service.
- engine
Engine class to use; can be defined in external scripts or extensions (e.g., ‘PLAIDX’, ‘LSR’, ‘Qwen3’)
- Type:
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class routir.config.config.ColllectionConfig(*, name, doc_path, offset_source='offsetfile', id_field='id', content_field='text', id_to_lang_mapping=None, cache_path=None)[source]
Bases:
BaseModelConfiguration for a document collection.
- offset_source
Method for generating document offsets
- Type:
Literal[‘msmarco_seg’, ‘offsetfile’]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class routir.config.config.Config(*, services=<factory>, collections=<factory>, server_imports=<factory>, file_imports=<factory>, dynamic_pipeline=True)[source]
Bases:
BaseModelMain configuration for the routir service.
- services
List of engine service configurations
- Type:
- collections
List of document collection configurations
- Type:
- services: List[ServiceConfig]
- collections: List[ColllectionConfig]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].