UNPKG

hnswsqlite

Version:

Vector search with HNSWlib and SQLite in TypeScript.

10 lines (8 loc) 355 B
import { EmbeddingPlugin } from './types'; export class TensorFlowPlugin implements EmbeddingPlugin { name = 'tensorflowjs'; async generateEmbedding(input: string | Buffer): Promise<number[]> { // TODO: Implement using TensorFlow.js (text/image/audio feature extraction) throw new Error('TensorFlow.js embedding not implemented yet.'); } }