vectra
vectra copied to clipboard
What's the reason for needing API key?
You may want to recommended something like Supabase/gte-small because it is open-source, performs better for this use case, and it can be run locally, e.g.
import { AutoTokenizer, pipeline } from '@xenova/transformers';
const generateEmbedding = await pipeline(
'feature-extraction',
'Supabase/gte-small',
);
const tokenizer = await AutoTokenizer.from_pretrained('Supabase/gte-small');
That’s a good suggestion. It’ll be a couple of weeks before I can look into this. I have like 6 coding projects im juggling right now