MCPcopy
hub / github.com/HKUDS/DeepCode / _load_indexer_config

Method _load_indexer_config

tools/code_indexer.py:294–309  ·  view source on GitHub ↗

Load indexer configuration from YAML file

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected