
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@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",
}),
generation: geminiGeneration({
apiKey: process.env.GEMINI_API_KEY ?? "",
model: "gemini-3.1-flash-lite-preview",
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 | - | Embedding model name (required) |
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 | - | Generation model name (required) |
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.

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

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.