supported_models.mdx

Overview

The supported_models.mdx file serves as a documentation page listing all models supported by RAGFlow, a framework that integrates various AI models for tasks such as chat, embedding, reranking, image-to-text, speech-to-text, and text-to-speech (TTS). This file is written in MDX format and is intended to be part of the documentation website, featuring a neatly formatted table of model providers alongside their supported capabilities.

The purpose of this file is to provide users and developers with an up-to-date, consolidated reference of which models are compatible with RAGFlow, helping them choose appropriate providers for their AI workflows. The file also includes important notes about model compatibility and pointers to the source code for the latest supported models.


Structure and Functionality

This file primarily contains a markdown table wrapped inside a React component <APITable>, which likely formats and styles the table for the documentation site.

Key Elements


Detailed Explanation of Components

Frontmatter

---
sidebar_position: 1
slug: /supported_models
---

Import Statement

import APITable from '@site/src/components/APITable';

Models Support Table

The table is enclosed within the <APITable> component via MDX code blocks:

<APITable>
| Provider              | Chat               | Embedding          | Rerank             | Img2txt            | Speech2txt         | TTS                |
| --------------------- | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| Anthropic             | :heavy_check_mark: |                    |                    |                    |                    |                    |
| Azure-OpenAI          | :heavy_check_mark: | :heavy_check_mark: |                    | :heavy_check_mark: | :heavy_check_mark: |                    |
| ...                   | ...                | ...                | ...                | ...                | ...                | ...                |
</APITable>

Alerts

Important Notice

:::danger IMPORTANT
If your model is not listed here but has APIs compatible with those of OpenAI, click **OpenAI-API-Compatible** on the **Model providers** page to configure your model.
:::

Additional Note

:::note
The list of supported models is extracted from [this source](https://github.com/infiniflow/ragflow/blob/main/rag/llm/__init__.py) and may not be the most current. For the latest supported model list, please refer to the Python file.
:::

Implementation Details and Algorithms


Interaction with Other Parts of the System


Usage Example

Since this is a documentation file, there is no direct code usage. However, for developers or users:


Visual Diagram

The following Mermaid flowchart illustrates the structure and data flow related to this file and its connection to the system:

flowchart TD
    A[rag/llm/__init__.py] -->|Defines supported models| B[Supported Models Data]
    B -->|Extracted to generate| C[supported_models.mdx]
    C -->|Rendered using| D[APITable React Component]
    D -->|Displayed on| E[Documentation Website]
    E -->|User views model support info| F[User/Developer]

    subgraph Documentation Site
        C
        D
        E
    end

Summary


If you need further details about the backend implementation or APITable component, please refer to the respective source files in the RAGFlow repository.