From 2736d5920b34c324691480bb52095a40cf774e45 Mon Sep 17 00:00:00 2001 From: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com> Date: Mon, 8 Jul 2024 08:17:56 -0700 Subject: [PATCH] docs: small updates to vectorize docs (#2580) * small updates to vectorize docs * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../langflow/components/embeddings/AstraVectorize.py | 11 +++++------ .../base/langflow/components/vectorstores/AstraDB.py | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/backend/base/langflow/components/embeddings/AstraVectorize.py b/src/backend/base/langflow/components/embeddings/AstraVectorize.py index 4b2fe3af6..4c8914665 100644 --- a/src/backend/base/langflow/components/embeddings/AstraVectorize.py +++ b/src/backend/base/langflow/components/embeddings/AstraVectorize.py @@ -63,16 +63,15 @@ class AstraVectorize(Component): f"available (https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html):\n\n{VECTORIZE_MODELS_STR}", required=True, ), - SecretStrInput( - name="provider_api_key", - display_name="Provider API Key", - info="An alternative to the Astra Authentication that passes an API key for the provider with each request to Astra DB. This may be used when Vectorize is configured for the collection, but no corresponding provider secret is stored within Astra's key management system.", - ), MessageTextInput( name="api_key_name", display_name="Provider API Key Name", info="The name of the embeddings provider API key stored on Astra. If set, it will override the 'ProviderKey' in the authentication parameters.", - advanced=True, + ), + SecretStrInput( + name="provider_api_key", + display_name="Provider API Key", + info="An alternative to the Astra Authentication that passes an API key for the provider with each request to Astra DB. This may be used when Vectorize is configured for the collection, but no corresponding provider secret is stored within Astra's key management system.", ), DictInput( name="authentication", diff --git a/src/backend/base/langflow/components/vectorstores/AstraDB.py b/src/backend/base/langflow/components/vectorstores/AstraDB.py index 0850449ac..7aec7ef30 100644 --- a/src/backend/base/langflow/components/vectorstores/AstraDB.py +++ b/src/backend/base/langflow/components/vectorstores/AstraDB.py @@ -117,7 +117,7 @@ class AstraVectorStoreComponent(LCVectorStoreComponent): name="embedding", display_name="Embedding or Astra Vectorize", input_types=["Embeddings", "dict"], - info="Allows either an embedding model or an Astra Vectorize configuration. If Astra Vectorize is already configured for the collection, this field is not required.", + info="Allows either an embedding model or an Astra Vectorize configuration.", # TODO: This should be optional, but need to refactor langchain-astradb first. ), StrInput( name="metadata_indexing_exclude",