v5
latestOpenAPI 3.1.02026-08-025631,1012.8 MBCreate Collection
Create a new processing collection linked to a namespace.
A collection defines the feature extraction pipeline that runs when objects are uploaded to a bucket. One feature extractor per collection.
Custom plugin collections:
When feature_extractor_name references a custom plugin, the collection's vector indexes are read from the plugin's manifest.py features list. The features entries must use these exact key names — wrong keys silently produce a collection with no vector indexes and 0 documents will be written:
{
"feature_type": "embedding",
"feature_name": "my_embedding",
"embedding_dim": 768,
"distance_metric": "cosine"
}
Common wrong keys (will be ignored): type, name, dimensions, distance.
Vector schema: Custom plugin vectors are automatically added to the namespace's Qdrant collection the first time a batch is processed, so there is no need to recreate the namespace when adding a plugin with new embedding types.
Request body
Example request
{
"collection_name": "product_embeddings",
"description": "Generate image embeddings with passthrough fields",
"enabled": true,
"feature_extractor": {
"feature_extractor_name": "image_extractor",
"field_passthrough": [
{
"required": true,
"source_path": "title"
},
{
"source_path": "category"
}
],
"input_mappings": {
"image": "product_image"
},
"parameters": {
"model": "clip-vit-base-patch32"
},
"version": "v1"
},
"source": {
"bucket_ids": [
"bkt_products"
],
"type": "bucket"
}
}Response
Successful Response
Example response
{
"collection_id": "col_a1b2c3d4e5",
"collection_name": "article_embeddings",
"description": "Simple text collection: News articles with text embeddings from bucket source",
"enabled": true,
"feature_extractor": {
"feature_extractor_name": "text_extractor",
"field_passthrough": [
{
"source_path": "title"
}
],
"input_mappings": {
"text": "content"
},
"version": "v1"
},
"input_schema": {
"properties": {
"title": {
"type": "string"
},
"content": {
"type": "text"
}
}
},
"output_schema": {
"properties": {
"title": {
"type": "string"
},
"text_extractor_v1_embedding": {
"type": "array"
}
}
},
"source": {
"bucket_id": "bkt_articles",
"type": "bucket"
}
}