Web search: Add citations
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 5
- Forks
- 10
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 17
Description
If we add web search and url fetch capabilities to the assistant (see: #664 ), the assistant will be able to quote from external sources. However, the user will have no way of knowing when web search/url fetch actually succeeded, and where the assistant is accurately quoting from a source or writing an answer from memory.
To fix this, we can use the citations feature from the Anthropic API, and pass citations on to the front-end. They need to be wired properly through sub-agents so we don't lose the citation along the way, and design a way to display them within the assistant's conversation turn (perhaps with a collapsible sources section). The statuses sent to the front-end should reflect whether the assistant actually successfully read the pages or not.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review #664 first, then trace how web-search and URL-fetch results and Anthropic citations move through sub-agents to the front end. Locate the existing status events and conversation-turn rendering path. Done means citations survive sub-agents, sources are displayed in the conversation, and statuses distinguish successful page reads.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai, api, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100