MCPcopy Index your code
hub / github.com/PromtEngineer/localGPT / __init__

Method __init__

demo_batch_indexing.py:48–66  ·  view source on GitHub ↗

Initialize the batch indexing demo.

(self, config_path: str)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

_load_configMethod · 0.95
_merge_configurationsMethod · 0.95
ChatDatabaseClass · 0.90
OllamaClientClass · 0.90
IndexingPipelineClass · 0.90

Tested by

no test coverage detected