HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dheerkt

no profile record

Submissions

Reducing LLM Hallucinations with a Verified Semantic Cache

aws.amazon.com
1 points·by dheerkt·w zeszłym roku·1 comments

comments

dheerkt
·8 miesięcy temu·discuss
based on their past usage of "interleaved tool calling" it means that the tool can be used while the model is thinking.

https://aws.amazon.com/blogs/opensource/using-strands-agents...
dheerkt
·w zeszłym roku·discuss
How is this different from a local Jupyter notebook? Can we not do this with ! or % in a .ipynb?

Genuine question. Not familiar with this company or the CLI product.
dheerkt
·w zeszłym roku·discuss
This is the non-AI version of an AI CEO saying programmers will not exist in 5 years.
dheerkt
·w zeszłym roku·discuss
I recently wrote a post outlining our method to reduce hallucinations in LLM agents by leveraging a verified semantic cache. The approach pre-populates the cache with verified question-answer pairs, ensuring that frequently asked questions are answered accurately and consistently without invoking the LLM unnecessarily.

The key idea lies in dynamically determining how queries are handled:

- Strong matches (≥80% similarity): Responses are directly served from the cache.

- Partial matches (60–80% similarity): Verified answers are used as few-shot examples to guide the LLM.

- No matches (<60% similarity): The query is processed by the LLM as usual.

This not only minimizes hallucinations but also reduces costs and improves response times.

Here's a Jupyter notebook walkthrough if anyone's interested in diving deeper: https://github.com/aws-samples/Reducing-Hallucinations-in-LL...

Would love to hear your thoughts—anyone else working on similar techniques or approaches? Thanks.
dheerkt
·2 lata temu·discuss
yeah converse api supports all models on bedrock, or atleast all the text2text ones
dheerkt
·2 lata temu·discuss
If the user asks such a question, your agent should not invoke the RAG at all, but simply answer from the history. You need to focus on your orchestration step.

Search for ReAct agents, can build using either LangGraph or Bedrock Agents.
dheerkt
·2 lata temu·discuss
Skeptical that this will be a "good" experience for everyone involved considering how generic AI openers/responses are, but also hopeful that it can reduce friction for some.

Excited to see what y'all cook up.
dheerkt
·2 lata temu·discuss
Not an expert by any means but streaming HQ video is pretty expensive (even more so for live content), seems like the only providers that can do so profitably are YouTube and Netflix. I'm sure a big reason for that is the engineering (esp. CDN)
dheerkt
·2 lata temu·discuss
Hmm interesting, didn't realize that data sovereignty requirements were so stringent. Wonder how other cloud providers are doing in this sense considering GPU shortages across the board.
dheerkt
·2 lata temu·discuss
Can you not use cross-region inference?
dheerkt
·2 lata temu·discuss
I'm confused, what's expensive about it? It's a serverless pay per token model?

Do you mean specifically the Bedrock Knowledgebase/RAG -- that uses serverless OpenSearch which costs at minimum $200ish/month bc it doesn't scale to zero?
dheerkt
·2 lata temu·discuss
Study funded by Microsoft, conducted by Microsoft engineers, says Microsoft product makes engineers +X% more productive.
dheerkt
·2 lata temu·discuss
Also shouting out Continue.dev for vscode users. I set it up yesterday, open-source version of Cursor. (not affiliated, I tried to setup Avante but I'm a neovim noob and have skill issues)
dheerkt
·2 lata temu·discuss
Just set it up 2 days ago. I fully agree with his take. Cursor does a lot to reduce the headache of copy pasting results from ChatGPT/Claude.

Makes coding with AI much faster and less of a chore. You still need to know what you're doing as the models are fantastic at boilerplate but often get things wrong. But it's significantly sped up iteration for me, and hence translates to more fun.
dheerkt
·2 lata temu·discuss
WITCH is the acronym for Indian tech consulting companies for WiPro, InfoSys, Tata Consultancy Services, C something, H something. They're stereotyped as being cheap and low-quality.

Not agreeing/disagreeing here, just stating author's intent.
dheerkt
·2 lata temu·discuss
Do publications to my BigCo employer's engineering blog count towards an O-1 application? Or is it just Research Papers/citations to formal journals that matter?

What are some other common ways to build a portfolio towards an O-1 application other than research citations or founding a startup?

Thanks for this AMA!