ask_mistral: Search with Mistral AI

ask_mistralR Documentation

Search with Mistral AI

Description

Launches Mistral AI with your query. Mistral is known for its strong reasoning capabilities and efficiency.

Usage

ask_mistral(query = geterrmessage(), prompt = NULL)

ask_le_chat(query = geterrmessage(), prompt = NULL)

Arguments

query

Contents of string to send to AI Service. Default is the last error message.

prompt

Optional prompt prefix to add before your query to guide how the AI Service responds. If NULL, uses the service-specific default prompt option.

Value

The generated search URL or an empty string.

See Also

Other AI assistants: ask_bing_copilot(), ask_chatgpt(), ask_claude(), ask_grok(), ask_meta_ai(), ask_perplexity()

Examples

# Basic query
ask_mistral("How to handle missing data in R?")

# Using a custom prompt
ask_mistral("Fix this code: ggplot(mtcars, aes(x=mpg, y=hp) + geom_point()",
            prompt = "Explain the error and fix it:")

coatless/searcher documentation built on June 2, 2025, 10:37 a.m.