morpheus_llm.llm.nodes.extracter_node.ExtracterNode#
- class ExtracterNode[source]#
Bases:
LLMNodeBaseExtracts fields from the DataFrame contained by the message attached to the
LLMContextand copies them directly to the context.The list of fields to be extracted is provided by the task’s
input_keysattached to theLLMContext.Methods
execute(self, context)Execute the current node with the given
contextinstance.get_input_names(self)Get the input names for the node.
- async execute(
- self: morpheus_llm._lib.llm.LLMNodeBase,
- context: morpheus_llm._lib.llm.LLMContext,
Execute the current node with the given
contextinstance.All inputs for the given node should be fetched from the context, typically by calling either
context.get_inputsto fetch all inputs as adict, orcontext.get_inputto fetch a specific input.Similarly the output of the node is written to the context using
context.set_output.- Parameters:
- context
morpheus._lib.llm.LLMContext Context instance to use for the execution
- context