test
Browse files
api.py
CHANGED
@@ -101,8 +101,8 @@ def search(Item:Item):
|
|
101 |
async def ask_localai(item: Item):
|
102 |
query = item.query
|
103 |
|
104 |
-
search_result = qdrant.similarity_search(query=query, k=3)
|
105 |
-
return {"item": item, "search_result":
|
106 |
# if not search_result:
|
107 |
# return {"error": "No relevant results found for the query."}
|
108 |
|
|
|
101 |
async def ask_localai(item: Item):
|
102 |
query = item.query
|
103 |
|
104 |
+
# search_result = qdrant.similarity_search(query=query, k=3)
|
105 |
+
return {"item": item, "search_result": query}
|
106 |
# if not search_result:
|
107 |
# return {"error": "No relevant results found for the query."}
|
108 |
|