From e6486896fc59016071b65600bde0975fa6c5e37e Mon Sep 17 00:00:00 2001 From: Eric Hare Date: Fri, 1 Nov 2024 15:39:48 -0700 Subject: [PATCH] Bugfix langchain astradb metadata (#4361) * bugfix: langchain-astradb expects None or Iterable * Update astradb.py --- src/backend/base/langflow/components/vectorstores/astradb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/components/vectorstores/astradb.py b/src/backend/base/langflow/components/vectorstores/astradb.py index eac794ba4..b3e58da1c 100644 --- a/src/backend/base/langflow/components/vectorstores/astradb.py +++ b/src/backend/base/langflow/components/vectorstores/astradb.py @@ -420,8 +420,8 @@ class AstraVectorStoreComponent(LCVectorStoreComponent): bulk_delete_concurrency=self.bulk_delete_concurrency or None, setup_mode=setup_mode_value, pre_delete_collection=self.pre_delete_collection, - metadata_indexing_include=[s for s in self.metadata_indexing_include if s], - metadata_indexing_exclude=[s for s in self.metadata_indexing_exclude if s], + metadata_indexing_include=[s for s in self.metadata_indexing_include if s] or None, + metadata_indexing_exclude=[s for s in self.metadata_indexing_exclude if s] or None, collection_indexing_policy=orjson.dumps(self.collection_indexing_policy) if self.collection_indexing_policy else None,