Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def search_embeddings(chunks, embedding_model, vector_store_type, search_type, q
|
|
206 |
retriever = get_retriever(vector_store, search_type, {"k": top_k})
|
207 |
|
208 |
start_time = time.time()
|
209 |
-
results = retriever.
|
210 |
|
211 |
# Apply phonetic matching
|
212 |
results = sorted(results, key=lambda x: (1 - phonetic_weight) * vector_store.similarity_search(x.page_content, k=1)[0][1] +
|
|
|
206 |
retriever = get_retriever(vector_store, search_type, {"k": top_k})
|
207 |
|
208 |
start_time = time.time()
|
209 |
+
results = retriever.invoke(preprocessed_query)
|
210 |
|
211 |
# Apply phonetic matching
|
212 |
results = sorted(results, key=lambda x: (1 - phonetic_weight) * vector_store.similarity_search(x.page_content, k=1)[0][1] +
|