# Use RAGFlow as a retrieval and context layer for agent workflows

> Build a supervised RAG context layer with RAGFlow so agents can index documents, retrieve grounded context, and answer with traceable source support.

- Skill: `agentskillexchange/use-ragflow-as-a-retrieval-and-context-layer-for-agent-workf` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/use-ragflow-as-a-retrieval-and-context-layer-for-agent-workf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/use-ragflow-as-a-retrieval-and-context-layer-for-agent-workf/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/use-ragflow-as-a-retrieval-and-context-layer-for-agent-workf

---


# Use RAGFlow as a retrieval and context layer for agent workflows

Build a supervised RAG context layer with RAGFlow so agents can index documents, retrieve grounded context, and answer with traceable source support.

## Prerequisites

RAGFlow, Docker or supported self-hosted/cloud deployment, source document corpus

## Installation

Use the upstream install or setup path that matches your environment:
- If you have not installed Docker on your local machine (Windows, Mac, or Linux), see [Install Docker Engine](https://docs.docker.com/engine/install/).
- $ git clone https://github.com/infiniflow/ragflow.git
- $ docker compose -f docker-compose.yml up -d
- $ docker logs -f docker-ragflow-cpu-1

Requirements and caveats from upstream:
- <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
- <img src="https://img.shields.io/docker/pulls/infiniflow/ragflow?label=Docker%20Pulls&color=0db7ed&logo=docker&logoColor=white&style=flat-square" alt="docker pull infiniflow/ragflow:v0.25.4">
- 🔧 [Build a Docker image](#-build-a-docker-image)

- Source: https://github.com/infiniflow/ragflow
- Extracted from upstream docs: https://raw.githubusercontent.com/infiniflow/ragflow/HEAD/README.md

## Documentation

- https://ragflow.io

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/use-ragflow-as-a-retrieval-and-context-layer-for-agent-workflows/)

