hbchiu commited on
Commit
bc60e12
·
verified ·
1 Parent(s): e06e474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -44,6 +44,11 @@ index = faiss.read_index(FAISS_FILE)
44
  with open(CHUNKS_FILE, "rb") as f:
45
  chunks = pickle.load(f)
46
 
 
 
 
 
 
47
  embed_model = SentenceTransformer("all-MiniLM-L6-v2")
48
  ##### IS INDEX FILE THE ISSUE
49
  print(f"Loaded FAISS index with {index.ntotal} vectors")
 
44
  with open(CHUNKS_FILE, "rb") as f:
45
  chunks = pickle.load(f)
46
 
47
+ print(f"Total chunks: {len(chunks)}")
48
+ print(f"Type: {type(chunks[0])}")
49
+ print(f"\n--- Chunk 0 ---\n{chunks[0]}")
50
+ print(f"\n--- Chunk 1 ---\n{chunks[1]}")
51
+
52
  embed_model = SentenceTransformer("all-MiniLM-L6-v2")
53
  ##### IS INDEX FILE THE ISSUE
54
  print(f"Loaded FAISS index with {index.ntotal} vectors")