← All questions
RAGMedium· Agent Protocols & Tools· RAG Contract· Tool Use

Our agent can already call a web search API. Is that RAG?

A strong definition of RAG focuses on the information-flow contract rather than specific plumbing like vector databases or embeddings. Calling a web search API meets the complete RAG contract: the call is read-only, retrieves passages carrying source identifiers, and inserts those passages into the model’s context window for grounded generation.

Rejecting web search tool calls as RAG based on the lack of a vector index or embeddings fails to hold up when alternative retrieval mechanisms (like BM25 keyword search) are used. What matters is the functional role of the external information loop in constraining and grounding the LLM’s output.

Code playground (Python)