KnowledgeBase
TheKnowledgeBase class provides document ingestion, hybrid search, and lifecycle management.
Creating knowledge bases
From a URL
Shorthand
Retrieving knowledge bases
Searching
Thesearch method supports the full range of retrieval strategies:
SearchResult fields
| Field | Type | Description | |
|---|---|---|---|
id | str | Chunk ID | |
content | str | Chunk text content | |
score | float | Similarity score | |
source_file | `str | None` | Source file name |
chunk_index | int | Position of chunk in source document | |
metadata | dict | Additional chunk metadata |

