---
title: "Reset Context Search Config"
method: POST
path: "/api/v1/contexts/{context_id}/search-config/reset"
tags: ["context-search-config"]
---

# Reset Context Search Config

`POST /api/v1/contexts/{context_id}/search-config/reset`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/contexts/{context_id}/search-config/reset`
- Auth: none declared

Reset context search configuration to defaults.

Resets all settings to default values:
- semantic_weight: 0.6
- bm25_weight: 0.4
- fetch_factor: 3
- use_rerank / reranker_provider / reranker_model: the deployment default
  (DEFAULT_USE_RERANK / DEFAULT_RERANKER_PROVIDER / DEFAULT_RERANKER_MODEL,
  #1572; unset: false / 'voyage' / 'rerank-2')
- content_chunks_enabled: false — while it is on, that is a change and takes
  the context owner or a workspace owner/admin (#2015)
- llm_selector_enabled: false — on the same rule (#2144)

Args:
    context_id: Context UUID
    current_user: Current authenticated user
    db: Database session

Returns:
    Reset ContextSearchConfigResponse

Raises:
    HTTPException: 403 if content_chunks_enabled or llm_selector_enabled
        is on and the caller is not the context owner, 404 if context not
        found, 500 on error

## Path parameters

- `context_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- ContextSearchConfigResponse: Response schema for context search configuration. Issue #130: Context-scoped Search & Reranker Settings Issue #146: Added immutable embedding configuration fields Issue #160: Renamed from Project to Context
  - `context_id` unknown, required
  - `semantic_weight` unknown, required
  - `bm25_weight` unknown, required
  - `fetch_factor` unknown, required
  - `use_rerank` unknown, required
  - `reranker_provider` unknown, required
  - `reranker_model` unknown, required
  - `embedding_model` unknown, required
  - `embedding_dimensions` unknown, required
  - `reinforce_enabled` unknown
  - `reinforce_max_boost` unknown
  - `reinforce_require_host_arbitration` unknown
  - `routing_mode` unknown
  - `content_chunks_enabled` unknown
  - `content_chunks_can_change` unknown
  - `content_chunks_supported` unknown
  - `embedding_provider` unknown
  - `content_chunks_backfill_pending` unknown
  - `content_chunks_effective` unknown
  - `content_chunks_limit` unknown
  - `content_chunks_in_use` unknown
  - `content_chunks_disabled_reason` unknown
  - `llm_selector_enabled` unknown
  - `llm_selector_effective` unknown
  - `llm_selector_limit` unknown
  - `llm_selector_in_use` unknown
  - `llm_selector_disabled_reason` unknown
  - `llm_selector_can_change` unknown
  - `created_at` unknown, required
  - `updated_at` unknown, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
