File size: 533 Bytes
c8c00f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import sys
import os
import json
# Add parent directory (src/) to path so 'pipeline' is findable
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from pipeline.defect_rag import get_rag
rag = get_rag()
all_data = rag.collection.get()
print("Found IDs in ChromaDB:")
for doc_id in all_data['ids']:
print(" -", doc_id)
results = rag.collection.get(ids=["my_vcsel_captures_bubble_001"]) # or any ID you know exists
print(results['metadatas'][0])
print("---")
print(json.loads(results['metadatas'][0]['paths'])) |