Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Query for Model context protocol #6

Open
lnvestor opened this issue Jan 8, 2025 · 1 comment
Open

Add Query for Model context protocol #6

lnvestor opened this issue Jan 8, 2025 · 1 comment

Comments

@lnvestor
Copy link

lnvestor commented Jan 8, 2025

Hi

Thanks for your efforts,

is there a way to use this i have MCP tools that will need KB is there a way to use this as query form my MCP tools

Thanks

@hhhuang
Copy link
Owner

hhhuang commented Jan 9, 2025

While CAG is designed for retrieval-free operation by preloading all relevant knowledge into the model's context, you can use the KB required for your MCP tools as the preloaded context for the LLM. Format the KB into a structured or text-based format that fits the LLM's input requirements and precompute the key-value (KV) cache. Ensure the size of the KB is manageable within the LLM's context length. During inference, your MCP tools can send queries to the LLM, which generates responses directly from the preloaded KB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants