Skip to content

Conversation

@TillK17
Copy link
Contributor

@TillK17 TillK17 commented Apr 3, 2025

Context

AI/ai-sdk-java-backlog#224

  • Input and output filtering for orchestration using the SpringAI Integration is tested as part of the sample app
  • Example added to the documentation portal with this PR

Feature scope:

  • content filter modules of the orchestration service supported in our Spring AI client
  • Sample code for content filtering
    • Input filtering hits
    • Output filtering hits
    • (optional) Streaming enabled

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Aligned changes with the JavaScript SDK
  • Documentation updated
  • Release notes updated

@TillK17 TillK17 changed the title Spring ai content filtering test test: SpringAI Filtering Apr 3, 2025
@TillK17 TillK17 marked this pull request as draft April 4, 2025 11:47
.getOutputFiltering();
assertThat(filterResult.getMessage()).containsPattern("0 of \\d+ choices failed");
}

Copy link
Contributor Author

@TillK17 TillK17 Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strict tests for hitting filters and lenient tests for non-hitting filters

@TillK17 TillK17 marked this pull request as ready for review April 7, 2025 09:11
@TillK17 TillK17 added the please-review Request to review a pull-request label Apr 9, 2025
rpanackal
rpanackal previously approved these changes Apr 15, 2025
Copy link
Member

@rpanackal rpanackal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If you switch back to OpenAI model use, let me know so I can simply reapprove.

…es/SpringAiOrchestrationService.java

Co-authored-by: Roshin Rajan Panackal <[email protected]>
@newtork newtork enabled auto-merge (squash) April 16, 2025 12:38
@newtork
Copy link
Contributor

newtork commented Apr 16, 2025

I ran and tested it locally. Success 👍

@newtork newtork merged commit 285d010 into main Apr 16, 2025
6 checks passed
@newtork newtork deleted the SpringAI-ContentFiltering-Test branch April 16, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants