redis-vl-python  by redis

AI-native Python client for Redis

created 2 years ago
320 stars

Top 86.0% on sourcepulse

GitHubView on GitHub
Project Summary

RedisVL is an AI-native Python client for Redis, designed to simplify the integration of vector search and AI capabilities into applications. It targets AI/ML engineers and data scientists building real-time RAG pipelines, agentic memory structures, and recommendation engines, enabling fast information retrieval and semantic search using Redis.

How It Works

RedisVL leverages Redis Stack's vector search capabilities, allowing users to define schemas with vector fields and metadata. It provides a Pythonic interface for creating and querying these indexes, supporting various vector algorithms and distance metrics. The library also integrates with popular vectorization services and offers extensions for LLM caching, session management, and semantic routing, all powered by Redis.

Quick Start & Requirements

  • Install via pip: pip install redisvl
  • Requires Python >= 3.8.
  • Redis Stack (Docker recommended: docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest).
  • Official documentation: https://redisvl.readthedocs.io/en/latest/

Highlighted Details

  • Schema definition for index management using YAML or Python dictionaries.
  • Flexible query capabilities including vector search, metadata filtering, and range queries.
  • Built-in vectorizers for OpenAI, Cohere, HuggingFace, and more.
  • Extensions for LLM semantic caching, session management, and semantic routing.
  • Command-line interface (rvl) for index management.

Maintenance & Community

  • Supported by Redis, Inc.
  • Contribution welcome via GitHub issues and PRs.

Licensing & Compatibility

  • MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

  • Threshold optimization utility requires Python > 3.9.
Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
3
Star History
31 stars in the last 90 days

Explore Similar Projects

Starred by Matei Zaharia Matei Zaharia(Cofounder of Databricks), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
4 more.

hyperDB by jdagdelen

0%
1k
Local vector database for LLM agent applications
created 2 years ago
updated 5 months ago
Starred by John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), Zhiqiang Xie Zhiqiang Xie(Author of SGLang), and
7 more.

milvus by milvus-io

0.4%
36k
Cloud-native vector database for scalable ANN search
created 5 years ago
updated 8 hours ago
Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
12 more.

redis by redis

0.1%
70k
Redis is a versatile data structure server, cache, and query engine
created 16 years ago
updated 2 days ago
Feedback? Help us improve.