Skip to main content

pyseekdb

pyseekdb is a Python SDK for seekdb and OceanBase AI search. It supports embedded and server deployments with vector, full-text, and hybrid retrieval, and exposes a collection-first API for application workflows. For advanced database operations, you can use MySQL-compatible drivers to run SQL against seekdb and OceanBase.

Key features:

  • Unified API: Single interface for embedded and remote server modes
  • Vector Operations: Efficient vector similarity search
  • Hybrid Search: Combine vector and full-text search
  • Embedding Functions: Built-in support for various embedding models
  • Collection Management: Easy collection (table) creation and management
  • Database Management: Admin operations for database management

Documentation

Installation

pip install -U pyseekdb
# or with uv
uv add pyseekdb

Quick Start

import pyseekdb

client = pyseekdb.Client(path="./seekdb.db", database="demo")
collection = client.get_or_create_collection("my_collection")

collection.add(
    ids=["doc1", "doc2"],
    documents=["Hello world", "pyseekdb quick start"],
    metadatas=[{"tag": "hello"}, {"tag": "demo"}],
)

# Refresh the index to make the added documents searchable
collection.refresh_index()

results = collection.query(query_texts=["hello"], n_results=3)
print(results["ids"][0])

For full usage, connection modes, collection management, and operations, see the User Guide.

License

This package is licensed under Apache 2.0. See LICENSE.

Metadata

Release files for pyseekdb 1.4.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pyseekdb 1.4.0.post1
File Interpreter ABI Platform Actions
pyseekdb-1.4.0.post1-py3-none-any.whl Python 3 none any Details for pyseekdb-1.4.0.post1-py3-none-any.whl

Release files / pyseekdb-1.4.0.post1-py3-none-any.whl

Download URL pyseekdb-1.4.0.post1-py3-none-any.whl
Size 158.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3379f6962a0c01aa029d3e5a8f0c0f5a59b27a689b8aae1931d9ce5563f252c
BLAKE2b-256 checksum
How to use checksums
2287d5dd862faa3d4adf3847c1ce19c3ea5ecd0dcfda9c2584a95bfd2b0fac0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for pyseekdb 1.4.0.post1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page