Load indexer configuration from YAML file
(self)
| 292 | return {} |
| 293 | |
| 294 | def _load_indexer_config(self) -> Dict[str, Any]: |
| 295 | """Load indexer configuration from YAML file""" |
| 296 | try: |
| 297 | import yaml |
| 298 | |
| 299 | with open(self.indexer_config_path, "r", encoding="utf-8") as f: |
| 300 | config = yaml.safe_load(f) |
| 301 | if config is None: |
| 302 | config = {} |
| 303 | return config |
| 304 | except Exception as e: |
| 305 | print( |
| 306 | f"Warning: Failed to load indexer config from {self.indexer_config_path}: {e}" |
| 307 | ) |
| 308 | print("Using default configuration values") |
| 309 | return {} |
| 310 | |
| 311 | async def _initialize_llm_client(self): |
| 312 | """Initialize LLM client (Anthropic or OpenAI) based on API key availability""" |