Claude Code hook to first search in RAG instead of the web #236
nagyv
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR: https://github.com/nagyv/docsearch-hook
I am often confused why Claude Code wants to do a generic search when I already had a link to the documentation, or when we were discussing some really deep topic that's hard to search for. So I came up with an idea: what if there would be a Claude Code hook that before web search checks for some keywords, and based on if there is a match, it denies the web search and instead directs the LLM to use LEANN first for a local rag search.
Beta Was this translation helpful? Give feedback.
All reactions