File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ public static function hybridSearch(
84
84
return self ::ragTable ($ table )->performHybridSearch (
85
85
$ textQuery ,
86
86
$ queryVector ,
87
- $ options ['text_column ' ] ?? null ,
88
- $ options ['vector_column ' ] ?? null ,
89
87
$ options ['text_weight ' ] ?? 0.3 ,
90
88
$ options ['vector_weight ' ] ?? 0.7 ,
89
+ $ options ['text_column ' ] ?? null ,
90
+ $ options ['vector_column ' ] ?? null ,
91
91
$ options ['limit ' ] ?? null
92
92
);
93
93
}
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ public function performSemanticSearch(
141
141
public function performHybridSearch (
142
142
string $ textQuery ,
143
143
array $ queryVector ,
144
- string $ textColumn ,
145
- string $ vectorColumn ,
146
144
float $ textWeight = 0.3 ,
147
145
float $ vectorWeight = 0.7 ,
146
+ ?string $ textColumn = null ,
147
+ ?string $ vectorColumn = null ,
148
148
?int $ limit = null
149
149
): PromiseInterface {
150
150
$ textColumn ??= $ this ->ragConfig ['default_content_column ' ];
You can’t perform that action at this time.
0 commit comments