The R2R Search Endpoint provides semantic, hybrid, and graph-enhanced retrieval across documents and chunks. It supports advanced filters, hybrid ranking, and knowledge graph traversal to deliver contextually relevant and explainable results.
search_mode field determines the level of control and type of retrieval performed.
| Mode | Description |
|---|---|
basic | Performs a standard semantic search using vector embeddings. Ideal for quick and simple retrievals. |
advanced | Combines semantic search with full-text search for broader and more comprehensive results. |
custom | Grants full control via a SearchSettings object, allowing fine-tuned configurations for specialized applications. |
search_settings.filters.
Supported operators:
$eq, $neq, $gt, $gte, $lt, $lte, $like, $ilike, $in, $nin.
Example:
use_hybrid_search: true in search_settings and configure with hybrid_settings .
Configuration Example:
full_text_weight: Adjusts the influence of keyword search.semantic_weight: Adjusts the influence of semantic similarity.full_text_limit: Limits keyword results before fusion.rrf_k: Rank fusion parameter controlling hybrid blending strength.graph_search_settings .
Configuration Example:
use_graph_search: Enables or disables graph integration.kg_search_type: Defines scope — "local" (collection-level) or "global" (across all graphs).The access token received from the authorization server in the OAuth 2.0 flow.
The search query text
Default value of custom allows full control over search settings. Pre-configured search modes: basic: A simple semantic-based search. advanced: A more powerful hybrid search combining semantic and full-text. custom: Full control via search_settings. If filters or limit are provided alongside basic or advanced, they will override the default settings for that mode.ID of the collection to search in
basic, advanced, custom The search configuration object. If search_mode is custom, these settings are used as-is. For basic or advanced, these settings will override the default mode configuration. Common overrides include filters to narrow results and limit to control how many results are returned.
200