mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 13:29:52 +08:00
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:
@ -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
Reference in New Issue
Block a user