
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-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
The npm package @ragpipe/plugin-gemini receives a total of 16 weekly downloads. As such, @ragpipe/plugin-gemini popularity was classified as not popular.
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
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.