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.1.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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atlas_db_client-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 376816b4f3202a10845c7bc8dc290828b151b521ec3eb3527c0fa4e1cbc1e333
MD5 de5f43649d0784030f5f6aa60c35220d
BLAKE2b-256 2cbadce6e3f08cc3db7b98041b1b78483fbd38399f719dfc20ad62361c7a4e82

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_db_client-0.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for atlas_db_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5964eaec511e71a7242a95f3be345d7c15bf680a6ef9713d965e42cf8f9ff09c
MD5 21cf943ff6c965c9a0cc9104495d97be
BLAKE2b-256 27bb8cd2214caec905a3dde8f0ddac51a5e4422630e77cdf0f79545538e79094

See more details on using hashes here.

Provenance

The following attestation bundles were made for atlas_db_client-0.0.1-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