Validate configurations
()
| 29 | return False |
| 30 | |
| 31 | def 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 | |
| 56 | def check_agent_initialization(): |
| 57 | """Test agent initialization""" |
no test coverage detected