logoalt Hacker News

inigyouyesterday at 1:02 PM1 replyview on HN

How would you use a big LLM for retrieval?


Replies

respectattentioyesterday at 4:20 PM

As simple as a prompting it with structural output or restrictions for your criteria.

With agents, the prompting could be dynamic for maximum accuracy for every retrieval.

This absolutely would beat the best of the best embedding-based RAG models.

Nobody uses this now mainly due to speed. An llm retrieval would be 10x or more slower than embedding.

You can try that now

Take some failing cases or bad retrieval from your current system Prompt an llm wisely like a perfect prompt to get what you want and provide it the context to it. And see the results.

For context, you are limited now by models contexts (1m), so mostly you would need to split what you have and prompt twice....or more...and so on

show 1 reply