对redis做了再封装,常规的redis操作和向量操作都做了简化,方便使用
Project description
GINKGO-TOOLS-REDIS
对 Redis 进行再封装的工具库,简化了常规的 Redis 操作和向量操作,便于使用。
功能特性
- Redis 向量数据库操作:支持向量索引创建、KNN 相似性搜索、范围搜索
- 标签过滤查询:支持基于标签的查询功能
- 模块化架构:基于 RedisManager 的封装设计
- 向后兼容:保持与旧版 API 的兼容性
- 简化操作:提供简化的 Redis 操作接口
安装
pip install ginkgo-tools-redis
快速开始
from ginkgo_tools_redis import RedisOps
# 创建 Redis 连接实例
redis_ops = RedisOps(host="127.0.0.1", port=6379, db=0)
# 使用向量数据库功能
# 示例:创建向量索引、执行 KNN 搜索等
API 说明
RedisOps 类
RedisOps 类继承自 RedisManager,提供以下功能:
- 向量索引创建
- 标签过滤查询
- KNN 相似性搜索
- 范围搜索
- 保持与旧版 API 的兼容性
依赖
ginkgo-tools>=0.1.4redis[hiredis]==5.0.1- Python >= 3.11
许可证
MIT License
贡献
欢迎提交 Issue 和 Pull Request 来改进此项目。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ginkgo_tools_redis-0.1.0.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ginkgo_tools_redis-0.1.0.tar.gz.
File metadata
- Download URL: ginkgo_tools_redis-0.1.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c24c2539de9ec1263b33aa79b463a268025583c06c6ca96cdd3a82aee779c6e
|
|
| MD5 |
62dd1bd279dc9dc7fcd139a724af1b52
|
|
| BLAKE2b-256 |
7782d286a915660e07928a37bf7df7eed372fbcffa5a1409e0933a462e2a597d
|
File details
Details for the file ginkgo_tools_redis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ginkgo_tools_redis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4da6ff917b9a60123b92bec695c27dd2fe620c02ff99c4e2eac5a616dc4e752
|
|
| MD5 |
1f7c80344e88997321b4faec2c11fa70
|
|
| BLAKE2b-256 |
091f419f213b6909f858e06d3d10485539b9954525dd2dd9bce7deef63791882
|