starpoint sdk
python-0.7.0
pip install starpoint
StarPoint 계정에서 API 키와 컬렉션이 생긴 후
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" )DEV 요구 사항을 설치했는지 확인하십시오
pip install -r dev-requirements.txt
단위 테스트가 통과해야합니다. 당신은 그들을 통해 그것을 실행할 수 있습니다
pytest ./tests