Repository navigation
Phase 5: add AI-era application patterns module - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
org.example.aicontainingPromptBuilder,RetrievalPipeline,LlmClient(interface),FallbackModelStrategy,ToolAgentFacade,PolicyEnforcedLlmClient, andEvaluationHarnessto implement the patterns above in a focused, library-style API.PromptBuilderimplements template substitution, andRetrievalPipelineseparates retrieval and reranking and produces a bounded context window for prompts.ToolAgentFacaderoutestool:<name>:<input>tool invocations and composes retrieval context into LLM prompts viaLlmClient, whileFallbackModelStrategyfails over across multipleLlmClientimplementations.PolicyEnforcedLlmClientdecorates anLlmClientwith input validation, PII masking, and output filtering policies, andEvaluationHarnessprovides golden-set and statistical evaluation helpers;README.mdanddocs/phase-5-ai-era-patterns.mdwere updated to document the phase and examples.Testing
AiApplicationPatternsTestwhich asserts RAG-lite + facade orchestration, tool invocation, fallback model behavior, policy masking/filtering, and golden/statistical evaluation flows.mvn -Dtest=AiApplicationPatternsTest testin this environment but the build failed to start tests due to external artifact resolution failure (Maven Central returned HTTP 403 resolvingmaven-enforcer-plugin:3.5.0).Codex Task