File size: 1,389 Bytes
bec06d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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.")