docs/guides/agent/agent_component_reference/transformer.md
A component that uses an LLM to extract insights from the chunks.
A Transformer component indexes chunks and configures their storage formats in the document engine. It typically precedes the Indexer in the ingestion pipeline, but you can also chain multiple Transformer components in sequence.
A Transformer component is essential when you need the LLM to extract new information, such as keywords, questions, metadata, and summaries, from the original chunks.
Click the dropdown menu of Model to show the model configuration window.
:::tip NOTE
Select the type of output to be generated by the LLM:
Typically, you use the system prompt to describe the task for the LLM, specify how it should respond, and outline other miscellaneous requirements. We do not plan to elaborate on this topic, as it can be as extensive as prompt engineering.
:::tip NOTE The system prompt here automatically updates to match your selected Result destination. :::
The user-defined prompt. For example, you can type / or click (x) to insert variables of preceding components in the ingestion pipeline as the LLM's input.
The global variable name for the output of the Transformer component, which can be referenced by subsequent Transformer components in the ingestion pipeline.
chunksArray<Object>