opendcai/dataflow-webui/text2qa-sample-evaluator

Claude Code and agent skill by opendcai/dataflow-webui

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Reference documentation for the Text2QASampleEvaluator operator. Use when: evaluating QA pair quality across multiple dimensions.

Install

npx vskill@latest install opendcai/dataflow-webui/text2qa-sample-evaluator

SKILL.md

Text2QASampleEvaluator Operator Reference

Text2QASampleEvaluator evaluates QA pairs across 4 dimensions, generating 8 output columns (grades + feedbacks for each dimension).

1. Import

python
from dataflow.operators.core_text import Text2QASampleEvaluator

2. Constructor

python
Text2QASampleEvaluator(
llm_serving=llm_serving,
)
ParameterRequiredDefaultDescription
llm_servingYesNoneLLM service object

3. run() Signature

python
op.run(
storage=self.storage.step(),
input_question_key="question",
input_answer_key="answer",
)
# returns: list of 8 output column names
ParameterRequiredDefaultDescription
storageYesNoneStorage step object
input_question_keyNo"generated_question"Question column name
input_answer_keyNo"generated_answer"Answer column name

4. Output Columns (8 columns)

Column Name (Default)Description
question_quality_gradesQuestion quality scores
question_quality_feedbacksQuestion quality feedback
answer_alignment_gradesAnswer alignment scores
answer_alignment_feedbacksAnswer alignment feedback
answer_verifiability_gradesAnswer verifiability scores
answer_verifiability_feedbacksAnswer verifiability feedback
downstream_value_gradesDownstream value scores
downstream_value_feedbacksDownstream value feedback

Note: Column names use plural suffix (grades/feedbacks), not singular.

5. Usage Example

python
from dataflow.operators.core_text import Text2QASampleEvaluator
from dataflow.serving import APILLMServing_request
from dataflow.utils.storage import FileStorage
class MyPipeline:
def __init__(self):
self.storage = FileStorage(
first_entry_file_name="./data/qa_pairs.jsonl",
cache_path="./cache",
file_name_prefix="step",
cache_type="jsonl"
)
self.llm_serving = APILLMServing_request(
api_url="https://api.openai.com/v1/chat/completions",
key_name_of_api_key="DF_API_KEY",
model_name="gpt-4o",
max_workers=10
)
self.evaluator = Text2QASampleEvaluator(
llm_serving=self.llm_serving
)
def forward(self):
self.evaluator.run(
storage=self.storage.step(),
input_question_key="question",
input_answer_key="answer"
)
if __name__ == "__main__":
pipeline = MyPipeline()
pipeline.forward()

6. Runtime Logic

  1. Read DataFrame from storage.
  2. Validate input_question_key and input_answer_key columns exist.
  3. Validate all 8 output columns do NOT exist (raises ValueError if they do).
  4. For each row, call LLM 4 times (once per dimension):
  • Question quality evaluation
  • Answer alignment evaluation
  • Answer verifiability evaluation
  • Downstream value evaluation
  1. Each LLM call returns a grade (numeric score) and feedback (text).
  2. Write results to 8 output columns.
  3. Return list of 8 output column names.
Text Constraints
  • input_question_key and input_answer_key must contain non-empty text
  • Empty or NaN values may cause evaluation errors
  • No automatic text length limits enforced by operator
  • LLM context window limits apply (typically 4K-128K tokens depending on model)

7. Important Notes

  • Calls LLM 4 times per row (once per dimension), high cost
  • All 8 output columns must not exist before calling
  • No input_key parameter (will raise TypeError)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opendcai/dataflow-webui/text2qa-sample-evaluator/badge)](https://verified-skill.com/skills/opendcai/dataflow-webui/text2qa-sample-evaluator)

Something wrong with this skill or its page? Tell us.