Skip to main content

OpenTelemetry instrumentation for LanceDB vector database

Project description

traceAI-lancedb

OpenTelemetry instrumentation for LanceDB embedded vector database.

Installation

pip install traceAI-lancedb

Quick Start

from fi_instrumentation import register
from traceai_lancedb import LanceDBInstrumentor
import lancedb

trace_provider = register(project_name="my-rag-app")
LanceDBInstrumentor().instrument(tracer_provider=trace_provider)

db = lancedb.connect("~/.lancedb")
table = db.open_table("documents")

# All operations are traced
results = table.search([0.1, 0.2, ...]).limit(5).to_list()
table.add([{"vector": [...], "text": "..."}])

Instrumented Operations

Operation Span Name Description
search lancedb search Vector similarity search
add lancedb add Add records to table
update lancedb update Update records
delete lancedb delete Delete records
create_table lancedb create_table Create new table
drop_table lancedb drop_table Drop table
open_table lancedb open_table Open existing table

License

Apache License 2.0

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

traceai_lancedb-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

traceai_lancedb-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file traceai_lancedb-0.1.0.tar.gz.

File metadata

  • Download URL: traceai_lancedb-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 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

Hashes for traceai_lancedb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48104c41a4c993c7865c25c2d185de6203b5be342f585267649e7c5c804f8386
MD5 28aa95def60fa6da094b3e7c08f5383b
BLAKE2b-256 c952ef430bc1b211b70e0cd28a10bac3cf059733ac735793c2e4e3c4990a0610

See more details on using hashes here.

File details

Details for the file traceai_lancedb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: traceai_lancedb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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

Hashes for traceai_lancedb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a7eec77ce040bf281e3602f43959c1616d1e90dd10bb2d81af979476b104beb
MD5 6a657a1fbc5b570fbab672ff91e06e9e
BLAKE2b-256 beff1e80e14c7aeabfd8164e115bdc7f414f7f1ecaf3968534870218635264d3

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