Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv875925b9c797
diff --git a/v3/@claude-flow/embeddings/README.md b/v3/@claude-flow/embeddings/README.md
index f4dc2f0398..248bc362ec 100644
--- a/v3/@claude-flow/embeddings/README.md
+++ b/v3/@claude-flow/embeddings/README.md
@@ -90,14 +90,24 @@ console.log(`Provider: agentic-flow, Latency: ${result.latencyMs}ms`);
### Factory Functions
```typescript
-import { createEmbeddingService, getEmbedding } from '@claude-flow/embeddings';
+import {
+ createEmbeddingService,
+ createEmbeddingServiceAsync,
+ getEmbedding
+} from '@claude-flow/embeddings';
-// Create a service instance
+// Sync: Create with known provider
const service = createEmbeddingService({
provider: 'openai',
apiKey: 'your-api-key',
model: 'text-embedding-3-small',
- cacheSize: 1000,
+});
+
+// Async: Auto-select best provider with fallback
+const autoService = await createEmbeddingServiceAsync({
+ provider: 'auto', // agentic-flow → transformers → mock
+ autoInstall: true, // Install agentic-flow if missing
+ fallback: 'transformers', // Custom fallback
});
// Quick one-off embedding