Vector Operations API
Manage vector data with high-performance operations designed for machine learning workflows.
Insert Vectors
POST
/api/v1/collections/{collection_name}/vectors
Description
Insert one or more vectors into a specified collection.
Parameters
- collection_name (path): Name of the target collection
- vectors (body): Array of vector objects to insert
Example Request
{
"vectors": [
{
"id": "vec_001",
"values": [0.1, 0.2, 0.3, 0.4],
"metadata": {
"category": "text",
"source": "document_1"
}
}
]
}
Response
{
"success": true,
"inserted_count": 1,
"operation_id": "op_12345"
}
Get Vector by ID
GET
/api/v1/collections/{collection_name}/vectors/{vector_id}
Description
Retrieve a specific vector by its unique identifier.