pydo.genai.update_knowledge_base()
Generated on 7 Jul 2026
from pydo version
v0.39.0
Usage
client.genai.update_knowledge_base(
uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
body={
"database_id": "\"12345678-1234-1234-1234-123456789012\"",
"name": "\"My Knowledge Base\"",
"project_id": "\"12345678-1234-1234-1234-123456789012\"",
...,
},
)Description
To update a knowledge base, send a PUT request to /v2/gen-ai/knowledge_bases/{uuid}.
Parameters
uuidstring requiredKnowledge base id
database_idstring optionalExample:
"12345678-1234-1234-1234-123456789012"The id of the DigitalOcean database this knowledge base will use, optional.
namestring optionalExample:
"My Knowledge Base"Knowledge base name
project_idstring optionalExample:
"12345678-1234-1234-1234-123456789012"The id of the DigitalOcean project this knowledge base will belong to
reranking_configobject optionalConfiguration for cross-encoder reranking during retrieval.
Show child properties
enabledboolean optionalExample:
TrueWhether reranking is enabled for retrieval
modelstring optionalExample:
"bge-reranker-v2-m3"Reranker model internal name
tagsarray of strings optionalExample:
['example string']Tags to organize your knowledge base.
uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Knowledge base id
Request Sample
Response Example
More Information
See /v2/gen-ai/knowledge_bases/{uuid} in the API reference for additional detail on responses, headers, parameters, and more.