Skip to content

Conversation

@yossiovadia
Copy link
Collaborator

The Classification API's /api/v1/classify/intent endpoint was returning placeholder "general" category responses with 0.5 confidence instead of performing actual classification using the unified classifier.

Changes:

  • Update handleIntentClassification() to check for unified classifier availability first
  • Use ClassifyIntentUnified() when unified classifier is available
  • Fall back to legacy ClassifyIntent() when unified classifier not available
  • Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned hardcoded placeholder responses instead of performing actual BERT-based classification.

Fixes #303

The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.

Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.

Fixes vllm-project#303

Signed-off-by: Yossi Ovadia <[email protected]>
@netlify
Copy link

netlify bot commented Oct 2, 2025

Deploy Preview for vllm-semantic-router ready!

Name Link
🔨 Latest commit 1722238
🔍 Latest deploy log https://app.netlify.com/projects/vllm-semantic-router/deploys/68deb266a0503700084c251a
😎 Deploy Preview https://deploy-preview-320--vllm-semantic-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Oct 2, 2025

👥 vLLM Semantic Team Notification

The following members have been identified for the changed files in this PR and have been automatically assigned:

📁 src

Owners: @rootfs, @Xunzhuo, @wangchen615
Files changed:

  • src/semantic-router/pkg/api/server.go

vLLM

🎉 Thanks for your contributions!

This comment was automatically generated based on the OWNER files in the repository.

@rootfs rootfs merged commit cc2417d into vllm-project:main Oct 2, 2025
9 checks passed
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
…le (vllm-project#320)

The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.

Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.

Fixes vllm-project#303

Signed-off-by: Yossi Ovadia <[email protected]>
Co-authored-by: Huamin Chen <[email protected]>
Signed-off-by: liuhy <[email protected]>
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
…le (vllm-project#320)

The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.

Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.

Fixes vllm-project#303

Signed-off-by: Yossi Ovadia <[email protected]>
Co-authored-by: Huamin Chen <[email protected]>
Signed-off-by: liuhy <[email protected]>
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
…le (vllm-project#320)

The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.

Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.

Fixes vllm-project#303

Signed-off-by: Yossi Ovadia <[email protected]>
Co-authored-by: Huamin Chen <[email protected]>
Signed-off-by: liuhy <[email protected]>
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
…le (vllm-project#320)

The Classification API's /api/v1/classify/intent endpoint was returning
placeholder "general" category responses with 0.5 confidence instead of
performing actual classification using the unified classifier.

Changes:
- Update handleIntentClassification() to check for unified classifier availability first
- Use ClassifyIntentUnified() when unified classifier is available
- Fall back to legacy ClassifyIntent() when unified classifier not available
- Maintain backward compatibility with existing API contract

This resolves the issue where the single classification API always returned
hardcoded placeholder responses instead of performing actual BERT-based
classification.

Fixes vllm-project#303

Signed-off-by: Yossi Ovadia <[email protected]>
Co-authored-by: Huamin Chen <[email protected]>
Signed-off-by: liuhy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Classification API returns placeholder responses instead of using unified classifier

4 participants