Prerequisites
- A datasource. See Managing datasources to create one.
- Your API key in the
MEIBEL_API_KEYenvironment variable.
Apply a metadata shape
When your documents fit a familiar domain, a prebuilt shape saves you from defining fields by hand. The catalog ships shapes for common document types, including bibliography, legal, medical, and insurance. Browse it to find a shape and note itsmodel_id.
Define custom fields
When no prebuilt shape fits, define the fields yourself. Each field carries a name, a type, and a description that tells the extractor what to capture. Setindex to true on a field to make it filterable, which is what lets you search and scope by it later.
string, integer, float, boolean, datetime, uuid, geo, or list[string].
A fixed number of fields can be indexed per data type, so index the fields you most need to filter and scope by. An unindexed field is still extracted and still describes its data, but cannot be filtered on.
Annotate a data element
Automatic extraction covers most values, but sometimes you know a value the extractor cannot infer, or you need to correct one it got wrong. Set metadata directly on a single data element.Scope access with an indexed field
Indexing is what connects metadata to access control. Once a field is indexed, an execution policy can filter on it, so you can hold each session to the slice of data a given user should see. Withproduct_line indexed, a policy can restrict a session to a single line:
product_line is commercial. A field that was never indexed cannot appear in a filter like this, which is why the fields you choose to index set the boundary of what you can govern. For the steps to create and apply policies, see Managing execution policies.
Related guides
Datasources
How metadata, retrieval, and access control fit together.
Managing Datasources
Create datasources, add content, and trigger ingestion.
Data Elements
List, search, and inspect the data elements metadata attaches to.
Managing Execution Policies
Scope sessions by filtering on indexed metadata fields.