Ingest Data
Insert Bulk Objects
Bulk insert an array of objects
POST
/
api
/
v1
/
collection
/
bulk-insert
Insert JSON data of any structure.
collection
string
The collection to insert the data into.
objects
array
default: "[]"An array of JSON objects, for example:
[
{"message": "Hi James!", "sender": "Bill"},
{"message": "Hello!", "sender": "James"}
]
The id
field is reserved. If you need the id
field to be stored, it needs
to be stored as something else like _id
or $id
.
fieldsForVectorization
array
A list of fields to vectorize. If None is supplied, it uses all of them.
we suggest having a list of fields to vectorize where possible.
splitOnField
string
Field to split on. This is suggested if you have long documents to parse like a transcript. Splitting on long fields will improve vector results.
Content-Type
default: "application/json"required
Requires JSON Content Type