OpenTelemetry instrumentation for Weaviate vector database
Project description
traceAI-weaviate
OpenTelemetry instrumentation for Weaviate vector database (v4 API).
Installation
pip install traceAI-weaviate
Quick Start
from fi_instrumentation import register
from traceai_weaviate import WeaviateInstrumentor
import weaviate
trace_provider = register(project_name="my-rag-app")
WeaviateInstrumentor().instrument(tracer_provider=trace_provider)
client = weaviate.connect_to_local()
collection = client.collections.get("Documents")
# All operations are traced
results = collection.query.near_text(query="machine learning", limit=5)
collection.data.insert(properties={"title": "My Doc", "content": "..."})
Instrumented Operations
| Operation | Span Name | Description |
|---|---|---|
near_vector |
weaviate near_vector |
Vector similarity search |
near_text |
weaviate near_text |
Text-based semantic search |
hybrid |
weaviate hybrid |
Hybrid BM25 + vector search |
bm25 |
weaviate bm25 |
Keyword search |
fetch_objects |
weaviate fetch_objects |
Fetch objects |
insert |
weaviate insert |
Insert single object |
insert_many |
weaviate insert_many |
Batch insert |
delete_by_id |
weaviate delete_by_id |
Delete by ID |
delete_many |
weaviate delete_many |
Batch delete |
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
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_weaviate-0.1.0.tar.gz.
File metadata
- Download URL: traceai_weaviate-0.1.0.tar.gz
- Upload date:
- Size: 3.3 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 |
94eb278ee729188afb3218b628dbd3548dbbb335b0c587d30409baab76808e15
|
|
| MD5 |
4ae12087e63878733ba60a3f7a2b02ac
|
|
| BLAKE2b-256 |
8d2d23d4dd0f0bd21ecd2f8e52a4687c191fbfeca9c985b12a943d61439e12d6
|
File details
Details for the file traceai_weaviate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: traceai_weaviate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 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 |
3506a7c3897d304adaaeab425ddb94bfd8e4e51e617883e91234a85a13e9f506
|
|
| MD5 |
a4d4a0b77eb3f5d2c7f4d012447b1b72
|
|
| BLAKE2b-256 |
c22104d137593d6401e2089190faa99ca76d7539e235a069cbc3754e8bec5a6b
|