Skip to main content
The context_search backend integrates with the managed Volcengine Context Search service. Files are uploaded to TOS (object storage) via pre-signed URLs, then registered into a Context Search RAG scene; splitting, embedding, and retrieval all run server-side, so no local embedding is required.

When to use

  • You need a managed semantic-search service without maintaining a vector store yourself;
  • You have created a RAG scene and a search engine in Volcengine Context Search.

Prerequisites

  • A Volcengine account with a Context Search RAG scene whose scene ID is a numeric string;
  • The search engine’s Endpoint and API Key (required for retrieval).

Usage

You can also pass credentials and engine info explicitly via backend_config:

Parameters

Constructor parameters

backend_config supports the following settings:

Environment variables

Embedding and retrieval both run server-side in Context Search, so this backend requires no embedding model configuration. Ingestion is asynchronous: after files are uploaded, wait for server-side indexing to complete before searching.
index (the scene ID) must be a numeric string, otherwise initialization fails; initialization also calls GetScene to verify the scene exists. Before retrieval, context_search_engine_endpoint and context_search_engine_apikey must be set, otherwise search fails.
Last modified on September 19, 2026