fix: set embedding dict to empty if vectorize (#5258)

* fix: set embedding dict to empty if vectorize

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Eric Hare 2024-12-13 12:25:47 -08:00 committed by GitHub
commit 77a82d7cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -633,7 +633,7 @@ class AstraDBVectorStoreComponent(LCVectorStoreComponent):
setup_mode = autodetect_params["setup_mode"]
# Get the embedding model
embedding_dict = {"embedding": self.embedding_model}
embedding_dict = {"embedding": self.embedding_model} if self.embedding_choice == "Embedding Model" else {}
# Use the embedding model if the choice is set to "Embedding Model"
if self.embedding_choice == "Astra Vectorize" and not autodetect:

File diff suppressed because one or more lines are too long