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.
Overview
JSONStorage provides a file-based JSON storage backend. Ideal for simple applications, prototyping, and scenarios where human-readable data files are preferred.
Basic Usage
File Structure
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
db_path | str | None | "./upsonic_json_db" | Directory for JSON files |
session_table | str | None | "upsonic_sessions" | Session JSON file name (without .json) |
user_memory_table | str | None | "upsonic_user_memories" | User memory JSON file name (without .json) |
knowledge_table | str | None | "upsonic_knowledge" | Knowledge registry JSON file name (without .json, used by KnowledgeBase) |
id | str | None | auto-generated | Storage instance ID |
Storage Type
JSONStorage is a synchronous storage implementation using file-based JSON serialization.
