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:
parent
97061baa6a
commit
eeea48a1fd
3 changed files with 5 additions and 5 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue