KusionStack / KusionStack/karpor

Fix: Natural Language Search Error on Complex Queries

Open
#735 0 comments 0 reactions 0 assignees View on GitHub
bug priority/important-longterm
Dominant language
Go
Stars
1.7k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

## 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](https://github.com/user-attachments/assets/c43f6099-f47c-4012-8569-45dfbfd12c31)

## 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
3. 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

Contributor guide

Open the contributing guide

Research direction

Start at the search page and reproduce the failing query “Which pods are in error state,” then compare its server response with the working resource query. Trace where the complex query produces the 500 error, add coverage for state-related and other complex queries, and verify that the request returns the expected pod list without a server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.