Intent switch detection false switch fix#433
Merged
Merged
Conversation
Get update from wip into llm-316
Get update from llm-316
Intent enrichment pipeline (buerokratt#319)
get update from wip into llm-304
Service layer validation in tool classifier (buerokratt#321)
Get update from wip
Pulling changes from BYK wip to LLM-Module WIP
Get update from wip into optimization/data-enrichment
…mance improvement
Get update from optimization/data-enrichment into optimization/vector-indexer
Get update from llm-394 into llm-345-dev
…l classifier routing
Get update from llm-394 into llm-403
Get update from llm-345-dev into llm-403
Get update from llm-403 into llm-408
Get update from llm-408 into llm-348
Sync wip branches
Sync wip branches
Sync wip branches
Integrate agentic loop with semantic searcher and streaming (buerokratt#420)
Implemented the API caller module (buerokratt#421)
Sync wip branches
CKB API integration for agency data sync (buerokratt#392)
Integrate CKB and RAG changelogs with schema updates for RAG (buerokratt#422)
Fixed Ruff lint issues (buerokratt#426)
Thirunayan22
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a configurable minimum cosine similarity threshold for API tool classification, allowing more flexible and context-sensitive matching. It also updates the API tool endpoint test data and removes an obsolete import YAML file. The most important changes are grouped below:
Semantic Search & Classification Logic
min_cosine_overrideparameter to the semantic search (APISemanticSearcher.search) and classification (_try_api_tool_classification) methods, allowing callers to specify a custom minimum cosine threshold for matching. This enables more precise or relaxed matching depending on the context. The effective threshold is now always used for confidence evaluation and match filtering. [1] [2] [3] [4] [5] [6] [7]API_TOOL_INTENT_SWITCH_THRESHOLD(set to 0.50) to require a higher cosine similarity when abandoning an active session and switching user intent. The classifier now uses this stricter threshold during intent switching. [1] [2] [3]Test Data Updates
get_vehicle_tax_infoendpoint intest-endpoints.jsonwith a new URL, method (GET), and expanded parameter list to reflect the latest API contract.check_legal_eligibility, to the test endpoints for broader test coverage.Cleanup
DSL/Ruuter.private/rag-search/POST/ckb/agency_data_import.ymlfile, which is no longer needed.