SDK for Starpoint DB
Project description
Starpoint AI SDK
Installation
pip install starpoint
Quickstart
After you have a API key and a collection created on your starpoint account
from starpoint.db import Client
client = Client(api_key="YOUR_API_KEY_HERE")
documents = [
{
"embedding": [0.1, 0.2, 0.3, 0.4, 0.5],
"metadata": {
"label1": "0",
"label2": "1",
}
},
]
// Instead of collection_name you can also use collection_id="COLLECTION_ID"
client.insert(documents=documents, collection_name="COLLECTION_NAME")
Contributing
Make sure you have installed dev requirements
pip install -r dev-requirements.txt
Unit tests should be passing. You can run them via
pytest ./tests
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
starpoint-0.4.4.tar.gz
(56.4 kB
view hashes)
Built Distribution
starpoint-0.4.4-py3-none-any.whl
(15.2 kB
view hashes)
Close
Hashes for starpoint-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a89b6dd7d2c711365a32424e59bee26bb8cbc1b1fdf63870287c8cab870d724 |
|
MD5 | 0be1abf1720ac28b71805e26a204e7cb |
|
BLAKE2b-256 | 1f9f78afe0b6ae46e3bd1ae4cf82b8ab3061c1495e5368b2e1cfb839415d9e3f |