Commit 1605b88
Feat/raae 1322/hybrid support (#639)
Adds ft.hybrid support to SQL query.
This ships as part of sql-redis 0.7.0 release.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Introduces a new search path (FT.HYBRID) behind stricter
Redis/redis-py/sql-redis version requirements; incorrect docs or
dependency pins could mislead adopters, but runtime code changes are
minimal.
>
> **Overview**
> Documents **SQL hybrid search** via
`hybrid_vector_search(cosine_distance(...), fulltext(...),
rrf()|linear())`, which maps to Redis **`FT.HYBRID`** through the
upgraded **`sql-redis`** dependency (now **`>=0.7.1`** in
`pyproject.toml` and the lockfile).
>
> Coverage spans the **`SQLQuery`** docstring, API/concepts docs, and a
new notebook section with an executable example. **Integration tests**
exercise RRF and linear fusion, `WHERE` filters, RRF knobs,
`redis_query_string()` output, and async `AsyncSearchIndex`—all gated on
Redis **8.4+** and **redis-py >= 7.1.0**.
>
> No new RedisVL translation logic in this PR; behavior comes from
**sql-redis 0.7.x** on the existing `SQLQuery` → `index.query()` path.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1e5bad8. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 12e6357 commit 1605b88
7 files changed
Lines changed: 2198 additions & 1849 deletions
File tree
- docs
- api
- concepts
- user_guide
- redisvl/query
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
276 | 297 | | |
277 | 298 | | |
278 | 299 | | |
| |||
0 commit comments