githubEdit

puzzle-piece-simplePlugins

Plugins extend language model capabilities by integrating external data sources and processing tools. Models can access real-time information and process files beyond their training data.

Available Plugins

Web Search Plugin

Enables models to search the internet for current information.

use_web_plugin.rs
use orpheus::prelude::*;

fn main() -> anyhow::Result<()> {
    let client = Orpheus::from_env()?;

    let response = client
        .chat("What are the latest developments in renewable energy?")
        .model("google/gemini-2.0-flash-001")
        .plugins(Plugin::web())
        .send()?;

    println!("{}", response.content()?);
    Ok(())
}

Configuration Options

Parameter
Type
Description
Default

max_results

Option<i32>

Maximum number of search results

Provider default

search_prompt

Option<String>

Custom search query

Auto-generated from message

File Parser Plugin

Processes PDF documents using different parsing engines.

Parsing Engines

Engine
String Value
Description

PdfText

"pdf-text"

Extract text directly from PDF

MistralOcr

"mistral-ocr"

OCR processing for scanned documents (default)

Native

"native"

Provider-specific parsing

Multiple Plugins

Use multiple plugins together:

Last updated

Was this helpful?