Getting Started
Use Pipeline
After running a job to create a mapper, you can use it as an embedded pipeline in your code. This is especially helpful to create pipelines where similar data will come in, and you need to embed a static mapper after creating it with Lume.
1
Run pipeline
Call Run Pipeline using the pipeline_id
. This will:
- Create aJob: creates a job in an existing pipeline given source data.
- Run Job: executes job run.
- Get Result: returns the output result object.
Wait until the job finishes. This can take one to several minutes, correlated to the complexity of the schemas and number of AI generations.
2
Retrieve mapped data
Call Get Mappings For Result with result_id
. This returns a Mapping (mapped data and validation errors).
To learn how to parse the mapped data, see Mappings. After retrieving the data, pipe it to your next destination.