Update app/embedding.py
This commit is contained in:
parent
eefa614821
commit
da8c17ac59
@ -25,7 +25,7 @@ class WeaviateCustomEmbeddings(Embeddings):
|
|||||||
query_text = text.question if hasattr(text, 'question') else str(text)
|
query_text = text.question if hasattr(text, 'question') else str(text)
|
||||||
|
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
f"{self.api_url}/vectors",
|
f"{self.api_url}/embed",
|
||||||
json={"text": query_text}
|
json={"text": query_text}
|
||||||
)
|
)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user