Chris4K commited on
Commit
fd47dd6
1 Parent(s): 9ace3c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.get_relevant_documents(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] +
 
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] +