Ragfish Logo
Get In Touch
Ragfish Logo

Book a Demo

Core Framework Overview

The Ragfish Core Framework provides the foundation for building AI-powered applications using Retrieval-Augmented Generation (RAG).

It defines the core architecture, APIs, and execution pipeline used by every Ragfish application. Whether you're building a document chatbot, an enterprise knowledge assistant, or a multi-source AI platform, every application is built on the same core framework.

The framework is designed to be modular, extensible, and TypeScript-first, allowing developers to build production-ready AI applications with a consistent programming model.

What is the Core Framework?

The Core Framework is the heart of Ragfish.

It provides the essential components responsible for:

  1. Managing AI assistants

  2. Handling conversations

  3. Ingesting knowledge

  4. Processing documents

  5. Retrieving relevant information

  6. Coordinating AI providers

  7. Managing framework configuration

  8. Defining common interfaces and types

These components work together to transform raw knowledge into intelligent, context-aware responses.

Core Framework Architecture

Every Ragfish application follows the same high-level architecture.

Knowledge Sources
        │
        ▼
   Ingestion
        │
        ▼
    Chunking
        │
        ▼
   Embeddings
        │
        ▼
 Vector Store
        │
        ▼
   Retrieval
        │
        ▼
      Chat
        │
        ▼
   AI Assistant

Each stage performs a specific responsibility and can be configured or extended independently.

Each component is covered in detail throughout this section.

Framework Design Principles

Ragfish is built around several core principles.

Modular

Each framework component has a single responsibility.

For example, switching from one vector database to another does not require changes to your chat logic or assistant implementation.

Extensible

Every major component can be extended or replaced.

Developers can create custom:

    1. Connectors

    2. AI providers

    3. Vector stores

    4. Retrievers

    5. Chunking strategies

without modifying the framework itself.

TypeScript First

Ragfish is designed specifically for TypeScript developers.

Benefits include:

    1. Strong typing

    2. IntelliSense support

    3. Compile-time validation

    4. Consistent APIs

    5. Improved maintainability

Enterprise Ready

The framework is designed for production workloads.

It supports:

    1. Multiple AI providers

    2. Multiple vector databases

    3. Modular connectors

    4. Streaming responses

    5. Scalable deployments

    6. Enterprise integrations

Request Lifecycle

Every question submitted to a Ragfish application follows the same execution pipeline.

User Question
      │
      ▼
Generate Embedding
      │
      ▼
Retrieve Relevant Knowledge
      │
      ▼
Build Prompt
      │
      ▼
Large Language Model
      │
      ▼
Generate Response

This entire process is orchestrated by the framework, allowing developers to focus on building applications rather than managing the underlying workflow.

Package Structure

The Ragfish ecosystem is organized into modular packages.

@ragfish/core
@ragfish/openai
@ragfish/qdrant
@ragfish/spreadsheet

The @ragfish/core package provides the framework APIs, while additional packages extend the framework with AI providers, vector stores, and connectors.

This modular architecture keeps applications lightweight and allows developers to install only the packages they need.

What You'll Learn

In the following pages, you'll explore each core component in detail.

  1. Architecture – Understand how Ragfish works internally.

  2. Settings – Configure the framework.

  3. Assistant – Create and manage AI assistants.

  4. Chat – Build conversational experiences.

  5. Ingestion – Import knowledge into Ragfish.

  6. Chunking – Prepare documents for semantic search.

  7. Retrieval – Retrieve relevant information efficiently.

  8. Interfaces – Learn the shared framework contracts.

  9. Types – Explore the TypeScript models.

  10. Error Handling – Handle framework and runtime errors.


Each topic builds on the previous one, giving you a complete understanding of how the Ragfish Framework operates.

Next Steps

Now that you understand the purpose and structure of the Ragfish Core Framework, continue to Architecture to explore how the framework components interact, how data flows through the system, and how a user request is processed from start to finis