Update Retriever
Retriever Retrievers.Update(RetrieverUpdateParamsparameters, CancellationTokencancellationToken = default)
PUT/api/v1/retrievers/{retriever_id}
Update Retriever
RetrieverUpdateParams parameters = new()
{
RetrieverID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
Pipelines =
[
new()
{
Description = "description",
Name = "x",
PipelineID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
PresetRetrievalParameters = new()
{
Alpha = 0,
ClassName = "class_name",
DenseSimilarityCutoff = 0,
DenseSimilarityTopK = 1,
EnableReranking = true,
FilesTopK = 1,
RerankTopN = 1,
RetrievalMode = RetrievalMode.AutoRouted,
RetrieveImageNodes = true,
RetrievePageFigureNodes = true,
RetrievePageScreenshotNodes = true,
SearchFilters = new()
{
Filters =
[
new MetadataFilter()
{
Key = "key",
Value = 0,
Operator = Operator.,
},
],
Condition = Condition.And,
},
SearchFiltersInferenceSchema = new Dictionary<string, SearchFiltersInferenceSchema?>(
)
{
{ "foo", new(
new Dictionary<string, JsonElement>()
{
{ "foo", JsonSerializer.SerializeToElement("bar") }
}
) },
},
SparseSimilarityTopK = 1,
},
},
],
};
var retriever = await client.Retrievers.Update(parameters);
Console.WriteLine(retriever);{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"pipelines": [
{
"description": "description",
"name": "x",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"preset_retrieval_parameters": {
"alpha": 0,
"class_name": "class_name",
"dense_similarity_cutoff": 0,
"dense_similarity_top_k": 1,
"enable_reranking": true,
"files_top_k": 1,
"rerank_top_n": 1,
"retrieval_mode": "auto_routed",
"retrieve_image_nodes": true,
"retrieve_page_figure_nodes": true,
"retrieve_page_screenshot_nodes": true,
"search_filters": {
"filters": [
{
"key": "key",
"value": 0,
"operator": "!="
}
],
"condition": "and"
},
"search_filters_inference_schema": {
"foo": {
"foo": "bar"
}
},
"sparse_similarity_top_k": 1
}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"pipelines": [
{
"description": "description",
"name": "x",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"preset_retrieval_parameters": {
"alpha": 0,
"class_name": "class_name",
"dense_similarity_cutoff": 0,
"dense_similarity_top_k": 1,
"enable_reranking": true,
"files_top_k": 1,
"rerank_top_n": 1,
"retrieval_mode": "auto_routed",
"retrieve_image_nodes": true,
"retrieve_page_figure_nodes": true,
"retrieve_page_screenshot_nodes": true,
"search_filters": {
"filters": [
{
"key": "key",
"value": 0,
"operator": "!="
}
],
"condition": "and"
},
"search_filters_inference_schema": {
"foo": {
"foo": "bar"
}
},
"sparse_similarity_top_k": 1
}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/
- Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/