Skip to main content

The Python client for the Atlas vector database

Project description

Atlas Client

The Python client for the Atlas vector database.

Installation

pip install atlas-db-client

Quick Start

from atlas_db_client import AtlasClient

client = AtlasClient(host="http://localhost:8600")

# Create a collection
collection = client.create_collection(
    name="my-collection",
    dimension=128,
    metric="cosine",
)

# Insert a vector
result = client.insert_vector(
    collection_id=collection.id,
    vector=[0.1] * 128,
    metadata={"label": "example"},
)

# Search
response = client.search(
    collection_id=collection.id,
    vector=[0.1] * 128,
    k=5,
)

for r in response.results:
    print(r.id, r.score)

Async Support

from atlas_db_client import AsyncAtlasClient

async with AsyncAtlasClient() as client:
    collection = await client.create_collection(
        name="my-collection",
        dimension=128,
        metric="cosine",
    )

License

MIT

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

atlas_db_client-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

atlas_db_client-0.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file atlas_db_client-0.0.2.tar.gz.

File metadata

  • Download URL: atlas_db_client-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for atlas_db_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fefdcf215e2e737d9b020d5ba6d31312e90b57f6fc217d02f2842a56fd1ac8f3
MD5 54f9adc54b49084675cac2f56684292a
BLAKE2b-256 fe964746e09f0af893ae18dc90bd6d7e63f819710f08c353885f0cac65d1db9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_db_client-0.0.2.tar.gz:

Publisher: release.yml on devfrank-m/python-atlas-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file atlas_db_client-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for atlas_db_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56b37f0a3d6d3c2baf4a4f8edf010bc32cd5a3063f89e57f85d5650906caeec9
MD5 5c2a86b766967f70444f439fb9333baf
BLAKE2b-256 5d925a2e073b224323ec6fd6a3f31c4067a8276304a3c44cf2c31326b74aaeb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_db_client-0.0.2-py3-none-any.whl:

Publisher: release.yml on devfrank-m/python-atlas-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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