Checkpoint: File edits

Automatic checkpoint created by Claude Code
- Branch: v3
- Timestamp: 2026-01-07T04:36:40Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rUvandClaude Opus 4.5 committed 2026-01-07 04:36:40 +00:00
1 parent 7b79eac9ff
commit 77e9384911
1 file changed
+25
+25
View File
@@ -21,6 +21,25 @@
*/
export type EmbeddingProvider = 'openai' | 'transformers' | 'mock' | 'agentic-flow';
/**
* Normalization type for embeddings
*/
export type NormalizationType = 'l2' | 'l1' | 'minmax' | 'zscore' | 'none';
/**
* Persistent cache configuration
*/
export interface PersistentCacheConfig {
/** Enable persistent disk cache (requires better-sqlite3) */
enabled: boolean;
/** Path to SQLite database file (default: .cache/embeddings.db) */
dbPath?: string;
/** Maximum entries in persistent cache (default: 10000) */
maxSize?: number;
/** TTL in milliseconds (default: 7 days) */
ttlMs?: number;
}
/**
* Base configuration for all providers
*/
@@ -36,6 +55,12 @@ export interface EmbeddingBaseConfig {
/** Enable caching */
enableCache?: boolean;
/** Normalization type (default: 'none' - most providers pre-normalize) */
normalization?: NormalizationType;
/** Persistent disk cache configuration */
persistentCache?: PersistentCacheConfig;
}
/**