fix: Rename namespace to keyspace in astra db (#4635)

This commit is contained in:
Eric Hare 2024-11-16 08:01:10 -08:00 • committed by GitHub
commit efe6407324
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 14 deletions

View file

@ -95,9 +95,9 @@ class AstraVectorStoreComponent(LCVectorStoreComponent):
is_list=True, is_list=True,
), ),
StrInput( StrInput(
name="namespace", name="keyspace",
display_name="Namespace", display_name="Keyspace",
info="Optional namespace within Astra DB to use for the collection.", info="Optional keyspace within Astra DB to use for the collection.",
advanced=True, advanced=True,
), ),
DropdownInput( DropdownInput(
@ -440,7 +440,7 @@ class AstraVectorStoreComponent(LCVectorStoreComponent):
collection_name=self.collection_name, collection_name=self.collection_name,
token=self.token, token=self.token,
api_endpoint=self.api_endpoint, api_endpoint=self.api_endpoint,
namespace=self.namespace or None, namespace=self.keyspace or None,
environment=parse_api_endpoint(self.api_endpoint).environment if self.api_endpoint else None, environment=parse_api_endpoint(self.api_endpoint).environment if self.api_endpoint else None,
metric=self.metric or None, metric=self.metric or None,
batch_size=self.batch_size or None, batch_size=self.batch_size or None,

View file

@ -55,12 +55,6 @@ class AstraGraphVectorStoreComponent(LCVectorStoreComponent):
info="Metadata key used for incoming links.", info="Metadata key used for incoming links.",
advanced=True, advanced=True,
), ),
StrInput(
name="namespace",
display_name="Namespace",
info="Optional namespace within Astra DB to use for the collection.",
advanced=True,
),
MultilineInput( MultilineInput(
name="search_input", name="search_input",
display_name="Search Input", display_name="Search Input",
@ -71,9 +65,9 @@ class AstraGraphVectorStoreComponent(LCVectorStoreComponent):
is_list=True, is_list=True,
), ),
StrInput( StrInput(
name="namespace", name="keyspace",
display_name="Namespace", display_name="Keyspace",
info="Optional namespace within Astra DB to use for the collection.", info="Optional keyspace within Astra DB to use for the collection.",
advanced=True, advanced=True,
), ),
HandleInput( HandleInput(
@ -211,7 +205,7 @@ class AstraGraphVectorStoreComponent(LCVectorStoreComponent):
metadata_incoming_links_key=self.metadata_incoming_links_key or "incoming_links", metadata_incoming_links_key=self.metadata_incoming_links_key or "incoming_links",
token=self.token, token=self.token,
api_endpoint=self.api_endpoint, api_endpoint=self.api_endpoint,
namespace=self.namespace or None, namespace=self.keyspace or None,
environment=parse_api_endpoint(self.api_endpoint).environment if self.api_endpoint else None, environment=parse_api_endpoint(self.api_endpoint).environment if self.api_endpoint else None,
metric=self.metric or None, metric=self.metric or None,
batch_size=self.batch_size or None, batch_size=self.batch_size or None,