Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ app = FastAPI()
|
|
106 |
@app.get("/get_data")
|
107 |
def get_data(query: str):
|
108 |
# query = "How much money did the robbers steal?"
|
109 |
-
found_docs = [x.model_dump() for x qdrant.similarity_search(query)]
|
110 |
found_docs.pop("id", None)
|
111 |
for k,v in found_docs["metadata"].keys():
|
112 |
if k[0] == "_":
|
|
|
106 |
@app.get("/get_data")
|
107 |
def get_data(query: str):
|
108 |
# query = "How much money did the robbers steal?"
|
109 |
+
found_docs = [x.model_dump() for x in qdrant.similarity_search(query)]
|
110 |
found_docs.pop("id", None)
|
111 |
for k,v in found_docs["metadata"].keys():
|
112 |
if k[0] == "_":
|