RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
sidebar_position: 3 title: Switch Document Engine sidebar_label: Switch Document Engine slug: /switch_doc_engine sidebar_custom_props: { categoryIcon: LucideShuffle }
Switch Document Engine
Switch your doc engine from Elasticsearch to Infinity.
RAGFlow uses Elasticsearch by default for storing full text and vectors. To switch to Infinity, follow these steps:
Back up the existing deployment before switching engines. Switching engines creates a new document-index store; reindex the documents after startup.
Stop the Go deployment:
docker compose --env-file docker/.env -f docker/docker-compose.yml down
:::caution WARNING
Do not add -v unless you intentionally want to delete the deployment's data volumes.
:::
Set
DOC_ENGINE=infinityin docker/.env.Start the Go deployment:
docker compose --env-file docker/.env -f docker/docker-compose.yml up -dReindex the documents and verify retrieval before retiring the previous document-engine data.