Update Context Search Config
Update context search configuration.
Updates hybrid search weights, fetch factor, and/or reranker settings. Validates that weights sum to 1.0 and model matches provider.
Context owners and editors may change every field except content_chunks_enabled and llm_selector_enabled: changing either (on or off) takes the context owner or a workspace owner/admin, since turning it on sends memory content to the embedding and rerank providers (#2015) or to the deployment's judge model at recall time (#2144). Sending the stored value is not a change and is allowed.
Args: context_id: Context UUID update_data: Configuration update request current_user: Current authenticated user db: Database session
Returns: Updated ContextSearchConfigResponse
Raises: HTTPException: 400 if validation fails, 403 if the caller may not change content_chunks_enabled, 404 if context not found, 500 on error ValidationError: 422 when turning content_chunks_enabled on with the LanceDB vector store, which has no content chunk vectors (#2072) FeatureNotAvailableError: 403 FEAT-001 when turning it on on a plan without content_chunks (only where CONTENT_CHUNKS_REQUIRE_PLAN is on, #2103) QuotaExceededError: 429 QUOTA-001 when turning it on with the workspace at the plan's max_content_chunk_contexts (likewise). The same 403 / 429 for llm_selector_enabled against llm_selector / max_llm_selector_contexts, only where LLM_SELECTOR_REQUIRE_PLAN is on (#2144)
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
- Auth: none declared
Path parameters
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.