traceAI-redis
OpenTelemetry instrumentation for Redis Vector Search (RediSearch/RedisVL).
Installation
pip install traceAI-redis
Quick Start
Using RedisVL (Recommended)
from fi_instrumentation import register
from traceai_redis import RedisInstrumentor
from redisvl.index import SearchIndex
from redisvl.query import VectorQuery
trace_provider = register(project_name="my-rag-app")
RedisInstrumentor().instrument(tracer_provider=trace_provider)
index = SearchIndex.from_yaml("schema.yaml")
# All operations are traced
query = VectorQuery(
vector=[0.1, 0.2, ...],
vector_field_name="embedding",
return_fields=["content"],
num_results=5
)
results = index.search(query)
Using redis-py directly
from redis import Redis
from redis.commands.search.query import Query
client = Redis()
# FT.SEARCH with vector queries are traced
query = Query("*=>[KNN 5 @embedding $vec AS score]").dialect(2)
results = client.ft("documents").search(query, query_params={"vec": vector_bytes})
Instrumented Operations
| Operation | Span Name | Description |
|---|---|---|
search |
redis vector_search |
Vector similarity search |
load |
redis load |
Load vectors into index |
query |
redis query |
Execute search query |
ft_search |
redis ft_search |
RediSearch FT.SEARCH |
ft_create |
redis ft_create |
Create search index |
ft_dropindex |
redis ft_dropindex |
Drop search index |
hset |
redis hset |
Set hash fields (used for vectors) |
pipeline |
redis pipeline |
Batch operations |
License
Apache License 2.0
Metadata
Release files for traceAI-redis 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| traceai_redis-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for traceai_redis-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| traceai_redis-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for traceai_redis-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / traceai_redis-0.1.0.tar.gz
| Download URL | traceai_redis-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0796f422d3843b96cd273054efb5a2bc018968d756081b04eb52596adbbf86ad
|
|
BLAKE2b-256 checksum How to use checksums |
dc3aff3ad6253c11b23122e7908986bfa598905899e4f3f2d14e1b4492bcad4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / traceai_redis-0.1.0-py3-none-any.whl
| Download URL | traceai_redis-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bb348d936f627b2395e533b0920623aa4e777f450eebef0f92ed33292ca1255
|
|
BLAKE2b-256 checksum How to use checksums |
d08bdb33035ef1ef0b8eb4e4fc9fd3ab0cde1c9d6b2ea6132de1eb131398c3c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for traceAI-redis 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.