astra-cli icon indicating copy to clipboard operation
astra-cli copied to clipboard

[Feature] - Add new option to collection creation

Open clun opened this issue 1 year ago • 0 comments

Astra CLI can create collection but we need new options to be provided:

Field description
keyspace Keyspace, if not provided defaulting to default_keyspace
collection Name of the collection
embedding-provider Associate to vectorize, embedding provider
embedding-model Associate to vectorize, embedding model
dimension Vector dimension
indexing-allow List of fields to include in indexing
indexing-deny List of fields to exclude from indexing
default-id Default Id in the collection , accepted values are objectid, uuidv6,uuidv7,uuid
astra db create-collection mydb \
 --keyspace default_keyspace
 --collection collection1 \
 --embedding-provider openai \
 --embedding-model text-embedding-3-small \
 --dimension 1536
 --indexing-allow a,b,c
 --indexing-deny d,e,f
 --default-id uuid

clun avatar Mar 08 '24 16:03 clun