Documentation Index
Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
Use this file to discover all available pages before exploring further.
Attributes
The KnowledgeBase system is configured through theKnowledgeBase class, which provides the following attributes:
| Attribute | Type | Default | Description |
|---|---|---|---|
sources | Union[str, Path, List[Union[str, Path]]] | (required) | File paths, directory paths, or string content to process |
vectordb | BaseVectorDBProvider | (required) | Vector database provider instance for storage |
embedding_provider | EmbeddingProvider | None | None | Provider for creating vector embeddings. Optional for providers that handle their own embeddings (e.g., SuperMemory) |
splitters | Union[BaseChunker, List[BaseChunker]] | None | None | Text chunking strategies (auto-detected if None) |
loaders | Union[BaseLoader, List[BaseLoader]] | None | None | Document loaders for different file types (auto-detected if None) |
name | str | None | None | Human-readable name for the knowledge base (auto-generated if None). Used to derive tool names when registered as a tool |
description | str | None | None | Description of the knowledge base content. Shown to agents when the KB is used as a tool, helping them decide when to search it |
topics | List[str] | None | None | List of topics covered by the knowledge base. Included in tool descriptions for better agent routing |
use_case | str | "rag_retrieval" | Use case for chunking optimization |
quality_preference | str | "balanced" | Speed vs quality preference: "fast", "balanced", or "quality" |
loader_config | Dict[str, Any] | None | None | Configuration options specifically for loaders |
splitter_config | Dict[str, Any] | None | None | Configuration options specifically for splitters |
isolate_search | bool | True | When True, search queries are scoped to only documents in this knowledge base. When False, searches across all documents in the vector database collection |
storage | Storage | None | None | Optional storage backend for persisting knowledge base state and metadata |

