Rams901 commited on
Commit
a98c32e
1 Parent(s): ae99a46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def q_retrieve_thoughts(query, n, db = "articles"):
42
  v_len = qdrant.get_collection(db).dict()['vectors_count']
43
  hits = qdrant.search(
44
  collection_name="articles",
45
- query_vector=encoder.encode("Will Russia win the war in Ukraine?").tolist(),
46
  limit=v_len # TO-DO: know the right number of thoughts existing maybe using get_collection
47
  )
48
  df = pd.DataFrame.from_records([dict(hit) for hit in hits] )
 
42
  v_len = qdrant.get_collection(db).dict()['vectors_count']
43
  hits = qdrant.search(
44
  collection_name="articles",
45
+ query_vector=encoder.encode(query).tolist(),
46
  limit=v_len # TO-DO: know the right number of thoughts existing maybe using get_collection
47
  )
48
  df = pd.DataFrame.from_records([dict(hit) for hit in hits] )