Initialize the batch indexing demo.
(self, config_path: str)
| 46 | """Demonstration of batch indexing capabilities.""" |
| 47 | |
| 48 | def __init__(self, config_path: str): |
| 49 | """Initialize the batch indexing demo.""" |
| 50 | self.config_path = config_path |
| 51 | self.config = self._load_config() |
| 52 | self.db = ChatDatabase() |
| 53 | |
| 54 | # Initialize Ollama client |
| 55 | self.ollama_client = OllamaClient() |
| 56 | |
| 57 | # Initialize pipeline with merged configuration |
| 58 | self.pipeline_config = self._merge_configurations() |
| 59 | self.pipeline = IndexingPipeline( |
| 60 | self.pipeline_config, |
| 61 | self.ollama_client, |
| 62 | self.config.get("ollama_config", { |
| 63 | "generation_model": "qwen3:0.6b", |
| 64 | "embedding_model": "qwen3:0.6b" |
| 65 | }) |
| 66 | ) |
| 67 | |
| 68 | def _load_config(self) -> Dict[str, Any]: |
| 69 | """Load batch indexing configuration from file.""" |
nothing calls this directly
no test coverage detected