devve1 commited on
Commit
233bc9f
1 Parent(s): 20b2e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -208,7 +208,7 @@ def self_knowledge(query: str):
208
  def main(query: str, client: QdrantClient, collection_name: str, llm, dense_model: AsyncEmbeddingEngine, sparse_model: SparseTextEmbedding, past_messages: str):
209
  s = time.time()
210
  scored_points = query_hybrid_search(query, client, collection_name, dense_model, sparse_model).points
211
-
212
  docs = [(scored_point.payload['text'], scored_point.payload['metadata']) for scored_point in scored_points]
213
  contents, metadatas = [list(t) for t in zip(*docs)]
214
 
 
208
  def main(query: str, client: QdrantClient, collection_name: str, llm, dense_model: AsyncEmbeddingEngine, sparse_model: SparseTextEmbedding, past_messages: str):
209
  s = time.time()
210
  scored_points = query_hybrid_search(query, client, collection_name, dense_model, sparse_model).points
211
+ print(f'Score : {scored_points[0]}')
212
  docs = [(scored_point.payload['text'], scored_point.payload['metadata']) for scored_point in scored_points]
213
  contents, metadatas = [list(t) for t in zip(*docs)]
214