redis-vl-python  by redis

AI-native Python client for Redis

Created 2 years ago
328 stars

Top 83.2% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
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

3 days ago

Responsiveness

1 day

Pull Requests (30d)
3
Issues (30d)
6
Star History
4 stars in the last 30 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
6 more.

hyperDB by jdagdelen

0.1%
1k
Local vector database for LLM agent applications
Created 2 years ago
Updated 7 months ago
Feedback? Help us improve.