Closed zwilch closed 6 months ago
youll have to change the .bin ending to .gguf but essentially it is the same
npm install gpt4all
import { loadModel, createEmbedding } from 'gpt4all'
const embedder = await loadModel("all-MiniLM-L6-v2-f16.gguf", { verbose: true, type: 'embedding'})
console.log(createEmbedding(embedder, "Hallo Welt!"))
it is working
any idea how to get it working with import {OpenAI} from "openai"
?
Openai and gpt4all are two different projects
Ja @jacoobes richtig erkannt, es ist wirklich schlecht, dass man von seiner NodeJS APP nicht durch Ändern der URL einfach mal auf das langsame lokal laufende GPT4ALL Modell wechseln kann.
Issue with current documentation:
I can not find a working nodejs API example for using Embedding. I have figured out, I should use "all-MiniLM-L6-v2-f16.gguf"
I stuck with that:
Idea or request for content:
Make a working example code for nodejs to use embedding API.