
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@ragpipe/plugin-gemini
Advanced tools
Google Gemini embedding and generation plugin for ragpipe.
pnpm add ragpipe @ragpipe/plugin-gemini
import { defineConfig } from "ragpipe";
import { geminiEmbedding, geminiGeneration } from "@ragpipe/plugin-gemini";
export default defineConfig({
embedding: geminiEmbedding({
apiKey: process.env.GEMINI_API_KEY ?? "",
model: "gemini-embedding-001", // default
}),
generation: geminiGeneration({
apiKey: process.env.GEMINI_API_KEY ?? "",
model: "gemini-2.5-flash", // default
systemPrompt: "Answer based on the provided context.",
}),
// ... vectorStore
});
geminiEmbedding(options)Returns an EmbeddingPlugin that calls the Gemini Embedding API.
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | Google AI API key (required) |
model | string | "gemini-embedding-001" | Embedding model name |
embedMany() uses batchEmbedContents for efficient bulk embeddinggeminiGeneration(options)Returns a GenerationPlugin that calls the Gemini Content Generation API.
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | Google AI API key (required) |
model | string | "gemini-2.5-flash" | Generation model name |
systemPrompt | string | "Answer based on the provided context." | Default system instruction |
generateStream() returns an AsyncIterable<string> via SSE{ history } to include conversation context{ systemPrompt } at call time to override the defaultGEMINI_API_KEY in your environmentMIT
FAQs
Gemini embedding and generation plugin for ragpipe
We found that @ragpipe/plugin-gemini 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.