OpenTelemetry instrumentation for Qdrant vector database
Project description
traceAI-qdrant
OpenTelemetry instrumentation for Qdrant vector database.
Installation
pip install traceAI-qdrant
Quick Start
from fi_instrumentation import register
from traceai_qdrant import QdrantInstrumentor
from qdrant_client import QdrantClient
from qdrant_client.models import VectorParams, Distance, PointStruct
trace_provider = register(project_name="my-rag-app")
QdrantInstrumentor().instrument(tracer_provider=trace_provider)
client = QdrantClient(":memory:")
client.create_collection("documents", vectors_config=VectorParams(size=384, distance=Distance.COSINE))
client.upsert("documents", points=[
PointStruct(id=1, vector=[0.1]*384, payload={"text": "Hello"}),
PointStruct(id=2, vector=[0.2]*384, payload={"text": "World"}),
])
results = client.search("documents", query_vector=[0.15]*384, limit=5)
Instrumented Operations
| Operation | Span Name | Description |
|---|---|---|
search |
qdrant search |
Vector similarity search |
upsert |
qdrant upsert |
Insert or update points |
delete |
qdrant delete |
Delete points |
retrieve |
qdrant retrieve |
Get points by ID |
scroll |
qdrant scroll |
Iterate through points |
recommend |
qdrant recommend |
Recommendation search |
count |
qdrant count |
Count points |
License
Apache License 2.0
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
traceai_qdrant-0.1.0.tar.gz
(3.4 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 traceai_qdrant-0.1.0.tar.gz.
File metadata
- Download URL: traceai_qdrant-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca5cc4625405b1bb2c47bf997088317c449787970d795f4a68f069462c88cc01
|
|
| MD5 |
3b24a1f920634636d21a1e93c6fab0ec
|
|
| BLAKE2b-256 |
5ab412ce560235e2884fef0edc5d56d0a17ac3e2eccb1e6ec6a6a4ba373d0c70
|
File details
Details for the file traceai_qdrant-0.1.0-py3-none-any.whl.
File metadata
- Download URL: traceai_qdrant-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4589f4f49c3c5e7b6e3053777d51a1e01088203e2ba4e8ab0fc1ec0168cb5a5
|
|
| MD5 |
126f5e8b570fa759c1b1d3dfeeaa00d7
|
|
| BLAKE2b-256 |
c6e15f56862d32a4c5f07c3a19c893946758bef3e2248b423e56f6ff8b1584f0
|