UNPKG

hnswsqlite

Version:

Vector search with HNSWlib and SQLite in TypeScript.

15 lines (14 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenAIEmbeddingGenerator = void 0; class OpenAIEmbeddingGenerator { constructor(apiKey, model = 'text-embedding-ada-002') { this.apiKey = apiKey; this.model = model; } async embed(text) { // Replace with real OpenAI API call throw new Error('Not implemented: Use OpenAI API to get embeddings.'); } } exports.OpenAIEmbeddingGenerator = OpenAIEmbeddingGenerator;