Complete API reference for the Kubiya Documentations service methods and exceptions
query(prompt: str, page_size: int = 10, search_type: str = "bm25", extend_results: bool = True, score_threshold: float = 1.0, render_markdown: bool = True) -> List[Dict[str, Any]]
prompt
(str
): The search query/prompt to look for in documentationpage_size
(int
, optional): Number of results to return (default: 10)search_type
(str
, optional): Type of search to perform (default: “bm25”)extend_results
(bool
, optional): Whether to extend results with additional context (default: True)score_threshold
(float
, optional): Minimum score threshold for results (default: 1.0)render_markdown
(bool
, optional): Whether to format output as markdown (default: True)List[Dict[str, Any]]
: List of search results with formatted contentDocumentationError
: If the query fails or configuration cannot be retrievedmessage
(str
): Error message describing what went wrongdetails
(Dict[str, Any]
): Additional error context and metadata