Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Infiniflow Ragflow Versions

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Deployment
Last Updated 2026-02-12 06:00 GMT

Overview

Concrete tool for retrieving the RAGFlow application version from VERSION file or git tags provided by the RAGFlow common library.

Description

The versions module provides get_ragflow_version which reads version information from a VERSION file at the project root, falling back to git tag information via get_closest_tag_and_count. The result is cached globally in RAGFLOW_VERSION_INFO.

Usage

Import get_ragflow_version when displaying version information in API responses, health check endpoints, or admin panels.

Code Reference

Source Location

Signature

def get_ragflow_version() -> str:
    """Get RAGFlow version from VERSION file or git tags."""

def get_closest_tag_and_count() -> str:
    """Get git tag version info using git describe."""

Import

from common.versions import get_ragflow_version

I/O Contract

Inputs

Name Type Required Description
No inputs required

Outputs

Name Type Description
get_ragflow_version() returns str Version string (e.g., "0.15.1")

Usage Examples

from common.versions import get_ragflow_version

version = get_ragflow_version()
print(f"RAGFlow v{version}")  # "RAGFlow v0.15.1"

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment