SearXNG Gemini Stream

A SearXNG plugin that streams an AI response using results as grounding context to an Answer box at the top of results.

Configuration

Set the following environment variables:

  • GEMINI_API_KEY: Your Google Gemini API key.
  • GEMINI_MODEL: (Optional) Defaults to gemini-3-flash-preview.
  • GEMINI_MAX_TOKENS: (Optional) Defaults to 500.
  • GEMINI_TEMPERATURE: (Optional) Defaults to 0.2.

settings.yml

Add this to your SearXNG configuration file to enable the plugin:

plugins:
  - name: gemini_flash
    active: true

Installation

Place gemini_flash.py into the searx/plugins directory of your instance.

S
Description
A SearXNG plugin that generates local AI overviews powered by Ollama, using search results as RAG context.
Readme 785 KiB
Languages
Python 100%