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 = [
{
"embeddings": [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.7.0.tar.gz
(42.3 kB
view details)
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
starpoint-0.7.0-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file starpoint-0.7.0.tar.gz.
File metadata
- Download URL: starpoint-0.7.0.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c0705faa3b2863e1567b958a1eed1d978d7a716e0c1c813b5f99c74fc7a18d
|
|
| MD5 |
00286b9f537d98773634579582dd81da
|
|
| BLAKE2b-256 |
fc9d94c5a5ea5057ef74d5e9e841d82dc512e0207f02ac20ff986d6a9cb446d8
|
File details
Details for the file starpoint-0.7.0-py3-none-any.whl.
File metadata
- Download URL: starpoint-0.7.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5135089ffe3afe403861dab162fa24883dd0e4a8975d44c160942bcbe73b0b92
|
|
| MD5 |
f93cf18efeb2a12cb2f273d708f39131
|
|
| BLAKE2b-256 |
7011b4988bebe47fe76a981f9265497a3995f22ba6e6fe466710bbd826000b33
|