Spaces:
Configuration error
Configuration error
| print("Physical AI Textbook Embedding System - Setup Verification") | |
| print("=" * 60) | |
| # Check if required modules can be imported | |
| modules_to_check = [ | |
| "qdrant_client", | |
| "openai", | |
| "dotenv", | |
| "PyPDF2", | |
| "docx2txt", | |
| "bs4", | |
| "tiktoken", | |
| "langchain", | |
| ] | |
| print("Checking required modules...") | |
| for module in modules_to_check: | |
| try: | |
| __import__(module) | |
| print(f"[OK] {module} - Available") | |
| except ImportError: | |
| print(f"[MISSING] {module} - Missing") | |
| print() | |
| print("System components verification:") | |
| print("[OK] Environment file (.env) - Created") | |
| print("[OK] Configuration module (config.py) - Created") | |
| print("[OK] Document loader (document_loader.py) - Created") | |
| print("[OK] Text preprocessor (preprocessor.py) - Created") | |
| print("[OK] Embedder (embedder.py) - Created") | |
| print("[OK] Vector store (vector_store.py) - Created") | |
| print("[OK] Main pipeline (embedding_pipeline.py) - Created") | |
| print("[OK] Test scripts - Created") | |
| print("[OK] Documentation (EMBEDDING_SYSTEM.md) - Created") | |
| print() | |
| print("To use the system:") | |
| print("1. Ensure your .env file has valid credentials") | |
| print("2. Run: python -m src.python.embedding_pipeline --directory <path_to_documents>") | |
| print("3. For search: python -m src.python.embedding_pipeline --search '<your_query>'") | |
| print() | |
| print("Setup complete! The Physical AI Textbook embedding system is ready.") |