mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-09 14:35:50 +00:00
Fix serialization issue in Matching Engine Vector Store (#13266)
- **Description:** Fixed a serialization issue in the add_texts method of the Matching Engine Vector Store caused by a typo, leading to an attempt to serialize the json module itself. - **Issue:** #12154 - **Dependencies:** ./. - **Tag maintainer:**
This commit is contained in:
parent
9169d77cf6
commit
1e43025bf5
@ -137,7 +137,7 @@ class MatchingEngine(VectorStore):
|
|||||||
json_: dict = {"id": id, "embedding": embedding}
|
json_: dict = {"id": id, "embedding": embedding}
|
||||||
if metadatas is not None:
|
if metadatas is not None:
|
||||||
json_["metadata"] = metadatas[idx]
|
json_["metadata"] = metadatas[idx]
|
||||||
jsons.append(json)
|
jsons.append(json_)
|
||||||
self._upload_to_gcs(text, f"documents/{id}")
|
self._upload_to_gcs(text, f"documents/{id}")
|
||||||
|
|
||||||
logger.debug(f"Uploaded {len(ids)} documents to GCS.")
|
logger.debug(f"Uploaded {len(ids)} documents to GCS.")
|
||||||
|
Loading…
Reference in New Issue
Block a user