From 91706c7e44cc8d4ce58971d593ade9f720f7b71c Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Fri, 25 Jul 2025 15:34:29 +0800 Subject: [PATCH] bugfix --- experiencemaker/vector_store/es_vector_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiencemaker/vector_store/es_vector_store.py b/experiencemaker/vector_store/es_vector_store.py index 3c5a2489..62043edd 100644 --- a/experiencemaker/vector_store/es_vector_store.py +++ b/experiencemaker/vector_store/es_vector_store.py @@ -48,8 +48,8 @@ class EsVectorStore(BaseVectorStore): } return self._client.indices.create(index=workspace_id, body=body) - def _iter_workspace_nodes(self, workspace_id: str, **kwargs) -> Iterable[VectorNode]: - response = self._client.search(index=workspace_id, body={"query": {"match_all": {}}}) + def _iter_workspace_nodes(self, workspace_id: str, max_size: int = 10000, **kwargs) -> Iterable[VectorNode]: + response = self._client.search(index=workspace_id, body={"query": {"match_all": {}}, "size": max_size}) for doc in response['hits']['hits']: yield self.doc2node(doc, workspace_id)