Deletes the AI knowledge base.
A promise that resolves when the deletion is complete.
Deletes a specific context by its ID.
Deletes multiple contexts.
Gets the download URL for the requested context.
Object with temporary URL to download the requested context. Will be undefined if file is unavailable.
AI-generates descriptions for this knowledge base's metadata fields and returns them WITHOUT
persisting — the caller saves them onto the KB (e.g. via upsertKnowledgeBase). By default only
fields with an empty description are generated; pass overwriteExisting to regenerate all.
Optionaloptions: Omit<GenerateMetadataFieldDescriptionsRequest, "knowledgeBaseId">Optional fieldNames to limit generation to specific fields, and overwriteExisting.
The (re)generated fields with their new descriptions (not yet persisted).
Retrieves a specific context by its ID.
Returns the AI knowledge base.
A promise that resolves to the AI knowledge base or undefined if not found.
Lists the ids for all contexts associated with the knowledge base.
Lists all contexts associated with the knowledge base.
OptionaltruncateTextAfter: numberReturns all AI knowledge bases.
A promise that resolves to an array of AI Knowledge Bases
Performs a semantic search in the knowledge base and returns chunks from the different contexts.
Performs a semantic search in the knowledge base and returns contexts with reasoning. Can be used for matchmaking or similarity search.
Performs a semantic search in the knowledge base and returns contexts with reasoning. Can be used for matchmaking or similarity search.
Adds or updates a single context.
Optionalfile: FileAdds or updates multiple contexts.
Optionalfiles: File[]Upserts the AI knowledge base.
A reference to an AI knowledge base.