Commit eba7e3f
committed
feat: Add LangCache integration with full feature support
- Implement LangCacheWrapper as BaseLLMCache extension
- Support semantic and exact search strategies
- Add distance_threshold support (converts to similarity_threshold)
- Add attributes filtering for metadata-based searches
- Fix SDK integration issues:
- Use correct response model attributes (entry_id, data)
- Remove incorrect context manager usage
- Convert similarity to distance (1.0 - similarity)
- Handle optional attributes in store operations
- Add comprehensive unit tests (16 tests)
- All 444 unit tests passing
- Type checking, formatting, and linting passing1 parent d152c3e commit eba7e3f
File tree
5 files changed
+3612
-2702
lines changed- redisvl/extensions/cache/llm
- tests/unit
5 files changed
+3612
-2702
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments