AB_Testing_RAG_Agent / verify_data.py
kamkol's picture
Add debugging code about the preprocessed data
525d5c5
raw
history blame contribute delete
880 Bytes
import os
from pathlib import Path
# Check various possible locations
possible_paths = [
"processed_data",
"/app/processed_data",
"../processed_data",
"./processed_data"
]
for path in possible_paths:
chunks_file = Path(path) / "document_chunks.pkl"
qdrant_dir = Path(path) / "qdrant_vectorstore"
print(f"Checking path: {path}")
print(f" Exists?: {os.path.exists(path)}")
if os.path.exists(path):
print(f" Contents: {os.listdir(path)}")
print(f" Chunks file exists?: {os.path.exists(chunks_file)}")
print(f" Qdrant dir exists?: {os.path.exists(qdrant_dir)}")
if os.path.exists(qdrant_dir):
print(f" Qdrant contents: {os.listdir(qdrant_dir)}")
# Show current working directory and its contents
print(f"Current directory: {os.getcwd()}")
print(f"Contents: {os.listdir('.')}")