Skip to main content
Create or connect a knowledge base and ingest your documents in the Timbal Platform first. Inspect its schema to find the table and columns to search. This example assumes an indexed articles table; replace that fixed table name with your own. Configure platform access before the first call:
.env
The Python helper is timbal.platform.knowledge_bases.query. It accepts SQL and positional parameters and resolves organization/knowledge-base IDs from explicit keywords or the environment. Platform authentication also needs the API host and token, or existing Timbal credentials.
Search-position string parameters are embedded by the platform for vector retrieval. Hybrid search takes a vector query and a full-text query, so pass the same question twice to combine semantic and keyword matching. Use vector_search('articles', $1, 8) for semantic-only retrieval or fts_search('articles', $1, 8) for keyword-only retrieval. Keep table identifiers fixed in application code and pass user text through $1, $2, and params. An unindexed or nonexistent table needs ingestion/index setup; the tool does not create it. See the Knowledge base query API for the request contract.