Skip to main content

Official Python SDK for SwarnDB — the vector database that thinks in graphs. Combines HNSW + IVF-PQ indexing with virtual graph traversal and 15+ vector math operations.

Project description

SwarnDB Python SDK

Official Python SDK for SwarnDB — the vector database that thinks in graphs.

Combines HNSW + IVF-PQ indexing with virtual graph traversal and 15+ vector math operations.

Installation

pip install swarndb

Quick Start

from swarndb import SwarnClient

client = SwarnClient("localhost:50051")

# Create a collection
client.create_collection("my_vectors", dimension=128)

# Insert vectors
client.insert("my_vectors", vectors=[[0.1, 0.2, ...]], ids=["vec1"])

# Search
results = client.search("my_vectors", query=[0.1, 0.2, ...], top_k=10)

Features

  • HNSW + IVF-PQ hybrid indexing
  • Virtual graph traversal
  • 15+ vector math operations
  • Sync and async gRPC clients
  • NumPy integration

License

ELv2

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

swarndb-1.0.0.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

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

swarndb-1.0.0-py3-none-any.whl (61.8 kB view details)

Uploaded Python 3

File details

Details for the file swarndb-1.0.0.tar.gz.

File metadata

  • Download URL: swarndb-1.0.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for swarndb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0df53dfab0c0eecc8cb0b53f99909200db754f4e0618cb0582028db1ff7e8fe8
MD5 af7f773eb48c1835415bbb94e30ecc80
BLAKE2b-256 6796c330799822e46b95c74acaa65b48ad078dd959f0b51158898c47c764ba63

See more details on using hashes here.

File details

Details for the file swarndb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: swarndb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 61.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for swarndb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a61e5f9a5b44648942a810eea42fcfb1b09a740d1541857c818fa05f83ce76ff
MD5 ee87a5374378b46e2ebee5b4a8d96ee0
BLAKE2b-256 4e478187284a5dbd825ea8e409ef01a0c5951cdac4daa1771554cf5423f1d439

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