Skip to content

Integrate Refined detectQueryIntent with Optimized Thresholds #200

Closed as not planned

Description

@joelteply

Description

Enhanced semantic query detection with refined thresholds:

  • Semantic threshold: 0.4 (lowered from 0.6)
  • Regex weight: 0.3 (reduced from 0.4)
  • Pattern cap: 0.25 max per pattern

Implementation

Updated classification logic to prevent conceptual queries from wasting time on file searches while maintaining accurate literal query detection.

Test Results

Validated across 15 test cases with 100% accuracy:

  • All conceptual queries correctly return guidance
  • All literal queries properly pass through to search
  • Edge cases handle correctly (mixed queries flagged appropriately)

Next Steps

  • Production integration into RAG query pipeline
  • End-to-end testing with ai/rag/query-open
  • Monitor for edge cases in real usage

Activity

  1. added
    enhancement
    on Nov 21, 2025
  2. joelteply commented on Mar 22, 2026

    @joelteply
    ContributorAuthor

    Closing stale issues — reopening fresh ones for current work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions