fix: Hybrid search enabled as long as reranker is enabled (#8021)

* fix: Hybrid search enabled as long as reranker is enabled

* Back to original hybrid

* [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 2025-05-14 10:42:53 -07:00 committed by GitHub
commit eeea48a1fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -420,8 +420,8 @@ class AstraDBVectorStoreComponent(LCVectorStoreComponent):
"collection_vector_service_options": vectorize_options,
}
# Add optional arguments only if environment is "dev"
if environment == "dev" and reranker: # TODO: Remove conditional check soon
# Add optional arguments if the reranker is set
if reranker:
# Split the reranker field into a provider a model name
provider, _ = reranker.split("/")
base_args["collection_rerank"] = CollectionRerankOptions(

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long