Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/python-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,11 @@ jobs:
with:
python-version: ${{ env.UV_PYTHON }}
os: ${{ runner.os }}
- name: Test Redis HASH and JSON vector collections
- name: Test Redis integrations
run: >
uv run --no-sync pytest packages/redis/tests/test_vector_store.py
uv run --no-sync pytest
packages/redis/tests/test_vector_store.py
packages/redis/tests/test_context_provider_integration.py
-m integration --timeout=120 --junitxml=pytest-redis.xml
- name: Upload test results
if: always()
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/python-merge-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,11 @@ jobs:
with:
python-version: ${{ env.UV_PYTHON }}
os: ${{ runner.os }}
- name: Test Redis HASH and JSON vector collections
- name: Test Redis integrations
run: >
uv run --no-sync pytest packages/redis/tests/test_vector_store.py
uv run --no-sync pytest
packages/redis/tests/test_vector_store.py
packages/redis/tests/test_context_provider_integration.py
-m integration --timeout=120 --junitxml=pytest-redis.xml
- name: Upload test results
if: always()
Expand Down
5 changes: 5 additions & 0 deletions python/packages/redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ JSON collections additionally require RedisJSON.
Redis Search indexes require logical database 0, so vector-store URLs and clients
must select database 0 (the default).

When upgrading an existing `RedisContextProvider` index, stop older writers and
initialize once with `overwrite_index=True` to migrate its scope schema while
preserving stored hashes. Repeat if prompted to resume a bounded migration,
then remove the option; normal providers reject incomplete migrations.

Choose `storage_type="hash"` for non-null records with binary vector storage,
or `"json"` for nullable fields/vectors and native JSON data. HASH rejects
`None`, including `vector=None`; JSON preserves explicit null. Both support
Expand Down
548 changes: 489 additions & 59 deletions python/packages/redis/agent_framework_redis/_context_provider.py

Large diffs are not rendered by default.

Loading
Loading