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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376816b4f3202a10845c7bc8dc290828b151b521ec3eb3527c0fa4e1cbc1e333
|
|
| MD5 |
de5f43649d0784030f5f6aa60c35220d
|
|
| BLAKE2b-256 |
2cbadce6e3f08cc3db7b98041b1b78483fbd38399f719dfc20ad62361c7a4e82
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlas_db_client-0.0.1.tar.gz -
Subject digest:
376816b4f3202a10845c7bc8dc290828b151b521ec3eb3527c0fa4e1cbc1e333 - Sigstore transparency entry: 1498611130
- Sigstore integration time:
-
Permalink:
devfrank-m/python-atlas-client@77799d33d3d6c550a9472f0f8f82bbdc282b08f8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/devfrank-m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@77799d33d3d6c550a9472f0f8f82bbdc282b08f8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file atlas_db_client-0.0.1-py3-none-any.whl.
File metadata
- Download URL: atlas_db_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5964eaec511e71a7242a95f3be345d7c15bf680a6ef9713d965e42cf8f9ff09c
|
|
| MD5 |
21cf943ff6c965c9a0cc9104495d97be
|
|
| BLAKE2b-256 |
27bb8cd2214caec905a3dde8f0ddac51a5e4422630e77cdf0f79545538e79094
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlas_db_client-0.0.1-py3-none-any.whl -
Subject digest:
5964eaec511e71a7242a95f3be345d7c15bf680a6ef9713d965e42cf8f9ff09c - Sigstore transparency entry: 1498611217
- Sigstore integration time:
-
Permalink:
devfrank-m/python-atlas-client@77799d33d3d6c550a9472f0f8f82bbdc282b08f8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/devfrank-m
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@77799d33d3d6c550a9472f0f8f82bbdc282b08f8 -
Trigger Event:
push
-
Statement type: