Skip to main content

对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.4
  • redis[hiredis]==5.0.1
  • Python >= 3.11

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request 来改进此项目。

Project details


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.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ginkgo_tools_redis-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file ginkgo_tools_redis-0.1.1.tar.gz.

File metadata

  • Download URL: ginkgo_tools_redis-0.1.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ginkgo_tools_redis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d41a101e2e4f84f9a41f2d933e93da8e91d9b8cfb2dca59b1dff934f03975a3
MD5 1afbf5a93365517fa0041b422d2db89c
BLAKE2b-256 da0da70d1f4d109861e41ae6d8a14fda7325e6f58a42994ccc9157ba2e2aab0c

See more details on using hashes here.

File details

Details for the file ginkgo_tools_redis-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ginkgo_tools_redis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dac4b7b790c21feac9d232a0f522577a99b4224bc235f9a7db3c7460cb6a79d6
MD5 6e7e60e91ea3bc22f3abf7098d1b53de
BLAKE2b-256 dca84f7f71c093b53287cde20b0a5880edce0403db889552222b7434d1a9ee9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page