opendcai/dataflow-webui/retrieval-generator
Claude Code and agent skill by opendcai/dataflow-webui
- community
Checking that the SKILL.md file is still in the repository.
Reference documentation for the RetrievalGenerator operator. [Purpose] Reads one text column from storage, forwards every non-empty row to `llm_serving.generate_from_input(...)`, and writes the returned list into a new output column. [Default backend] Use `LightRAGServing` by default. [Important] `run()` is async. The operator itself does not initialize the serving object; it only awaits `llm_serving.generate_from_input(llm_inputs, system_prompt)`.
Install
npx vskill@latest install opendcai/dataflow-webui/retrieval-generatorSKILL.md
RetrievalGenerator Operator Reference
RetrievalGenerator is an async operator. It reads text from one column, collects only truthy values, calls await self.llm_serving.generate_from_input(llm_inputs, self.system_prompt), and writes the returned list into output_key.
See examples/good.md for a valid usage pattern and examples/bad.md for common failure cases.
1. Import
2. Constructor
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
llm_serving | Yes | None | Stored on self.llm_serving without validation. run() later awaits self.llm_serving.generate_from_input(llm_inputs, self.system_prompt). | |
system_prompt | No | "You are a helpful agent." | Stored on self.system_prompt and forwarded unchanged into generate_from_input(...). |
Notes
- The operator does not initialize the serving backend for you.
- Any serving object used here must already be ready before
run()starts. - Default recommendation: use
LightRAGServing.
3. Default LightRAGServing Initialization
If you use the default backend, initialize it like this before constructing RetrievalGenerator:
LightRAGServing.__init__()acceptsapi_url,key_name_of_api_key,llm_model_name,embed_model_name,embed_binding_host,embedding_dim,max_embed_tokens, anddocument_list.LightRAGServing.create(...)buildsself.ragand loads documents.DF_API_KEYmust exist in the environment, otherwise construction raisesValueError.- If document loading fails inside
create(...), it logs the error and returnsNone.
4. run() Signature
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
storage | Yes | None | Used as storage.read("dataframe") and storage.write(df). | |
input_key | No | "raw_content" | Column name read from each row via row.get(input_key, ""). Only truthy values are appended to llm_inputs. | |
output_key | No | "generated_content" | Column name assigned as df[output_key] = generated_outputs. |
Return Value
On success, the method returns the string output_key.
If generate_from_input(...) raises an exception, the operator logs the error and returns None.
5. Actual Runtime Logic
- Save
input_keyandoutput_keyontoself. - Read the DataFrame from
storage.read("dataframe"). - Iterate row by row.
- Read
row.get(input_key, ""). - Append
str(raw_content)only when the value is truthy. - Call
generated_outputs = await self.llm_serving.generate_from_input(llm_inputs, self.system_prompt). - Assign
generated_outputstodf[output_key]. - Write the updated DataFrame back with
storage.write(df). - Return
output_key.
There is no placeholder output for skipped rows.
6. Critical Constraints
run()is async. You must call it withawait.- Empty or falsy values in
input_keyare skipped before generation.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/canonical/core_text/generate/retrieval-generator/SKILL.md
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
[](https://verified-skill.com/skills/opendcai/dataflow-webui/retrieval-generator)