Add advanced-rag module: Easy RAG, query compression and expansion, routing, minScore, content injection, chat-memory cost and sources, each with a captured transcript

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b85ApxQRK2Z8yuzC5r
This commit is contained in:
Claude
2026-11-17 00:59:39 +05:30
parent da39f6437a
commit ae8fe985b4
27 changed files with 1195 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
Query: How long are webhooks retried?
Searching the single merged store:
0.873 webhooks.txt
0.820 refund-policy.txt
0.811 account-security.txt
Prompt LanguageModelQueryRouter sent to the router LLM:
Based on the user query, determine the most suitable data source(s) to retrieve relevant information from the following options:
1: Billing, refunds, hardware returns and account security for customers
2: API rate limits, deployments and webhooks for developers
It is very important that your answer consists of either a single number or multiple numbers separated by commas and nothing else!
User query: How long are webhooks retried?
Router LLM answered "2" -> retrievers chosen: 1
0.873 webhooks.txt
0.802 deployments.txt
0.786 rate-limits.txt
Router LLM answered "The engineering one, I think.":
default fallback strategy -> retrievers chosen: 0
ROUTE_TO_ALL -> retrievers chosen: 2
FAIL -> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "The engineering one"