nazr commited on
Commit
41fce4b
·
1 Parent(s): 52d0073
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -119,8 +119,9 @@ async def search_documents(
119
  logging.info("Performing search using the precomputed embeddings")
120
  if body.file_id:
121
  hits, error = searcher.search_documents(collection_name, query_embedding, user_id, body.limit, file_id=body.file_id)
122
- # Perform search using the precomputed embeddings
123
- hits, error = searcher.search_documents(collection_name, query_embedding, user_id, body.limit)
 
124
 
125
  if error:
126
  logging.error(f"Search documents error: {error}")
 
119
  logging.info("Performing search using the precomputed embeddings")
120
  if body.file_id:
121
  hits, error = searcher.search_documents(collection_name, query_embedding, user_id, body.limit, file_id=body.file_id)
122
+ else:
123
+ # Perform search using the precomputed embeddings
124
+ hits, error = searcher.search_documents(collection_name, query_embedding, user_id, body.limit)
125
 
126
  if error:
127
  logging.error(f"Search documents error: {error}")