Update app/embedding.py
This commit is contained in:
parent
da8c17ac59
commit
9ae890ed8e
@ -26,7 +26,7 @@ class WeaviateCustomEmbeddings(Embeddings):
|
||||
|
||||
response = requests.post(
|
||||
f"{self.api_url}/embed",
|
||||
json={"text": query_text}
|
||||
json={"inputs": query_text}
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f"임베딩 API 호출 실패: {self.api_url}/embed, {query_text}, {response.status_code}, {response.text}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user