Skip to content

Conversation

@yossiovadia
Copy link
Collaborator

The 03-classification-api-test validates the standalone Classification API service
Key Differences between this test and the 02-classificatoin test:

Architecture: ExtProc is integrated with Envoy for transparent routing; Classification API is a standalone HTTP service
Use Case: ExtProc is for LLM routing; Classification API is for direct text categorization
Response: ExtProc returns LLM completions; Classification API returns category labels
Integration: ExtProc uses classifier directly; Classification API uses service wrapper layer

NOTE: this test exposes a bug in the server.go functionality. related to #303

Release Notes: Yes/No

@yossiovadia yossiovadia requested a review from rootfs as a code owner October 1, 2025 20:14
@netlify
Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for vllm-semantic-router ready!

Name Link
🔨 Latest commit f01b771
🔍 Latest deploy log https://app.netlify.com/projects/vllm-semantic-router/deploys/68dd8c348354e40008a87c6f
😎 Deploy Preview https://deploy-preview-304--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.

Add e2e test for standalone Classification API service that validates
the /api/v1/classify/intent endpoint correctly classifies different
types of queries.

Test validates:
- Math queries are classified as 'math'
- Computer science queries are classified as 'computer science'
- Business queries are classified as 'business'
- History queries are classified as 'history'
- Batch classification endpoint processes multiple texts correctly

The Classification API (port 8080) is a standalone service separate from
the ExtProc router, providing direct classification capabilities for
applications that need text classification without LLM routing.

Test requirements:
- Classification API must be running on port 8080
- Start with: make run-router-e2e

Signed-off-by: Yossi Ovadia <[email protected]>
Add 03-classification-api-test.py to the test suite documentation:
- Add to test flow list as test vllm-project#4
- Update numbering for remaining tests
- Add to Available Tests section with usage example

Signed-off-by: Yossi Ovadia <[email protected]>
- Apply black formatter: remove unnecessary parentheses
- Fix end of file: remove extra blank line

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

github-actions bot commented Oct 1, 2025

👥 vLLM Semantic Team Notification

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

📁 e2e-tests

Owners: @yossiovadia
Files changed:

  • e2e-tests/03-classification-api-test.py
  • e2e-tests/README.md

vLLM

🎉 Thanks for your contributions!

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

@rootfs rootfs merged commit 9aef73f into vllm-project:main Oct 1, 2025
9 checks passed
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
* test: add Classification API intent classification test

Add e2e test for standalone Classification API service that validates
the /api/v1/classify/intent endpoint correctly classifies different
types of queries.

Test validates:
- Math queries are classified as 'math'
- Computer science queries are classified as 'computer science'
- Business queries are classified as 'business'
- History queries are classified as 'history'
- Batch classification endpoint processes multiple texts correctly

The Classification API (port 8080) is a standalone service separate from
the ExtProc router, providing direct classification capabilities for
applications that need text classification without LLM routing.

Test requirements:
- Classification API must be running on port 8080
- Start with: make run-router-e2e

Signed-off-by: Yossi Ovadia <[email protected]>

* docs: update README with 03-classification-api-test

Add 03-classification-api-test.py to the test suite documentation:
- Add to test flow list as test vllm-project#4
- Update numbering for remaining tests
- Add to Available Tests section with usage example

Signed-off-by: Yossi Ovadia <[email protected]>

* style: apply pre-commit fixes to 03-classification-api-test.py

- Apply black formatter: remove unnecessary parentheses
- Fix end of file: remove extra blank line

Signed-off-by: Yossi Ovadia <[email protected]>

---------

Signed-off-by: Yossi Ovadia <[email protected]>
Signed-off-by: liuhy <[email protected]>
Aias00 pushed a commit to Aias00/semantic-router that referenced this pull request Oct 4, 2025
* test: add Classification API intent classification test

Add e2e test for standalone Classification API service that validates
the /api/v1/classify/intent endpoint correctly classifies different
types of queries.

Test validates:
- Math queries are classified as 'math'
- Computer science queries are classified as 'computer science'
- Business queries are classified as 'business'
- History queries are classified as 'history'
- Batch classification endpoint processes multiple texts correctly

The Classification API (port 8080) is a standalone service separate from
the ExtProc router, providing direct classification capabilities for
applications that need text classification without LLM routing.

Test requirements:
- Classification API must be running on port 8080
- Start with: make run-router-e2e

Signed-off-by: Yossi Ovadia <[email protected]>

* docs: update README with 03-classification-api-test

Add 03-classification-api-test.py to the test suite documentation:
- Add to test flow list as test vllm-project#4
- Update numbering for remaining tests
- Add to Available Tests section with usage example

Signed-off-by: Yossi Ovadia <[email protected]>

* style: apply pre-commit fixes to 03-classification-api-test.py

- Apply black formatter: remove unnecessary parentheses
- Fix end of file: remove extra blank line

Signed-off-by: Yossi Ovadia <[email protected]>

---------

Signed-off-by: Yossi Ovadia <[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.

2 participants