Skip to content

Modular RAG - Part 1 #1603

Closed
Closed
@ThomasVitale

Description

@ThomasVitale

This issue will track the first part of the adoption of the Modular RAG architecture in Spring AI.

Context

The work can be split into two categories.

  1. The design and implementation of the building blocks for RAG modules that will be done in the org.springframework.ai.rag package. Each component is well encapsulated and can be used by itself to compose any kind of RAG flow. For example, you can use such components to build your own RAG flows using Spring State Machine, Spring Cloud Function or Spring Cloud Data Flow.
  2. Using the Advisor API, a RetrievalAugmentationAdvisor will be implemented to provide some out-of-the-box RAG flows using the building blocks defined in the previous category.

For background information, please refer to the following sources:

Design

Modules

In this first part, the focus will be on establishing the following modules and submodules:

This issue will be updated as we progress with the design and implementation work.

Advisor

In this first part, the focus will be on:

  • Establishing a RetrievalAugmentationAdvisor.
  • Adopting the available sub-modules to support Naive and Advanced RAG flows.
  • Experimental branching and conditional components.

Untitled-2024-10-24-1557

Metadata

Metadata

Assignees

No one assigned

    Labels

    RAGIssues related to Retrieval Augmented GenerationenhancementNew feature or requestepic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions