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:
parent
b28c6dcc55
commit
77a82d7cc5
2 changed files with 3 additions and 3 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue