Commit aadc298
committed
fix: implement score_threshold filtering for OceanBase vector search
OceanBase vector search was ignoring the score_threshold parameter, returning all top_k results regardless of their similarity scores. This caused annotation queries with high thresholds (e.g., score_threshold=1) to return low-scoring matches that should have been filtered out.
Added score_threshold parameter handling to filter results based on similarity scores, bringing OceanBase behavior in line with other vector stores (Chroma, PGVector, etc.).1 parent 1dfde24 commit aadc298
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
294 | 298 | | |
295 | | - | |
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| |||
0 commit comments