Skip to content

Commit

Permalink
adding capability for transforming rank rrf queries to the correspond…
Browse files Browse the repository at this point in the history
…ing retriever
  • Loading branch information
pmpailis committed Nov 6, 2024
1 parent ecf8c3f commit 9d10872
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ private SearchCapabilities() {}
private static final String BIT_DENSE_VECTOR_SYNTHETIC_SOURCE_CAPABILITY = "bit_dense_vector_synthetic_source";
/** Support Byte and Float with Bit dot product. */
private static final String BYTE_FLOAT_BIT_DOT_PRODUCT_CAPABILITY = "byte_float_bit_dot_product";
/** Support transforming rank rrf queries to the corresponding rrf retriever. */
private static final String TRANSFORM_RANK_RRF_TO_RETRIEVER = "transform_rank_rrf_to_retriever";

public static final Set<String> CAPABILITIES = Set.of(
RANGE_REGEX_INTERVAL_QUERY_CAPABILITY,
BIT_DENSE_VECTOR_SYNTHETIC_SOURCE_CAPABILITY,
BYTE_FLOAT_BIT_DOT_PRODUCT_CAPABILITY
BYTE_FLOAT_BIT_DOT_PRODUCT_CAPABILITY,
TRANSFORM_RANK_RRF_TO_RETRIEVER
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
setup:
- requires:
cluster_features: 'rrf_retriever_composition_supported'
reason: 'test requires rrf retriever composition support'
capabilities:
- method: POST
path: /_search
capabilities: [ transform_rank_rrf_to_retriever ]
test_runner_features: capabilities
reason: "Support for transforming deprecated rank_rrf queries to the corresponding rrf retriever is required"
- skip:
features: "warnings"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ setup:
- contains

- requires:
cluster_features: 'rrf_retriever_composition_supported'
reason: 'test requires rrf retriever composition support'
capabilities:
- method: POST
path: /_search
capabilities: [ transform_rank_rrf_to_retriever ]
test_runner_features: capabilities
reason: "Support for transforming deprecated rank_rrf queries to the corresponding rrf retriever is required"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
setup:
- skip:
features:
- close_to

- requires:
cluster_features: 'rrf_retriever_composition_supported'
reason: 'test requires rrf retriever composition support'
test_runner_features: "close_to"
capabilities:
- method: POST
path: /_search
capabilities: [ transform_rank_rrf_to_retriever ]
test_runner_features: capabilities
reason: "Support for transforming deprecated rank_rrf queries to the corresponding rrf retriever is required"

- do:
indices.create:
Expand Down

0 comments on commit 9d10872

Please sign in to comment.