Skip to content

add simple caching for repeated queries in RAGAgent - #124

Open
Sasyamerugu wants to merge 1 commit into
sugarlabs:mainfrom
Sasyamerugu:cache-last-query
Open

add simple caching for repeated queries in RAGAgent#124
Sasyamerugu wants to merge 1 commit into
sugarlabs:mainfrom
Sasyamerugu:cache-last-query

Conversation

@Sasyamerugu

Copy link
Copy Markdown

Cache the last query and its response to avoid redundant model calls for identical consecutive requests.

This improves performance for repeated queries without altering existing behavior or introducing new dependencies.

Cache the last query and its response to avoid redundant model
calls for identical consecutive requests.

This improves performance for repeated queries without altering
existing behavior or introducing new dependencies.
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

Successfully merging this pull request may close these issues.

1 participant