public class HybridArgs extends Object
FT.HYBRID command. Combines text search and vector similarity search with
configurable combination strategies and post-processing operations.
{
@code
HybridArgs args = HybridArgs
.builder().search(HybridSearchArgs.builder().query("comfortable shoes").build()).vectorSearch(HybridVectorArgs
.builder().field("@embedding").vector("$vec").method(HybridVectorArgs.Knn.of(10)).build())
.combine(Combiners.rrf().window(20).constant(60)).param("vec", vectorBlob).build();
}
HybridSearchArgs,
HybridVectorArgs,
Combiner,
Combiners,
PostProcessingArgs| Modifier and Type | Class and Description |
|---|---|
static class |
HybridArgs.Builder
Builder for
HybridArgs. |
| Constructor and Description |
|---|
HybridArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<?,?> args)
Build the command arguments for the configured
HybridArgs. |
static HybridArgs.Builder |
builder() |
public static HybridArgs.Builder builder()
HybridArgs.Builder for HybridArgs.public void build(CommandArgs<?,?> args)
HybridArgs.
Command structure: SEARCH [SCORER] [YIELD_SCORE_AS] VSIM [KNN/RANGE] [FILTER]* [YIELD_DISTANCE_AS] [COMBINE] [YIELD_SCORE_AS] [SORTBY] [FILTER]* [LIMIT] [RETURN] [LOAD] [PARAMS]
args - the CommandArgs to append toCopyright © 2026 lettuce.io. All rights reserved.