Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ index.add(embeddings_np)
|
|
56 |
faiss.write_index(index, 'embeddings_index.faiss')
|
57 |
|
58 |
# Load FAISS index
|
59 |
-
stored_index = faiss.read_index('
|
60 |
|
61 |
#Function to retrieve chunks
|
62 |
def retrieve_chunks(query, top_k=10, use_mmr=False, diversity=0.5, target_doc='AST-1'):
|
|
|
56 |
faiss.write_index(index, 'embeddings_index.faiss')
|
57 |
|
58 |
# Load FAISS index
|
59 |
+
stored_index = faiss.read_index('./embeddings_index.faiss')
|
60 |
|
61 |
#Function to retrieve chunks
|
62 |
def retrieve_chunks(query, top_k=10, use_mmr=False, diversity=0.5, target_doc='AST-1'):
|