Open hemidactylus opened 3 months ago
On 1.0.12.
Collections with HF dedicated make the findCollections command break when explain=true is passed. Steps:
a working setup with scoped secret for HF Dedicated
curl -XPOST \ "$ASTRA_DB_API_ENDPOINT/api/json/v1/default_keyspace" \ -H "token: $ASTRA_DB_APPLICATION_TOKEN" \ -H "Content-Type: application/json" \ -d ' { "createCollection": { "name": "vec_h_huggingfacededicatedendpointde_aderf", "options": { "vector": { "dimension": 384, "metric": "cosine", "service": { "parameters": { "cloudName": "aws", "endpointName": "*REDACTED*", "regionName": "us-east-1" }, "provider": "huggingfaceDedicated" } } } } } ' | jq
returns
{ "status": { "ok": 1 } }
this
curl -XPOST \ "$ASTRA_DB_API_ENDPOINT/api/json/v1/default_keyspace" \ -H "token: $ASTRA_DB_APPLICATION_TOKEN" \ -H "Content-Type: application/json" \ -d ' { "findCollections": {} } ' | jq
works and returns
{ "status": { "collections": [ "vec_h_huggingfacededicatedendpointde_aderf" ] } }
curl -XPOST \ "$ASTRA_DB_API_ENDPOINT/api/json/v1/default_keyspace" \ -H "token: $ASTRA_DB_APPLICATION_TOKEN" \ -H "Content-Type: application/json" \ -d ' { "findCollections": { "options": { "explain": true } } } ' | jq
errors with
{ "errors": [ { "message": "The provided options are invalid: 'modelName' is not needed for provider huggingfaceDedicated", "errorCode": "INVALID_CREATE_COLLECTION_OPTIONS" } ] }
On 1.0.12.
Collections with HF dedicated make the findCollections command break when explain=true is passed. Steps:
pre-requisites
a working setup with scoped secret for HF Dedicated
step 1: create
returns
step 2: simple findCollections
this
works and returns
step 3: explain=true
this
errors with