Update knowledge base entry
Updates a knowledge base entry with training content. This is the second step in the training process after creating an entry. You can provide "rawText" which is the content you want your replica to learn from (such as product information, company policies, or specialized knowledge). The system will automatically process this text and make it available for your replica to use when answering questions. The entry status will change to PROCESSING and then to READY once fully processed.
Request
- Base URL: https://api.sensay.io
- URL: https://api.sensay.io/v1/replicas/{replicaUUID}/knowledge-base/{knowledgeBaseID}
- Auth: one of:
- API key in header X-ORGANIZATION-SECRET
- API key in header X-ORGANIZATION-SECRET and API key in header X-USER-ID and API key in header X-USER-ID-TYPE
Path parameters
The unique identifier of the knowledge base entry
The replica unique identifier (UUID)
Headers
Content encoding for request body compression. Optional - when used, client is responsible for gzipping and sending binary data.
Request body
Example request
{
"rawText": "Our company was founded in 2020. We specialize in AI-powered customer service solutions.",
"generatedFacts": [
"The company was founded in 2020.",
"We specialize in AI-powered customer service solutions."
],
"rawTextChunks": [
{
"content": "First part of the document content.",
"chunkIndex": 0,
"chunkTokens": 7,
"chunkChars": 35
},
{
"content": "Second part of the document content.",
"chunkIndex": 1,
"chunkTokens": 7,
"chunkChars": 36
}
],
"title": "Company information",
"generatedTitle": "Company information and Business Hours",
"summary": "Basic company details including founding date, business focus, and operating hours.",
"language": "en",
"website": {
"url": "https://example.com",
"title": "Example Website Title",
"text": "This is the main text content extracted from the website.",
"description": "This website provides information about our company and services."
},
"youtube": {
"url": "https://www.youtube.com/watch?v=VIDEO_ID",
"thumbnailURL": "https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg",
"summary": "Basic company details including founding date, business focus, and operating hours.",
"transcription": "This is the complete transcript of the video content...",
"visualTranscription": "Visual elements and scenes described in text format"
},
"file": {
"name": "company_handbook.pdf",
"size": 204800,
"mimeType": "application/epub+zip"
},
"error": {
"fingerprint": "12345",
"message": "Failed to process the entry due to invalid format."
}
}Response
Knowledge base entry updated successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.