Skip to main content

Documentation Index

Fetch the complete documentation index at: https://llm-tools.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

EmbedJs supports local embeddings via Ollama. Read more here Ollama embeddings. To use this, you need to setup and have Ollama working locally. Refer to their Github here to understand how to do this. Once done, follow these steps -

Install Ollama addon

npm install @llm-tools/embedjs-ollama

Usage

import { RAGApplicationBuilder } from '@llm-tools/embedjs';
import { OllamaEmbeddings } from '@llm-tools/embedjs-ollama';

const app = await new RAGApplicationBuilder()
.setEmbeddingModel(new OllamaEmbeddings({
    modelName: "...",
    baseUrl: 'http://localhost:11434'
}))