
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@ragpipe/plugin-ollama
Advanced tools
Ollama local embedding and generation plugin for ragpipe.
No API key required. Pair with @ragpipe/plugin-sqlite-vec for a fully local RAG setup.
# Install and start Ollama
ollama serve
# Pull models
ollama pull bge-m3
ollama pull llama3
pnpm add ragpipe @ragpipe/plugin-ollama
import { defineConfig } from "ragpipe";
import { ollamaEmbedding, ollamaGeneration } from "@ragpipe/plugin-ollama";
export default defineConfig({
embedding: ollamaEmbedding({
model: "bge-m3",
dimensions: 1024,
}),
generation: ollamaGeneration({
model: "llama3",
}),
// ... vectorStore
});
ollamaEmbedding({
model: "bge-m3",
dimensions: 1024,
baseUrl: "http://gpu-server.local:11434",
});
ollamaEmbedding(options)Returns an EmbeddingPlugin that calls Ollama's /api/embed endpoint.
| Option | Type | Default | Description |
|---|---|---|---|
model | string | — | Embedding model name (required) |
dimensions | number | — | Vector dimensions (required) |
baseUrl | string | "http://localhost:11434" | Ollama server URL |
embedMany() sends an array of texts in a single API callollamaGeneration(options)Returns a GenerationPlugin that calls Ollama's /api/chat endpoint.
| Option | Type | Default | Description |
|---|---|---|---|
model | string | — | Generation model name (required) |
baseUrl | string | "http://localhost:11434" | Ollama server URL |
systemPrompt | string | "Answer based on the provided context." | Default system instruction |
generateStream() returns an AsyncIterable<string> via NDJSON{ history } to include conversation context{ systemPrompt } at call time to override the default| Model | Dimensions |
|---|---|
bge-m3 | 1024 |
nomic-embed-text | 768 |
mxbai-embed-large | 1024 |
all-minilm | 384 |
llama3, llama3.1, mistral, gemma2, phi3, qwen2, and any model available via ollama pull.
MIT
FAQs
Ollama local embedding and generation plugin for ragpipe
The npm package @ragpipe/plugin-ollama receives a total of 9 weekly downloads. As such, @ragpipe/plugin-ollama popularity was classified as not popular.
We found that @ragpipe/plugin-ollama demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.