Skip to main content
Insert individual points or batches of points into your collection. Each point can carry a JSON payload with metadata fields such as categories, prices, and timestamps. Payload fields are available for filtering during search. The payload field accepts any valid JSON structure. Include only the fields you need for filtering or displaying results.
You need an existing collection. Vectors must match the dimension configured for the collection. See Create a collection to set one up.

Insert a single point

The insert() method is an alias for upsert(). A new ID inserts a new point, while an existing ID updates the point with the new vector and payload.
Payload is optional. You can insert points with only ID and vector:

Batch insert points

Batch operations are significantly faster than individual inserts. Use batch sizes between one hundred and one thousand points for optimal performance. The upsert_points() method is an alias for batch_upsert().