fix: Rename namespace to keyspace in astra db (#4635)
This commit is contained in:
parent
6573ca14cc
commit
efe6407324
2 changed files with 8 additions and 14 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue