News for hackers. Stuff that matters.
Re:Citations on the Anthropic API by 4ad on Thursday January 23, 2025 @06:59PM (#42809288)
I use this:

> Be terse. Do not offer unprompted advice or clarifications.

> Avoid mentioning you are an AI language model.

> Avoid disclaimers about your knowledge cutoff.

> Avoid disclaimers about not being a professional or an expert.

> Do NOT hedge or qualify. Do not waffle.

> Do NOT repeat the user prompt while performing the task, just do the task as requested. NEVER contextualise the answer. This is very important.

> Avoid suggesting seeking professional help.

> Avoid mentioning safety unless it is not obvious and very important.

> Remain neutral on all topics. Avoid providing ethical or moral viewpoints in your answers, unless the question specifically mentions it.

> Never apologize.

> Act as an expert in the relevant fields.

> Speak in specific, topic relevant terminology.

> Explain your reasoning. If you don’t know, say you don’t know.

> Cite sources whenever possible, and include URLs if possible.

> List URLs at the end of your response, not inline.

> Speak directly and be willing to make creative guesses.

> Be willing to reference less reputable sources for ideas.

> Ask for more details before answering unclear or ambiguous questions.

Unfortunately most references it provides are bogus. It just makes up URLs and papers. Let's see if this new feature is any better.

Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @08:08PM (#42809614)
Love your pre-prompt. Better than mine.

The difference in FDRs is likely to be domain specific. I note that you are an expert in mathematical engineering and computing. In contrast my work area is neatly confined and defined by PubMed.

Re:Citations on the Anthropic API by 4ad on Thursday January 23, 2025 @08:25PM (#42809702)
I must say that it works reasonably well even with imagined references and URLs because it usually gets the author right, or there is a similar paper with a reasonably close title.

I'd say around 50% of the time I get a real reference, 30% of the time I get an imagined reference but from an author which studied the very problem under question, and 20% is completely halucinated.

Re:Citations on the Anthropic API by dragonwriter on Thursday January 23, 2025 @07:25PM (#42809406)
This new feature is restricted to sources you provide in the context window: “With Citations, users can now add source documents to the context window, and when querying the model, Claude automatically cites claims in its output that are inferred from those sources.”
Re:Citations on the Anthropic API by 4ad on Thursday January 23, 2025 @07:27PM (#42809418)
Yeah, I see that now. Completely useless.
Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @07:53PM (#42809548)
Why is that useless?

If you want reliable citations, this is an API that can help you implement reliable citations.

Asking a model to return useful citations from its model weights with no assistance from external systems isn't how this stuff works.

Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @08:10PM (#42809627)
Ditto: RAGs are currently way too limited. A RAG built using all of PubMed and updated weekly would be a very different story. I would pay good money for that.
Re:Citations on the Anthropic API by 4ad on Thursday January 23, 2025 @08:06PM (#42809605)
If I had the stuff to feed into the LLM context, I wouldn't need the LLM to find the stuff for me because I would already have it.
Re:Citations on the Anthropic API by dllthomas on Thursday January 23, 2025 @08:42PM (#42809794)
"Completely useless" might be too strong. In a context where you're already doing RAG it would help you verify what's produced.

Certainly it's radically less useful than if it could produce citations to the training set, though.

Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @09:29PM (#42809997)
Sounds to me like you want a search engine, not an LLM.
Re:Citations on the Anthropic API by dragonwriter on Thursday January 23, 2025 @10:51PM (#42810339)
Typically, you wouldn't manually select the documents in a query, you’d use this as part of a system wrapped around the LLM where a query (possibly itself from the model like other tool invocations) would be sent out to a web api, vectord DB, etc., return documents that would be fed back in to the model as part of a continuation query, and then the model would frame a response citing the relevant sources for elements of the response.
Re:Citations on the Anthropic API by vunderba on Friday January 24, 2025 @01:20PM (#42815760)
Patently untrue. If I have hundreds of PDF research papers totaling thousands of pages - just because I have them doesn't necessarily mean I know where to search. Having an LLM be able to find related pieces across all of these documents and extrapolate is tremendously useful.
Re:Citations on the Anthropic API by 4ad on Friday January 24, 2025 @02:15PM (#42816137)
A thousand pages is something reviewable by hand (albeit slowly) and easily amendable to grep. Anything that trivially fits in computer memory doesn't benefit from approximate search methods. I stand by what I said.
Re:Citations on the Anthropic API by saaaaaam on Friday January 24, 2025 @02:10AM (#42811150)
Not useless at all. This is exactly my primary use of the Anthropic api: feed in a source document and ask for specific outputs that include exact citations from the source I provide.