Update Document Metadata
Post details of a given document that will enrich the chunk and be added to the context or just for filtering. If Just for filtering, start with ”_” in the key.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Datastore ID of the datastore from which to retrieve the document
Document ID of the document to retrieve details for
Body
Metadata request in JSON
format. Metadata should be structured as a nested dictionary where:
- The metadata type (currently, only
custom_metadata
is supported) is mapped to a dictionary. - The dictionary keys represent metadata attributes. - The values can be of typestr
,bool
,float
, orint
.
Example MetadataRequest JSON:
{
"custom_metadata": {
"customKey1": "value3",
"_filterKey": "filterValue3"
}
}
Response
Document description
ID of the document that was ingested
User specified name of the document
Status of this document's ingestion job
pending
, processing
, retrying
, completed
, failed
, cancelled
, failed_to_provision
, generating_data
, training_in_progress
, failed_to_generate_data
, provisioning
Timestamp of when the document was created in ISO format.
Timestamp of when the document was modified in ISO format.
Was this page helpful?