Back to Blog
RAGDecember 7, 202515 min read

RAG Use Cases: Chain of Retrieval Augmented Generation, Active RAG, and Enterprise Search with Pipeline Builder and Widgets

Explore advanced RAG use cases including chain of retrieval augmented generation, active retrieval augmented generation, knowledge graph-guided RAG, and enterprise search. Learn how ShinRAG's visual pipeline builder and embeddable widgets enable local chatbot retrieval augmented generation and complex RAG workflows.

Retrieval Augmented Generation (RAG) has evolved beyond simple question-answering. Advanced techniques like chain of retrieval augmented generation, active retrieval augmented generation, and knowledge graph-guided RAG enable sophisticated use cases. This guide explores real-world RAG applications and how ShinRAG's pipeline builder and widgets make these advanced patterns accessible.

Understanding Advanced RAG Patterns

Modern RAG applications use sophisticated patterns to improve accuracy, handle complex queries, and provide better user experiences. Let's explore the key patterns:

Chain of Retrieval Augmented Generation

Chain of retrieval augmented generation (also called iterative or multi-step RAG) involves multiple retrieval and generation steps. The system:

  1. Retrieves initial context based on the query
  2. Generates an intermediate answer or refined query
  3. Uses that to retrieve additional, more specific context
  4. Generates the final answer with comprehensive context

This pattern is especially useful for complex questions that require information from multiple sources or need iterative refinement.

Active Retrieval Augmented Generation

Active retrieval augmented generation involves the system actively deciding when and what to retrieve. Instead of retrieving once at the beginning, the system:

  • Analyzes the query to determine what information is needed
  • Retrieves relevant documents
  • Evaluates if the retrieved context is sufficient
  • Performs additional retrievals if needed (active retrieval)
  • Generates the final answer

This pattern improves accuracy by ensuring the system has enough context before generating answers.

Knowledge Graph-Guided Retrieval Augmented Generation

Knowledge graph-guided retrieval augmented generation uses structured knowledge graphs to guide retrieval. The system:

  • Maintains a knowledge graph of entities and relationships
  • Uses the graph to identify relevant entities in queries
  • Retrieves documents related to those entities
  • Generates answers that respect the graph structure

This pattern is powerful for domains with rich entity relationships, like medical information, legal documents, or technical documentation.

RAG Use Cases with Pipeline Builder

ShinRAG's visual pipeline builder makes it easy to implement these advanced RAG patterns without writing complex orchestration code. Here are real-world use cases:

Use Case 1: Enterprise Search with Chain of RAG

Challenge: Building a search system that can answer complex questions across multiple enterprise knowledge bases.

Solution with Pipeline Builder:

  1. Input Node: Receives the user query
  2. Agent 1 (Broad Search): Performs initial retrieval across all knowledge bases
  3. Agent 2 (Refined Search): Uses Agent 1's results to perform more specific searches
  4. Synthesis Node: Combines results from both agents
  5. Output Node: Returns comprehensive answer with citations

This implements chain of retrieval augmented generation visually, without writing any orchestration code.

Use Case 2: Active RAG for Technical Support

Challenge: Building a support system that actively retrieves additional information when initial answers are insufficient.

Solution with Pipeline Builder:

  1. Input Node: Customer support question
  2. Agent 1 (FAQ Search): Searches FAQ dataset
  3. Conditional Node: Checks if confidence is high enough
  4. If low confidence → Agent 2 (Deep Documentation):Searches full documentation
  5. If still low → Agent 3 (Expert Knowledge): Searches internal expert knowledge base
  6. Synthesis Node: Combines all retrieved information
  7. Output Node: Returns best possible answer

This implements active retrieval augmented generation with conditional routing, ensuring the system gets enough context before answering.

Use Case 3: Multi-Source Research with Knowledge Graph RAG

Challenge: Synthesizing information from academic papers, industry reports, and news articles while respecting entity relationships.

Solution with Pipeline Builder:

  1. Input Node: Research question
  2. Parallel Agents:
    • Agent 1: Academic papers dataset
    • Agent 2: Industry reports dataset
    • Agent 3: News articles dataset
  3. Synthesis Node: Combines results, identifies entities and relationships
  4. Agent 4 (Entity Expansion): Retrieves additional documents related to identified entities
  5. Final Synthesis: Generates comprehensive answer respecting entity relationships
  6. Output Node: Research summary with citations

This pattern approximates knowledge graph-guided retrieval augmented generation by using entity-aware synthesis and expansion.

RAG Use Cases with Widgets

ShinRAG widgets enable local chatbot retrieval augmented generation that can be embedded anywhere. Here are powerful use cases:

Use Case 4: Local Chatbot RAG for Documentation Sites

Challenge: Adding an intelligent chatbot to documentation that answers questions using the docs themselves.

Solution with Widgets:

  • Upload documentation as a dataset in ShinRAG
  • Create an agent connected to the documentation dataset
  • Create a widget from the agent
  • Embed the widget on your documentation site with one line of code

Result: Users can ask questions in natural language and get answers grounded in your documentation, with source citations. This is local chatbot retrieval augmented generation—the chatbot runs locally in the user's browser but uses your RAG backend.

Use Case 5: Enterprise Search Widget

Challenge: Providing employees with a search interface that understands natural language queries across internal knowledge bases.

Solution with Widgets:

  • Organize internal documents into datasets (policies, procedures, guides, etc.)
  • Create an agent that searches across all datasets
  • Create a widget and embed it on your intranet

Result: Employees can search using natural language instead of keywords. The widget provides accurate answers with citations, making it easy to find information across multiple internal knowledge bases.

Use Case 6: Customer Support Chatbot

Challenge: Providing 24/7 customer support that answers questions accurately from support documentation.

Solution with Widgets:

  • Upload support articles, FAQs, and troubleshooting guides as datasets
  • Create a support agent with customer-friendly instructions
  • Create a widget and embed it on your website

Result: Customers get instant, accurate answers to support questions, reducing support ticket volume while improving response times. The chatbot uses retrieval augmented generation to provide answers grounded in your support documentation.

Best Retrieval-Augmented Generation Platforms for Enterprise Search

When evaluating RAG platforms for enterprise search, consider:

  • Scalability: Can it handle millions of documents?
  • Multi-source support: Can it search across multiple knowledge bases?
  • Advanced patterns: Does it support chain of RAG, active RAG, and other advanced patterns?
  • Integration: How easy is it to integrate into existing systems?
  • Widget support: Can you embed search capabilities easily?

ShinRAG excels in all these areas, making it one of the best retrieval-augmented generation platforms for enterprise search. The visual pipeline builder enables complex search patterns, while widgets make it easy to embed search capabilities anywhere.

RAG Diagram: Understanding the Flow

A typical retrieval augmented generation diagram shows:

  1. Query Input: User question or query
  2. Embedding Generation: Convert query to vector embedding
  3. Vector Search: Find similar documents in vector database
  4. Context Assembly: Combine retrieved documents into context
  5. LLM Generation: Generate answer using context and query
  6. Response with Citations: Return answer with source citations

With ShinRAG's pipeline builder, you can visualize and customize this flow. Add multiple retrieval steps for chain of RAG, add conditional logic for active RAG, or add parallel agents for multi-source search.

Implementing Chain-of-Retrieval Augmented Generation

Chain-of-retrieval augmented generation (also written as "chain-of-retrieval augmented generation") involves multiple retrieval and refinement steps. Here's how to implement it with ShinRAG:

  1. First Retrieval: Use an agent to perform initial broad search
  2. Query Refinement: Use the initial results to refine the query
  3. Second Retrieval: Use another agent to perform more specific search with refined query
  4. Synthesis: Combine results from both retrieval steps
  5. Generation: Generate final answer with comprehensive context

This pattern is especially powerful for complex queries that need iterative refinement. The pipeline builder makes it easy to implement without writing orchestration code.

Real-World Examples

Example 1: Legal Research Platform

A law firm uses ShinRAG to build a legal research platform:

  • Datasets: Case law, statutes, regulations, legal precedents
  • Pipeline: Chain of RAG with specialized agents for each document type
  • Widget: Embedded on internal portal for lawyers to search

Lawyers can ask complex legal questions and get answers with citations to relevant cases and statutes.

Example 2: Medical Information Assistant

A healthcare organization uses ShinRAG for medical information retrieval:

  • Datasets: Medical journals, treatment guidelines, drug information
  • Pipeline: Active RAG that retrieves additional information when confidence is low
  • Widget: Embedded in patient portal for answering medical questions

Patients and healthcare providers can get accurate medical information with proper citations.

Example 3: Technical Documentation Assistant

A software company uses ShinRAG for technical documentation:

  • Datasets: API documentation, code examples, guides
  • Pipeline: Multi-agent pipeline searching different documentation types
  • Widget: Embedded on documentation site

Developers can ask questions about APIs and get answers with code examples and documentation links.

Getting Started with Advanced RAG Patterns

To implement these advanced RAG use cases with ShinRAG:

  1. Upload your documents: Create datasets and upload your knowledge base
  2. Create agents: Set up agents for different document types or search strategies
  3. Build pipelines: Use the visual pipeline builder to implement chain of RAG, active RAG, or other patterns
  4. Create widgets: Turn your pipelines into embeddable widgets for local chatbot retrieval augmented generation
  5. Deploy: Embed widgets or use the API to integrate into your applications

Conclusion

Advanced RAG patterns like chain of retrieval augmented generation, active retrieval augmented generation, and knowledge graph-guided RAG enable sophisticated use cases. ShinRAG's visual pipeline builder and embeddable widgets make these patterns accessible without writing complex orchestration code.

Whether you're building enterprise search, local chatbot retrieval augmented generation, or complex multi-source research systems, ShinRAG provides the tools you need. The pipeline builder handles orchestration, while widgets make it easy to embed RAG capabilities anywhere.

Ready to Build Advanced RAG Use Cases?

Start building chain of retrieval augmented generation, active RAG, and enterprise search with ShinRAG's pipeline builder and widgets.

Get Started Free
RAG Use Cases: Chain of Retrieval Augmented Generation, Active RAG, and Enterprise Search with Pipeline Builder and Widgets