import pickle

with open('/root/intelaide-backend/documents/user_3/assistant_2/faiss_index_mapping.pkl', 'rb') as f:
    data = pickle.load(f)

for idx, doc in enumerate(data):
    print(f"Chunk Index: {idx}")
    print(f"Source File: {doc.get('source')}")
    print("Chunk Text:")
    print(doc.get('text'))
    print("-" * 40)

