Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Anthropic’s Citation API #4497

Open
kdawgwilk opened this issue Jan 23, 2025 · 2 comments
Open

Support Anthropic’s Citation API #4497

kdawgwilk opened this issue Jan 23, 2025 · 2 comments
Labels
ai/provider enhancement New feature or request

Comments

@kdawgwilk
Copy link

Feature Description

Implement support for Anthropic’s Citation API within the Vercel AI SDK. This integration would enable developers to retrieve and display citations accompanying AI-generated content, enhancing transparency and credibility. The SDK should facilitate:

  • Citation Retrieval: Automatically extract citations from AI responses when provided by Anthropic’s models.
  • Metadata Access: Provide access to citation details such as URLs, publication dates, and titles.

Use Cases

  1. Improving Transparency in AI Responses: Developers can enhance user trust by displaying sources for factual statements or recommendations generated by the AI.
  2. Educational Applications: Apps providing learning content or fact-based answers can link directly to source material for further exploration.
  3. Compliance and Accuracy: Apps in regulated industries (e.g., healthcare, finance) can ensure users see where the AI’s information comes from, mitigating misinformation risks.
  4. Enhanced User Experience: By embedding citations, apps can offer richer interactions, encouraging user engagement with credible sources.

Additional context

Anthropic recently introduced the Citation API to improve the transparency and accountability of AI-generated responses. This aligns with growing demand for verifiable information in AI applications. By integrating support into the Vercel AI SDK, developers leveraging Anthropic models could seamlessly adopt this capability.

My use case involves building an AI coaching application where displaying relevant, verifiable sources is crucial for user trust and retention. Supporting citations would make it easier to surface trustworthy recommendations and insights directly to end-users.

Here’s the announcement for reference: Anthropic: Introducing the Citation API.

@kdawgwilk kdawgwilk added the enhancement New feature or request label Jan 23, 2025
@RobertHH-IS
Copy link

Second this - would really like to try this out - make sure to implement for both anthropic and google-vertec/anthropic!

@elie222
Copy link

elie222 commented Jan 24, 2025

+1. Would love to see this supported on Bedrock Anthropic too. Although not sure it's available there yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/provider enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants