Spaces:
Paused
Paused
Update func_ai.py
Browse files- func_ai.py +1 -1
func_ai.py
CHANGED
@@ -51,7 +51,7 @@ def classify_comment(text):
|
|
51 |
|
52 |
def retrieve_from_vdb(query):
|
53 |
print(f"Отправка запроса к FastAPI сервису: {query}")
|
54 |
-
response = requests.
|
55 |
if response.status_code == 200:
|
56 |
results = response.json().get("results", [])
|
57 |
print(f"Получено {len(results)} результатов.")
|
|
|
51 |
|
52 |
def retrieve_from_vdb(query):
|
53 |
print(f"Отправка запроса к FastAPI сервису: {query}")
|
54 |
+
response = requests.post(f"{VECTOR_API_URL}/search/", json={"query": query})
|
55 |
if response.status_code == 200:
|
56 |
results = response.json().get("results", [])
|
57 |
print(f"Получено {len(results)} результатов.")
|