Data Elements
Data elements are the individual items extracted from your datasource files during ingestion. Each element has anid, a name, a media_type, an optional description, and metadata. Agents can retrieve and cite them. This guide covers listing, searching, inspecting, and updating data elements.
List data elements
Retrieve all data elements for a datasource. Results are paginated automatically by the SDK iterator.id, name, media_type, description, and metadata.
Get a data element
Retrieve the full details of a specific data element, including its name, media type, and metadata.Search data elements
Search across data elements within a datasource by filtering on the element name with a regular expression, optionally narrowing by media type. Matching elements are returned inresults.items.
results.items is a data element with its id, name, media_type, and metadata. Page through larger result sets with results.has_next and results.next_cursor.
Update a data element
Modify a data element’s name, description, or metadata. This is useful for correcting extraction errors or enriching elements with additional context. See Managing datasource metadata for defining metadata fields and indexing them so you can filter and scope by them.Updates apply to a data element’s
name, description, and metadata. Metadata you set here can be indexed for filtering and scoping (see Managing datasource metadata).