Skip to content

Fix: Natural Language Search Error on Complex Queries #735

@elliotxx

Description

@elliotxx

What would you like to be added?

Natural language search returns 500 error when handling complex queries. Simple queries (e.g., 'What are the resources containing demo?') work fine, but complex queries (e.g., 'Which pods are in error state') trigger server errors.

image

Why is this needed?

This fix is crucial for improving user experience. The current error impacts the core functionality of using natural language for resource queries, especially for state-related searches.

Required improvements:

  1. Enhance natural language processing robustness
  2. Improve error handling mechanism
  3. Support more complex query patterns
  4. Add comprehensive test cases

Steps to reproduce:

  1. Go to search page
  2. Try query 'Which pods are in error state'
  3. Observe 500 error response

Expected behavior:

  • Should return a list of pods in error state
  • Should handle complex state queries gracefully

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority/important-longtermP2 Important over the long term,but may not be staffed and/or may need multiple releases to complete

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions