Skip to content

Integrate Refined detectQueryIntent with Optimized Thresholds #200

@joelteply

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions