Uniaff commited on
Commit
a7df9f5
·
verified ·
1 Parent(s): 2ed448c

Update func_ai.py

Browse files
Files changed (1) hide show
  1. 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.get(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)} результатов.")
 
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)} результатов.")