mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T03:55:39Z - 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:
1 parent
7526e59064
commit
1e85414fce
1 file changed
+29
-1
@@ -92,13 +92,41 @@ export interface MockEmbeddingConfig extends EmbeddingBaseConfig {
|
||||
simulatedLatency?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Agentic-flow provider configuration
|
||||
* Uses optimized ONNX embeddings with:
|
||||
* - Float32Array with flattened matrices
|
||||
* - 256-entry LRU cache with FNV-1a hash
|
||||
* - SIMD-friendly loop unrolling (4x)
|
||||
* - Pre-allocated buffers (no GC pressure)
|
||||
*/
|
||||
export interface AgenticFlowEmbeddingConfig extends EmbeddingBaseConfig {
|
||||
provider: 'agentic-flow';
|
||||
|
||||
/** Model ID (default: all-MiniLM-L6-v2) */
|
||||
modelId?: string;
|
||||
|
||||
/** Embedding dimensions (default: 384) */
|
||||
dimensions?: number;
|
||||
|
||||
/** Internal cache size for embedder (default: 256) */
|
||||
embedderCacheSize?: number;
|
||||
|
||||
/** Model directory path */
|
||||
modelDir?: string;
|
||||
|
||||
/** Auto-download model if not present */
|
||||
autoDownload?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Union of all provider configs
|
||||
*/
|
||||
export type EmbeddingConfig =
|
||||
| OpenAIEmbeddingConfig
|
||||
| TransformersEmbeddingConfig
|
||||
| MockEmbeddingConfig;
|
||||
| MockEmbeddingConfig
|
||||
| AgenticFlowEmbeddingConfig;
|
||||
|
||||
// ============================================================================
|
||||
// Result Types
|
||||
|
||||
Reference in new issue
Block a user