Search Knowledge Chunks
Changed onPerform semantic search across knowledge sources within a knowledge base to find the most relevant content chunks based on a natural language query. Returns ranked chunks with similarity scores, allowing you to retrieve contextually relevant information for AI applications, chatbots, or information retrieval systems. You can filter results by specific knowledge sources.
Request
- Base URLhttps://knowledge.twilio.com
- URLhttps://knowledge.twilio.com/v2/KnowledgeBases/{kbId}/Search
- AuthHTTP basic
Request body
Example request
{
"query": "How do I reset my password?",
"top": 5,
"knowledgeIds": [
"know_knowledge_00000000000000000000000000"
]
}Response
OK
Example response
{
"chunks": [
{
"chunkIndex": 2,
"documentTitle": "Authentication — Twilio Docs",
"documentUrl": "https://docs.twilio.com/en/api/authentication",
"documentNumber": 12,
"knowledgeId": "know_knowledge_00000000000000000000000000"
}
]
}Changes
- breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - breaking
the
response property's max was increased from99999.00to999999.00for the response status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- breaking