GenerateAnswersFromGroundTruth 2025.10.9.21

Bundle

com.snowflake.openflow.runtime | runtime-rag-evaluation-processors-nar

Description

Generates synthetic answers for each question in the incoming records using an LLM. The synthetic answers are added to the specified RecordPath within each record. Additionally, the processor tracks the number of answers generated and updates the FlowFile attributes accordingly.

Tags

ai, answers, generation, llm, nlp, openai, openflow, rag, synthetic

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Answer Record PathThe RecordPath to the synthetically generated answers.
Ground Truth Record PathThe RecordPath to the ground truth field in the record.
LLM Provider ServiceThe provider service for sending evaluation prompts to LLM
Question Record PathThe RecordPath to the question field in the record.
Record ReaderThe Record Reader to use for reading the FlowFile.
Record WriterThe Record Writer to use for writing the results.

Relationships

NameDescription
failureFlowFiles that cannot be processed are routed to this relationship
successFlowFiles that are successfully processed are routed to this relationship

Writes attributes

NameDescription
answers.successfully.generatedThe total number of successfully synthetic answers generated for the FlowFile.
answers.failed.generatedThe total number of failed answer generation for the FlowFile.
json.parse.failuresNumber of JSON parse failures encountered.