Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds content filtering notebook and corresponding dataset #34

Merged
merged 8 commits into from
Oct 9, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
GCP_REGION: ${{ secrets.GCP_REGION }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
run: |
pytest --verbose --nbval-lax python-recipes/RAG/ python-recipes/vector-search python-recipes/redis-intro --ignore python-recipes/RAG/05_nvidia_ai_rag_redis.ipynb --ignore python-recipes/semantic-cache/doc2cache_llama3_1.ipynb
pytest --verbose --nbval-lax python-recipes/RAG/ python-recipes/vector-search python-recipes/redis-intro python-recipes/recommendation-systems --ignore python-recipes/RAG/05_nvidia_ai_rag_redis.ipynb --ignore python-recipes/semantic-cache/doc2cache_llama3_1.ipynb
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ For further insights on enhancing RAG applications with dense content representa

## Recommendation systems

| Recipe | Description |
| --- | --- |
| [/recommendation-systems/content_filtering.ipynb](python-recipes/recommendation-systems/content_filtering.ipynb) | Intro content filtering example with redisvl |

### See also
An exciting example of how Redis can power production-ready systems is highlighted in our collaboration with [NVIDIA](https://developer.nvidia.com/blog/offline-to-online-feature-storage-for-real-time-recommendation-systems-with-nvidia-merlin/) to construct a state-of-the-art recommendation system.

Within [this repository](https://github.com/redis-developer/redis-nvidia-recsys), you'll find three examples, each escalating in complexity, showcasing the process of building such a system.
Expand Down
2 changes: 1 addition & 1 deletion python-recipes/RAG/01_redisvl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
" 'chunk_id': i,\n",
" 'content': chunk.page_content,\n",
" # For HASH -- must convert embeddings to bytes\n",
" 'text_embedding': array_to_buffer(embeddings[i])\n",
" 'text_embedding': array_to_buffer(embeddings[i], dtype='float32')\n",
" } for i, chunk in enumerate(chunks)\n",
"]\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion python-recipes/RAG/04_advanced_redisvl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
" 'chunk_id': f'{i}',\n",
" 'proposition': proposition,\n",
" # For HASH -- must convert embeddings to bytes\n",
" 'text_embedding': array_to_buffer(prop_embeddings[i])\n",
" 'text_embedding': array_to_buffer(prop_embeddings[i], dtype=\"float32\")\n",
" } for i, proposition in enumerate(propositions)\n",
"]\n",
"\n",
Expand Down
Loading
Loading