Update app.py
Browse files
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(
|
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] )
|