MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
citations
Search

Anthropic Builds RAG Directly Into Claude Models With New Citations API

Tuesday January 28, 2025. 12:40 AM , from Slashdot
Anthropic Builds RAG Directly Into Claude Models With New Citations API
An anonymous reader quotes a report from Ars Technica: On Thursday, Anthropic announced Citations, a new API feature that helps Claude models avoid confabulations (also called hallucinations) by linking their responses directly to source documents. The feature lets developers add documents to Claude's context window, enabling the model to automatically cite specific passages it uses to generate answers. 'When Citations is enabled, the API processes user-provided source documents (PDF documents and plaintext files) by chunking them into sentences,' Anthropic says. 'These chunked sentences, along with user-provided context, are then passed to the model with the user's query.'

The company describes several potential uses for Citations, including summarizing case files with source-linked key points, answering questions across financial documents with traced references, and powering support systems that cite specific product documentation. In its own internal testing, the company says that the feature improved recall accuracy by up to 15 percent compared to custom citation implementations created by users within prompts. While a 15 percent improvement in accurate recall doesn't sound like much, the new feature still attracted interest from AI researchers like Simon Willison because of its fundamental integration of Retrieval Augmented Generation (RAG) techniques. In a detailed post on his blog, Willison explained why citation features are important.

'The core of the Retrieval Augmented Generation (RAG) pattern is to take a user's question, retrieve portions of documents that might be relevant to that question and then answer the question by including those text fragments in the context provided to the LLM,' he writes. 'This usually works well, but there is still a risk that the model may answer based on other information from its training data (sometimes OK) or hallucinate entirely incorrect details (definitely bad).' Willison notes that while citing sources helps verify accuracy, building a system that does it well 'can be quite tricky,' but Citations appears to be a step in the right direction by building RAG capability directly into the model. Anthropic's Alex Albert clarifies that Claude has been trained to cite sources for a while now. What's new with Citations is that 'we are exposing this ability to devs.' He continued: 'To use Citations, users can pass a new 'citations ' parameter on any document type they send through the API.'

Read more of this story at Slashdot.
https://slashdot.org/story/25/01/27/2129250/anthropic-builds-rag-directly-into-claude-models-with-ne...

Related News

News copyright owned by their original publishers | Copyright © 2004 - 2025 Zicos / 440Network
Current Date
Jan, Thu 30 - 09:41 CET