Skip to content

Integrate web search for real-time / current event answers #10

@nandanadileep

Description

@nandanadileep

Problem

LLMs have a training cutoff and cannot answer questions about current events, live scores, today's weather, recent news, etc. This is a significant gap for a general-purpose voice assistant.

Proposed Solution

  • Integrate a free-tier search API (e.g., Brave Search API or SerpAPI)
  • Before calling the LLM, detect if the query likely needs real-time data (keywords: "today", "now", "latest", "current", "news", etc.)
  • Fetch top search results and inject them as context into the LLM prompt (basic RAG)

Acceptance Criteria

  • Queries about current events return up-to-date information
  • Search is only triggered when the query appears to require real-time data
  • Latency impact of the search step is measured and acceptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions