Update app/embedding.py
This commit is contained in:
parent
6ca8f474db
commit
eefa614821
@ -29,6 +29,6 @@ class WeaviateCustomEmbeddings(Embeddings):
|
|||||||
json={"text": query_text}
|
json={"text": query_text}
|
||||||
)
|
)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
raise ValueError(f"임베딩 API 호출 실패: {self.api_url}/vectors, {query_text}, {response.status_code}, {response.text}")
|
raise ValueError(f"임베딩 API 호출 실패: {self.api_url}/embed, {query_text}, {response.status_code}, {response.text}")
|
||||||
|
|
||||||
return response.json()["vector"]
|
return response.json()["vector"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user