hnswsqlite
Version:
Vector search with HNSWlib and SQLite in TypeScript.
15 lines (14 loc) • 547 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HuggingFaceEmbeddingGenerator = void 0;
class HuggingFaceEmbeddingGenerator {
constructor(token, model = 'sentence-transformers/all-MiniLM-L6-v2') {
this.token = token;
this.model = model;
}
async embed(text) {
// Replace with real HuggingFace API call
throw new Error('Not implemented: Use HuggingFace Inference API to get embeddings.');
}
}
exports.HuggingFaceEmbeddingGenerator = HuggingFaceEmbeddingGenerator;