Skip to content

Commit

Permalink
fix: search endpoint method
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrckd committed Oct 2, 2024
1 parent bc73e2a commit 2f1e03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def semantic_search(
"collections": collections,
"k": limit,
}
response = requests.get(f"{url}/search", headers=headers, json=params)
response = requests.post(f"{url}/search", headers=headers, json=params)
log_and_raise_for_status(response)
data = response.json()
chunks = [v["chunk"]["metadata"] for v in data["data"]]
Expand Down

0 comments on commit 2f1e03f

Please sign in to comment.