MCPcopy
hub / github.com/PromtEngineer/localGPT / check_configurations

Function check_configurations

system_health_check.py:31โ€“54  ยท  view source on GitHub โ†—

Validate configurations

()

Source from the content-addressed store, hash-verified

29 return False
30
31def check_configurations():
32 """Validate configurations"""
33 print_status("Checking configurations...")
34 try:
35 from rag_system.main import EXTERNAL_MODELS, OLLAMA_CONFIG, PIPELINE_CONFIGS
36
37 print(f"๐Ÿ“Š External Models: {EXTERNAL_MODELS}")
38 print(f"๐Ÿ“Š Ollama Config: {OLLAMA_CONFIG}")
39 print(f"๐Ÿ“Š Pipeline Configs: {PIPELINE_CONFIGS}")
40
41 # Check for common model dimension issues
42 embedding_model = EXTERNAL_MODELS.get("embedding_model", "Unknown")
43 if "bge-small" in embedding_model:
44 print_status(f"Embedding model: {embedding_model} (384 dims)", True)
45 elif "Qwen3-Embedding" in embedding_model:
46 print_status(f"Embedding model: {embedding_model} (1024 dims) - Check data compatibility!", None)
47 else:
48 print_status(f"Embedding model: {embedding_model} - Verify dimensions!", None)
49
50 print_status("Configuration check completed", True)
51 return True
52 except Exception as e:
53 print_status(f"Configuration check failed: {e}", False)
54 return False
55
56def check_agent_initialization():
57 """Test agent initialization"""

Callers 1

mainFunction ยท 0.85

Calls 1

print_statusFunction ยท 0.85

Tested by

no test coverage detected