Skip to main content
File-based storage adapter for persisting embeddings to local disk.

Constructor

FileStorageConfig

Example

File Structure

Methods

All storage adapters implement the BaseStorageAdapter interface:

Security

The adapter includes path traversal protection:
  • Namespace is sanitized to prevent directory escape
  • Resolved path is validated to stay within cacheDir

RedisStorageAdapter

Redis storage

MemoryStorageAdapter

Memory storage

Storage Guide

File adapter guide