AI Slop Code Risk Monitor

langchain4j/langchain4j

SlopCodeMonitor badge for langchain4j/langchain4j Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot.

2.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for langchain4j/langchain4j, a Java project with 13,334 GitHub stars. SynthScan examined 997,954 lines of code across 4347 source files, recording 514 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 2.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.6
Adjusted Signal
2.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
13.3K
Stars
Java
Language
998.0K
Lines of Code
4.3K
Files
514
Pattern Hits
2026-10-31
Scan Date
0.06
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 205 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.7/100 · LOW

Are imports declared and package/API names verified? 222 finding(s).

Agent Over-Engineering Ratio 2.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 98 finding(s).

PR Review Velocity Impact 12.5/100 · LOW

Which changes need focused human review? 514 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 144HIGH 120MEDIUM 128LOW 122

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 514 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators144 hits · 1570 pts
SeverityFileLineSnippetContext
CRITICAL…dev/langchain4j/model/ollama/OllamaEmbeddingModel.java89 return dev.langchain4j.model.embedding.response.EmbeddingResponse.builder()CODE
CRITICAL…hain4j/http/client/jdk/MultipartBodyPublisherTest.java137 org.junit.jupiter.api.Assertions.assertTrue(STRING
CRITICAL…dev/langchain4j/code/azure/acads/SessionsREPLTool.java371 .POST(java.net.http.HttpRequest.BodyPublishers.ofByteArray(requestBody))CODE
CRITICAL…dev/langchain4j/code/azure/acads/SessionsREPLTool.java375 nativeHttpClient.send(request, java.net.http.HttpResponse.BodyHandlers.ofString());CODE
CRITICAL…tore/embedding/pgvector/PgVectorHybridFilteringIT.java158 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL…tore/embedding/pgvector/PgVectorHybridFilteringIT.java186 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL…tore/embedding/pgvector/PgVectorHybridFilteringIT.java216 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL⚡…tore/embedding/pgvector/PgVectorHybridFilteringIT.java236 "Python tutorial for data science", dev.langchain4j.data.document.Metadata.from("language", "python"));CODE
CRITICAL⚡…tore/embedding/pgvector/PgVectorHybridFilteringIT.java239 dev.langchain4j.data.document.Metadata.from("language", "java"));CODE
CRITICAL⚡…tore/embedding/pgvector/PgVectorHybridFilteringIT.java241 "Python guide for machine learning", dev.langchain4j.data.document.Metadata.from("language", "python"));CODE
CRITICAL⚡…tore/embedding/pgvector/PgVectorHybridFilteringIT.java250 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL⚡…tore/embedding/pgvector/PgVectorHybridFilteringIT.java254 .filter(dev.langchain4j.store.embedding.filter.MetadataFilterBuilder.metadataKey("language")CODE
CRITICAL…tore/embedding/pgvector/PgVectorHybridFilteringIT.java282 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL…tore/embedding/pgvector/PgVectorHybridFilteringIT.java314 .search(dev.langchain4j.store.embedding.EmbeddingSearchRequest.builder()CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java276 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java296 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java315 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java334 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java370 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java392 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java412 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java432 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java462 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java491 .messages(dev.langchain4j.data.message.UserMessage.from("hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java542 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java628 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java693 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java764 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java826 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java906 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java1090 .messages(dev.langchain4j.data.message.UserMessage.from("Give me a phone number"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java1125 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java1134 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ev/langchain4j/model/watsonx/WatsonxChatModelTest.java1162 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…in4j/model/watsonx/WatsonxDeploymentChatModelTest.java204 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…in4j/model/watsonx/WatsonxDeploymentChatModelTest.java231 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…in4j/model/watsonx/WatsonxDeploymentChatModelTest.java261 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…/java/dev/langchain4j/model/watsonx/ConverterTest.java285 var toConvert = new com.ibm.watsonx.ai.chat.model.PartialToolCall(CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java217 .messages(dev.langchain4j.data.message.UserMessage.from("hello"))CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java270 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java362 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java419 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java461 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…chain4j/model/watsonx/WatsonxGatewayChatModelTest.java492 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java176 var messages = List.<ChatMessage>of(com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"));CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java339 com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"),CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java427 com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"),CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java501 com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"),CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java512 var messages = List.<ChatMessage>of(com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"));CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java660 handler.onPartialToolCall(new com.ibm.watsonx.ai.chat.model.PartialToolCall(CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java662 handler.onPartialToolCall(new com.ibm.watsonx.ai.chat.model.PartialToolCall(CODE
CRITICAL…ain4j/model/watsonx/WatsonxStreamingChatModelTest.java862 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…odel/watsonx/WatsonxGatewayStreamingChatModelTest.java140 var messages = List.<ChatMessage>of(com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"));CODE
CRITICAL…odel/watsonx/WatsonxGatewayStreamingChatModelTest.java277 handler.onPartialToolCall(new com.ibm.watsonx.ai.chat.model.PartialToolCall(CODE
CRITICAL…odel/watsonx/WatsonxGatewayStreamingChatModelTest.java279 handler.onPartialToolCall(new com.ibm.watsonx.ai.chat.model.PartialToolCall(CODE
CRITICAL…odel/watsonx/WatsonxGatewayStreamingChatModelTest.java492 .messages(dev.langchain4j.data.message.UserMessage.from("Hello"))CODE
CRITICAL…l/watsonx/WatsonxDeploymentStreamingChatModelTest.java141 var messages = List.<ChatMessage>of(com.ibm.watsonx.ai.chat.model.UserMessage.text("Hello"));CODE
CRITICAL…main/java/dev/langchain4j/model/watsonx/Converter.java362 return com.ibm.watsonx.ai.chat.model.SystemMessage.of(systemMessage.text());CODE
CRITICAL…main/java/dev/langchain4j/model/watsonx/Converter.java376 return com.ibm.watsonx.ai.chat.model.UserMessage.of(CODE
CRITICAL…angchain4j/model/bedrock/AbstractBedrockChatModel.java698 return software.amazon.awssdk.services.bedrockruntime.model.ToolSpecification.builder()CODE
84 more matches not shown…
Cross-File Repetition77 hits · 385 pts
SeverityFileLineSnippetContext
HIGH…gentic/patterns/goap/horoscope/HoroscopeGenerator.java0you are an astrologist that generates horoscopes based on the user's name and zodiac sign.STRING
HIGHdocs/docs/tutorials/agents.md0you are an astrologist that generates horoscopes based on the user's name and zodiac sign.STRING
HIGH…est/java/dev/langchain4j/agentic/WorkflowAgentsIT.java0you are an astrologist that generates horoscopes based on the user's name and zodiac sign.STRING
HIGH…c/test/java/dev/langchain4j/agentic/HoroscopeMain.java0you are an astrologist that generates horoscopes based on the user's name and zodiac sign.STRING
HIGH…t/java/dev/langchain4j/agentic/DeclarativeAgentIT.java0you are an astrologist that generates horoscopes based on the user's name and zodiac sign.STRING
HIGH…chain4j/agentic/patterns/goap/writer/WriterAgents.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGHdocs/docs/tutorials/agents.md0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…est/java/dev/langchain4j/agentic/WorkflowAgentsIT.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…test/java/dev/langchain4j/agentic/StreamingAgents.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…c/test/java/dev/langchain4j/agentic/TypedAgentsIT.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…test/java/dev/langchain4j/agentic/DynamicAgentsIT.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…t/java/dev/langchain4j/agentic/DeclarativeAgentIT.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…/src/test/java/dev/langchain4j/agentic/mcp/Agents.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…/src/test/java/dev/langchain4j/agentic/a2a/Agents.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…4j/agentic/declarative/StreamingChatModelSupplier.java0* you are a creative writer. * generate a draft of a story long no more than 3 sentence around the given topic. * returnSTRING
HIGH…chain4j/agentic/patterns/goap/writer/WriterAgents.java0you are a professional editor. analyze and rewrite the following story to better align with the target audience of {{audSTRING
HIGHdocs/docs/tutorials/agents.md0you are a professional editor. analyze and rewrite the following story to better align with the target audience of {{audSTRING
HIGH…est/java/dev/langchain4j/agentic/WorkflowAgentsIT.java0you are a professional editor. analyze and rewrite the following story to better align with the target audience of {{audSTRING
HIGH…test/java/dev/langchain4j/agentic/StreamingAgents.java0you are a professional editor. analyze and rewrite the following story to better align with the target audience of {{audSTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0you are a professional editor. analyze and rewrite the following story to better align with the target audience of {{audSTRING
HIGH…chain4j/agentic/patterns/goap/writer/WriterAgents.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGHdocs/docs/tutorials/agents.md0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…test/java/dev/langchain4j/agentic/StreamingAgents.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…test/java/dev/langchain4j/agentic/DynamicAgentsIT.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…t/java/dev/langchain4j/agentic/DeclarativeAgentIT.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…/src/test/java/dev/langchain4j/agentic/mcp/Agents.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…/src/test/java/dev/langchain4j/agentic/a2a/Agents.java0you are a professional editor. analyze and rewrite the following story to better fit and be more coherent with the {{stySTRING
HIGH…chain4j/agentic/patterns/goap/writer/WriterAgents.java0you are a critical reviewer. give a review score between 0.0 and 1.0 for the following story based on how well it alignsSTRING
HIGHdocs/docs/tutorials/agents.md0you are a critical reviewer. give a review score between 0.0 and 1.0 for the following story based on how well it alignsSTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0you are a critical reviewer. give a review score between 0.0 and 1.0 for the following story based on how well it alignsSTRING
HIGH…/src/test/java/dev/langchain4j/agentic/mcp/Agents.java0you are a critical reviewer. give a review score between 0.0 and 1.0 for the following story based on how well it alignsSTRING
HIGH…/src/test/java/dev/langchain4j/agentic/a2a/Agents.java0you are a critical reviewer. give a review score between 0.0 and 1.0 for the following story based on how well it alignsSTRING
HIGH…v/langchain4j/model/mistralai/MistralAiFimModelIT.java0public static void main(string[] args) { // create a function to multiply two numbersSTRING
HIGH…in4j/model/mistralai/MistralAiStreamingFimModelIT.java0public static void main(string[] args) { // create a function to multiply two numbersSTRING
HIGHdocs/docs/integrations/language-models/mistral-ai.md0public static void main(string[] args) { // create a function to multiply two numbersSTRING
HIGH…gchain4j/model/googleai/GoogleAiGeminiChatModelIT.java0extract information from the following text: 1. a circle with a radius of 5 2. a rectangle with a width of 10 and a heigSTRING
HIGHdocs/docs/tutorials/structured-outputs.md0extract information from the following text: 1. a circle with a radius of 5 2. a rectangle with a width of 10 and a heigSTRING
HIGH…in4j/model/openai/OpenAiChatModelWithJsonSchemaIT.java0extract information from the following text: 1. a circle with a radius of 5 2. a rectangle with a width of 10 and a heigSTRING
HIGH…ev/langchain4j/model/azure/AzureOpenAiChatModelIT.java0extract information from the following text: 1. a circle with a radius of 5 2. a rectangle with a width of 10 and a heigSTRING
HIGH…hain4j/model/anthropic/AnthropicCustomHeadersTest.java0event: message_start data: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistant","content"STRING
HIGH…nthropic/AnthropicStreamingChatModelPublisherTest.java0event: message_start data: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistant","content"STRING
HIGH…j/model/anthropic/AnthropicChatModelNonBlockingIT.java0event: message_start data: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistant","content"STRING
HIGH…anthropic/AnthropicChatRequestCacheParametersTest.java0{ "id": "msg_123", "type": "message", "role": "assistant", "model": "claude-opus-5-5", "content": [{"type": "text", "texSTRING
HIGH…/model/anthropic/AnthropicChatModelAsyncRetryTest.java0{ "id": "msg_123", "type": "message", "role": "assistant", "model": "claude-opus-5-5", "content": [{"type": "text", "texSTRING
HIGH…angchain4j/model/anthropic/AnthropicChatModelTest.java0{ "id": "msg_123", "type": "message", "role": "assistant", "model": "claude-opus-5-5", "content": [{"type": "text", "texSTRING
HIGH…hropic/AnthropicMidConversationSystemMessagesTest.java0{ "id": "msg_123", "type": "message", "role": "assistant", "model": "claude-opus-5-5", "content": [{"type": "text", "texSTRING
HIGH…hain4j/model/anthropic/AnthropicPromptCachingTest.java0{ "id": "msg_123", "type": "message", "role": "assistant", "model": "claude-opus-5-5", "content": [{"type": "text", "texSTRING
HIGHdocs/docs/tutorials/agents.md0generate the horoscope for {{person}}. the person has a name and a zodiac sign. use both to create a personalized horoscSTRING
HIGH…est/java/dev/langchain4j/agentic/WorkflowAgentsIT.java0generate the horoscope for {{person}}. the person has a name and a zodiac sign. use both to create a personalized horoscSTRING
HIGH…t/java/dev/langchain4j/agentic/DeclarativeAgentIT.java0generate the horoscope for {{person}}. the person has a name and a zodiac sign. use both to create a personalized horoscSTRING
HIGHdocs/docs/tutorials/agents.md0analyze the following user request and categorize it as 'legal', 'medical' or 'technical'. in case the request doesn't bSTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0analyze the following user request and categorize it as 'legal', 'medical' or 'technical'. in case the request doesn't bSTRING
HIGH…c/test/java/dev/langchain4j/agentic/TypedAgentsIT.java0analyze the following user request and categorize it as 'legal', 'medical' or 'technical'. in case the request doesn't bSTRING
HIGHdocs/docs/tutorials/agents.md0you are a technical expert. analyze the following user request under a technical point of view and provide the best possSTRING
HIGH…test/java/dev/langchain4j/agentic/StreamingAgents.java0you are a technical expert. analyze the following user request under a technical point of view and provide the best possSTRING
HIGH…ntic/src/test/java/dev/langchain4j/agentic/Agents.java0you are a technical expert. analyze the following user request under a technical point of view and provide the best possSTRING
HIGH…t/java/dev/langchain4j/agentic/DeclarativeAgentIT.java0you are a technical expert. analyze the following user request under a technical point of view and provide the best possSTRING
HIGH…c/test/java/dev/langchain4j/agentic/TypedAgentsIT.java0you are a technical expert. analyze the following user request under a technical point of view and provide the best possSTRING
17 more matches not shown…
Modern AI Meta-Vocabulary120 hits · 288 pts
SeverityFileLineSnippetContext
MEDIUM…v/langchain4j/agentic/patterns/p2p/P2PPlannerTest.java106 // No exit condition: the planner can only stop when the agentic scope reaches a stable state.COMMENT
MEDIUM…chain4j/agentic/patterns/goap/writer/GoapWriterIT.java32 // Manually add additional variables to the agentic scope to verify that GOAP is able to handle themCOMMENT
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java204 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java204 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java294 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java294 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUM…hain4j/model/bedrock/BedrockChatRequestParameters.java257 * Configuration information for a <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.htmlCOMMENT
MEDIUM…ain4j/model/bedrock/BedrockGuardrailConfiguration.java6 * @see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">Amazon Bedrock Guardrails</a>COMMENT
MEDIUM…ain4j/model/bedrock/BedrockGuardrailConfiguration.java109 * See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html">Configure streamCOMMENT
MEDIUM…hain4j/model/bedrock/BedrockGuardContentPlacement.java21 * @see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-use-converse-api.html">Use a guardrail COMMENT
MEDIUM…docs/integrations/embedding-models/google-vertex-ai.md88### Configuring the embedding modelCOMMENT
MEDIUM…cs/integrations/prompt-repetition/prompt-repetition.md78## Non-RAG UsageCOMMENT
MEDIUM…cs/integrations/prompt-repetition/prompt-repetition.md96## RAG UsageCOMMENT
MEDIUMdocs/docs/integrations/language-models/ollama.md429### Prompts that exceed the context windowCOMMENT
MEDIUM…cs/docs/integrations/language-models/amazon-bedrock.md100`BedrockChatModel` and `BedrockStreamingChatModel` support [Amazon Bedrock Guardrails](https://docs.aws.amazon.com/bedroCODE
MEDIUM…cs/docs/integrations/language-models/amazon-bedrock.md140The selected user messages are sent as Bedrock [`guardContent`](https://docs.aws.amazon.com/bedrock/latest/userguide/guaCODE
MEDIUM…docs/integrations/language-models/openai-compatible.md93**Description:** [OrcaRouter](https://www.orcarouter.ai) is an OpenAI-compatible AI gateway built for both models and agCODE
MEDIUMdocs/docs/integrations/embedding-stores/pgvector.md121## Complete RAG Example with PGVectorCOMMENT
MEDIUMdocs/docs/integrations/embedding-stores/hibernate.md288## Complete RAG Example with HibernateCOMMENT
MEDIUM…cs/docs/integrations/embedding-stores/mongodb-atlas.md222## RAGCOMMENT
MEDIUMdocs/docs/tutorials/rag.md5# RAG (Retrieval-Augmented Generation)COMMENT
MEDIUMdocs/docs/tutorials/rag.md14## What is RAG?COMMENT
MEDIUMdocs/docs/tutorials/rag.md40## RAG StagesCOMMENT
MEDIUM⚡docs/docs/tutorials/rag.md76## RAG Flavours in LangChain4jCOMMENT
MEDIUM⚡docs/docs/tutorials/rag.md79- [Easy RAG](/tutorials/rag/#easy-rag): the easiest way to start with RAGCODE
MEDIUM⚡docs/docs/tutorials/rag.md80- [Naive RAG](/tutorials/rag/#naive-rag): a basic implementation of RAG using vector searchCODE
MEDIUM⚡docs/docs/tutorials/rag.md81- [Advanced RAG](/tutorials/rag/#advanced-rag): a modular RAG framework that allows for additional steps such asCODE
MEDIUM⚡docs/docs/tutorials/rag.md85## Easy RAGCOMMENT
MEDIUMdocs/docs/tutorials/rag.md211## Core RAG APIsCOMMENT
MEDIUMdocs/docs/tutorials/rag.md751## Naive RAGCOMMENT
MEDIUMdocs/docs/tutorials/rag.md774## Advanced RAGCOMMENT
MEDIUM⚡docs/docs/tutorials/guardrails.md42Ideally, guardrail implementations should follow the [single responsibility principle](https://en.wikipedia.org/wiki/SinCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md46Guardrails that _rewrite_ the text they validate can be declared anywhere in the chain. They do not need to be declared CODE
MEDIUM⚡docs/docs/tutorials/guardrails.md54### Rewriting guardrails in a chainCOMMENT
MEDIUMdocs/docs/tutorials/guardrails.md101| **_success_** | `success()` | - The input is valid.<br/> -CODE
MEDIUM⚡docs/docs/tutorials/guardrails.md263| [`MessageModeratorInputGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/src/maiCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md264| [`PatternBasedPromptInjectionGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/sCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md265| [`DecisionModelInputGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/src/main/jCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md295| **_success_** | `success()` | - The output is valCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md300| **_fatal with retry_** | `retry(String)` or `retry(String, Throwable)` | - Similar to **_fatCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md301| **_fatal with reprompt_** | `reprompt(String, String)` or `reprompt(String, Throwable, String)` | - Similar to **_fatCODE
MEDIUM⚡docs/docs/tutorials/guardrails.md468| [`JsonExtractorOutputGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/src/main/CODE
MEDIUM⚡docs/docs/tutorials/guardrails.md469| [`DecisionModelOutputGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/src/main/CODE
MEDIUM⚡docs/docs/tutorials/guardrails.md469| [`DecisionModelOutputGuardrail`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-guardrails/src/main/CODE
MEDIUMdocs/docs/tutorials/guardrails.md586 | [`InputGuardrailsConfigBuilderFactory`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/maiCODE
MEDIUMdocs/docs/tutorials/guardrails.md587| [`OutputGuardrailsConfigBuilderFactory`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/maiCODE
MEDIUMdocs/docs/tutorials/decision-models.md24 (see the [decision router agentic pattern](/tutorials/agents#decision-router-agentic-pattern))CODE
MEDIUMdocs/docs/tutorials/decision-models.md27 (see the [confidence cascade agentic pattern](/tutorials/agents#confidence-cascade-agentic-pattern))CODE
MEDIUMdocs/docs/tutorials/decision-models.md361refused answer as a failed check, as the [guardrails](#guardrails) do, rather than as a "no".CODE
MEDIUM⚡docs/docs/tutorials/decision-models.md546A [decision agent](/tutorials/agents#decision-agents) is an agent of an agentic system built on aCODE
MEDIUM⚡docs/docs/tutorials/decision-models.md551`@DecisionModelSupplier`. The [decision router](/tutorials/agents#decision-router-agentic-pattern) and theCODE
MEDIUM⚡docs/docs/tutorials/decision-models.md552[confidence cascade](/tutorials/agents#confidence-cascade-agentic-pattern) patterns use a decision model insideCODE
MEDIUMdocs/docs/tutorials/decision-models.md580and shortens messages longer than 50,000 characters (see [Guardrails](#guardrails)). To leave out messages, for example CODE
MEDIUMdocs/docs/tutorials/decision-models.md598A question that the decision model [refuses to answer](#refusals) is handled the same way, except by the guardrails:CODE
MEDIUMdocs/docs/tutorials/ai-services.md857## RAGSTRING
MEDIUMdocs/docs/tutorials/ai-services.md889### RAG as a ToolSTRING
MEDIUM⚡docs/docs/tutorials/observability.md34| [`AiServiceErrorEvent`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/main/java/dev/langchCODE
MEDIUM⚡docs/docs/tutorials/observability.md41| [`InputGuardrailExecutedEvent`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/main/java/deCODE
MEDIUM⚡docs/docs/tutorials/observability.md41| [`InputGuardrailExecutedEvent`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/main/java/deCODE
MEDIUM⚡docs/docs/tutorials/observability.md42| [`OutputGuardrailExecutedEvent`](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-core/src/main/java/dCODE
60 more matches not shown…
Magic Placeholder Names40 hits · 205 pts
SeverityFileLineSnippetContext
HIGH…j/model/anthropic/internal/client/AnthropicClient.java142 * .apiKey("your-api-key")COMMENT
HIGH…/anthropic/internal/client/DefaultAnthropicClient.java111 * .apiKey("your-api-key")COMMENT
HIGHdocs/docs/integrations/image-models/watsonx.md45 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/image-models/watsonx.md109 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/image-models/watsonx.md126 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/image-models/watsonx.md186 .apiKey("your-api-key") // Simple IBM Cloud authenticationCODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md37 .apiKey("your-api-key") // Simple IBM Cloud authenticationCODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md127 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md143 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md189 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md209 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/embedding-models/watsonx.md221 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/embedding-models/mistral-ai.md45export MISTRAL_AI_API_KEY=your-api-key #For Unix OS basedCODE
HIGHdocs/docs/integrations/embedding-models/mistral-ai.md46SET MISTRAL_AI_API_KEY=your-api-key #For Windows OSCODE
HIGHdocs/docs/integrations/embedding-models/ovh-ai.md32export OVHAI_AI_API_KEY=your-api-key #For Unix OS basedCODE
HIGHdocs/docs/integrations/embedding-models/ovh-ai.md33SET OVHAI_AI_API_KEY=your-api-key #For Windows OSCODE
HIGHdocs/docs/integrations/language-models/watsonx.md47 .apiKey("your-api-key") // Simple IBM Cloud authenticationCODE
HIGHdocs/docs/integrations/language-models/watsonx.md154 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md186 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md236 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md257 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md304 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md327 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md429 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md565 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md597 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md646 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md673 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md685 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md697 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md768 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md806 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/watsonx.md835 .apiKey("your-api-key")CODE
HIGHdocs/docs/integrations/language-models/mistral-ai.md45export MISTRAL_AI_API_KEY=your-api-key #For Unix OS basedCODE
HIGHdocs/docs/integrations/language-models/mistral-ai.md46SET MISTRAL_AI_API_KEY=your-api-key #For Windows OSCODE
HIGH…docs/integrations/language-models/openai-compatible.md43 .apiKey("YOUR_API_KEY")CODE
HIGHdocs/docs/integrations/embedding-stores/milvus.md146 .token("your-api-key")CODE
HIGH…/docs/integrations/scoring-reranking-models/watsonx.md37 .apiKey("your-api-key") // Simple IBM Cloud authenticationCODE
HIGH…/docs/integrations/scoring-reranking-models/watsonx.md129 .apiKey("your-api-key")CODE
HIGHdocs/docs/tutorials/kotlin.md58 .apiKey("YOUR_API_KEY")CODE
Over-Commented Block57 hits · 44 pts
SeverityFileLineSnippetContext
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29601collarboneCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29621##)COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29641##{COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29661##¶COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29681##ɕCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29701##ʌCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29721##βCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29741##бCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29761##іCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29781##պCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29801##םCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29821##حCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29841##چCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29861##थCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29881##।COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29901##দCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29921##டCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29941##යCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29961##་COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt29981##თCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30001##ᄌCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30021##ᆨCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30041##ᵖCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30061##„COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30081##ⁿCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30101##₤COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30121##∂COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30141##⊗COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30161##⽥COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30181##けCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30201##ふCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30221##ィCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30241##トCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30261##レCOMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30281##井COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30301##出COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30321##同COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30341##奈COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30361##崎COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30381##成COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30401##朝COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30421##氵COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30441##発COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30461##糹COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30481##車COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30501##雄COMMENT
LOW…j-embeddings/src/main/resources/bert-vocabulary-en.txt30521##?COMMENT
LOW…tore/embedding/pgvector/PgVectorHybridFilteringIT.java61 protected void assertScore(EmbeddingMatch<TextSegment> match, double expectedScore) {COMMENT
LOW…/model/bedrock/BedrockSystemMessageExtractionTest.java601 }COMMENT
LOW…angchain4j/model/openai/OpenAiToolSpecificationIT.java41 // "type": "boolean"COMMENT
LOW…-open-ai/src/test/script/deploy-azure-openai-models.sh1#!/usr/bin/env bashCOMMENT
LOW…ev/langchain4j/mcp/client/ToolSpecificationHelper.java241 }COMMENT
LOW…ev/langchain4j/mcp/client/ToolSpecificationHelper.java261 // {COMMENT
LOW…ial/src/test/script/deploy-microsoft-foundry-models.sh1#!/usr/bin/env bashCOMMENT
LOW…ev/langchain4j/service/common/AbstractAiServiceIT.java121COMMENT
LOW…ev/langchain4j/service/common/AbstractAiServiceIT.java141 // ToolExecutionResultMessage.from(...)COMMENT
LOW…re-ai-search/src/test/script/deploy-azure-ai-search.sh1#!/usr/bin/env bashCOMMENT
Fake / Example Data38 hits · 38 pts
SeverityFileLineSnippetContext
LOW…ql/DefaultAzureCosmosDBNoSqlFilterMapperValueTest.java35 private static final String PLACEHOLDER = "placeholder";CODE
LOW…edding/mongodb/MongoDbEmbeddingStoreWithRemovalIT.java57 return new IsEqualTo(key, "placeholder") {CODE
LOW…embedding/mongodb/MongoDbMetadataFilterMapperTest.java66 return new IsEqualTo(key, "placeholder") {CODE
LOW…embedding/pgvector/PgVectorEmbeddingStoreConfigIT.java307 return new IsEqualTo(key, "placeholder") {CODE
LOW…embedding/pgvector/PgVectorEmbeddingStoreConfigIT.java316 return new IsIn(key, List.of("placeholder")) {CODE
LOW⚡…store/embedding/pgvector/PgVectorFilterMapperTest.java299 return new IsEqualTo(key, "placeholder") {CODE
LOW⚡…store/embedding/pgvector/PgVectorFilterMapperTest.java308 return new IsIn(key, List.of("placeholder")) {CODE
LOW⚡…store/embedding/pgvector/PgVectorFilterMapperTest.java317 return new IsNotIn(key, List.of("placeholder")) {CODE
LOW…e/embedding/milvus/MilvusMetadataFilterMapperTest.java178 Filter filter = new IsEqualTo("tenant", "placeholder") {CODE
LOW…e/embedding/milvus/MilvusMetadataFilterMapperTest.java192 Filter filter = new IsIn("tenant", List.of("placeholder")) {CODE
LOW…e/embedding/milvus/MilvusMetadataFilterMapperTest.java214 Filter filter = new IsEqualTo("tenant", "placeholder") {CODE
LOW…n4j/model/watsonx/WatsonxChatResponseMetadataTest.java23 0, List.of(new DetectionResult("det-1", "pii", "email", 0.95, "test@test.com", 0, 13)))));CODE
LOW…/model/bedrock/common/BedrockStreamingChatModelIT.java163 .messages(UserMessage.from("Say 'Lorem ipsum dolor sit amet'"))CODE
LOW…/model/bedrock/common/BedrockStreamingChatModelIT.java163 .messages(UserMessage.from("Say 'Lorem ipsum dolor sit amet'"))CODE
LOW…/model/bedrock/common/BedrockStreamingChatModelIT.java193 .messages(UserMessage.from("Say 'Lorem ipsum dolor sit amet'"))CODE
LOW…/model/bedrock/common/BedrockStreamingChatModelIT.java193 .messages(UserMessage.from("Say 'Lorem ipsum dolor sit amet'"))CODE
LOW…el/googleai/GoogleAiGeminiBatchEmbeddingModelTest.java546 var segment = TextSegment.from("Text with other metadata", Metadata.from("author", "John Doe"));CODE
LOW…edding/milvus/v2/MilvusV2MetadataFilterMapperTest.java178 Filter filter = new IsEqualTo("tenant", "placeholder") {CODE
LOW…edding/milvus/v2/MilvusV2MetadataFilterMapperTest.java192 Filter filter = new IsIn("tenant", List.of("placeholder")) {CODE
LOW…edding/milvus/v2/MilvusV2MetadataFilterMapperTest.java214 Filter filter = new IsEqualTo("tenant", "placeholder") {CODE
LOW…hain4j/model/anthropic/AnthropicCustomHeadersTest.java79 .apiKey("dummy-key")STRING
LOW…hain4j/model/anthropic/AnthropicCustomHeadersTest.java98 .apiKey("dummy-key")STRING
LOW…hain4j/model/anthropic/AnthropicCustomHeadersTest.java171 .apiKey("dummy-key")STRING
LOW…ropic/AnthropicStreamingChatModelPublisherTckTest.java132 .apiKey("dummy-key")CODE
LOW…nthropic/AnthropicStreamingChatModelPublisherTest.java89 .apiKey("dummy-key")CODE
LOW…in4j/model/anthropic/AnthropicChatModelErrorsTest.java37 .apiKey("dummy-key")CODE
LOW…in4j/model/anthropic/AnthropicChatModelErrorsTest.java107 .apiKey("dummy-key")CODE
LOW…j/model/anthropic/AnthropicChatModelNonBlockingIT.java18 .apiKey("dummy-key")CODE
LOW…j/model/anthropic/AnthropicChatModelNonBlockingIT.java30 .apiKey("dummy-key")CODE
LOWdocs/docs/tutorials/structured-outputs.md516lack sufficient information (e.g., using "John Doe" when then name is missing)".STRING
LOW…e/embedding/mariadb/MariaDbEmbeddingStoreConfigIT.java339 return new IsEqualTo(key, "placeholder") {CODE
LOW…e/embedding/mariadb/MariaDbEmbeddingStoreConfigIT.java348 return new IsIn(key, List.of("placeholder")) {CODE
LOW…in4j/store/embedding/mariadb/JSONFilterMapperTest.java130 return new IsEqualTo(key, "placeholder") {CODE
LOW…in4j/store/embedding/mariadb/JSONFilterMapperTest.java139 return new IsNotIn(key, List.of("placeholder")) {CODE
LOW…4j/store/embedding/mariadb/ColumnFilterMapperTest.java51 return new IsIn(key, List.of("placeholder")) {CODE
LOW…e/embedding/chroma/ChromaMetadataFilterMapperTest.java184 return new IsEqualTo(key, "placeholder") {CODE
LOW…/embedding/chroma/ChromaEmbeddingStoreRemovalV2IT.java117 return new IsEqualTo(key, "placeholder") {CODE
LOW…re/embedding/chroma/ChromaEmbeddingStoreRemovalIT.java114 return new IsEqualTo(key, "placeholder") {CODE
Synthetic Comment Markers3 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…v/langchain4j/model/googleai/GeneratedImageHelper.java12 * This provides a convenient way to extract images generated by Gemini's image generation models.COMMENT
HIGHdocs/docs/tutorials/ai-services.md244Note that `toolSpecifications` and `responseFormat` specified in the `ChatRequestParameters` will override those generatCODE
HIGH…/main/java/dev/langchain4j/data/message/AiMessage.java20 * Represents a message generated by AI (language model).COMMENT
Hyper-Verbose Identifiers11 hits · 11 pts
SeverityFileLineSnippetContext
LOW…/streaming/TubeBackedStreamingChatResponseHandler.java42public final class TubeBackedStreamingChatResponseHandler implements StreamingChatResponseHandler {CODE
LOW…/langchain4j/code/judge0/Judge0JavaScriptEngineIT.java42 codeExecutionEngine.execute("function calculateCompoundInterest(principal, rate, time, compounds) {\n"CODE
LOW…t/java/dev/langchain4j/agentic/SuspensionResumeIT.java328 public static class DataProcessor {CODE
LOW…chain4j/service/AiServiceStreamingResponseHandler.java60class AiServiceStreamingResponseHandler implements StreamingChatResponseHandler {CODE
LOW…ev/langchain4j/model/StreamingResponseHandlerTest.java8 public static class MinimalStreamingResponseHandler<T> implements StreamingResponseHandler<T> {CODE
LOW…ain4j/model/chat/TestStreamingChatResponseHandler.java20public class TestStreamingChatResponseHandler implements StreamingChatResponseHandler {CODE
LOW…ngchain4j/model/chat/TestStreamingResponseHandler.java15public class TestStreamingResponseHandler<T> implements StreamingResponseHandler<T> {CODE
LOW…dev/langchain4j/model/chat/StreamingChatModelTest.java33 public static final class CollectorResponseHandler implements StreamingChatResponseHandler {CODE
LOW…ernal/MappingTrackingStreamingChatResponseHandler.java29public class MappingTrackingStreamingChatResponseHandler implements StreamingChatResponseHandler {CODE
LOW…in4j/guardrail/StreamingToSynchronousChatExecutor.java55 private static class StreamingToSyncResponseHandler implements StreamingChatResponseHandler {CODE
LOW…/langchain4j/model/LambdaStreamingResponseHandler.java36public class LambdaStreamingResponseHandler {CODE
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…j/agentic/patterns/p2p/P2PPlannerComposeActionsIT.java22 // ── Typed keys ──────────────────────────────────────────────────────COMMENT
MEDIUM…j/agentic/patterns/p2p/P2PPlannerComposeActionsIT.java36 // ── Agent wrapper interfaces ────────────────────────────────────────COMMENT
MEDIUM…v/langchain4j/agentic/a2a/A2AAnnotationTenantTest.java61 // ── extractTenantFromAgentCard ──────────────────────────────────────────COMMENT
Slop Phrases4 hits · 7 pts
SeverityFileLineSnippetContext
LOW…/dev/langchain4j/store/embedding/oracle/SQLFilter.java40 * // Don't forget to close the statement :)COMMENT
LOW…src/main/java/dev/langchain4j/mcp/McpToolProvider.java343 * NOTE: When writing the mapping function, don't forget to include the tool arguments as well (these shouldCOMMENT
MEDIUM…angchain4j/service/output/ServiceOutputParserTest.java211 "Sure, here is your JSON:\n```\n{\"key\":\"value\"}\n```\nLet me know if you need more help."CODE
MEDIUM…angchain4j/service/output/ServiceOutputParserTest.java235 "Sure, here is your JSON:\n```\n{\"keyProperty\" :\n {\"key\" : \"value\"}\n}\n```\nLet me know if you nCODE
Excessive Try-Catch Wrapping7 hits · 7 pts
SeverityFileLineSnippetContext
LOW.github/workflows/nightly_jdk21.yaml211 except Exception:CODE
LOW.github/workflows/nightly_oracle.yaml82 except Exception:CODE
LOW.github/workflows/nightly_jdk17.yaml211 except Exception:CODE
LOW.github/workflows/main.yaml98 except Exception:CODE
LOW.github/workflows/main.yaml330 except Exception:CODE
LOW.github/workflows/nightly_jdk25.yaml207 except Exception:CODE
LOW.github/workflows/nightly_milvus.yaml99 except Exception:CODE
Structural Annotation Overuse5 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡…n/java/dev/langchain4j/model/googleai/GeminiFiles.java87 // Step 1: Initial resumable request to get upload URLCOMMENT
LOW⚡…n/java/dev/langchain4j/model/googleai/GeminiFiles.java90 // Step 2: Upload the actual file bytesCOMMENT
LOW⚡docs/docs/tutorials/agents.md3425// Step 1: Validate the order and write results to shared stateSTRING
LOW⚡docs/docs/tutorials/agents.md3431// Step 2: Pause for human approval using SuspendedResponseSTRING
LOW⚡docs/docs/tutorials/agents.md3438// Step 3: Finalize based on the approval decisionSTRING
AI Slop Vocabulary3 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java204 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUM⚡…/langchain4j/model/bedrock/BedrockPromptCachingIT.java294 You are a helpful coding assistant. Time now is %s. You are an experienced and knowledgeable coding assiSTRING
MEDIUMdocs/package-lock.json16835 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡…n/java/dev/langchain4j/model/googleai/GeminiFiles.java87 // Step 1: Initial resumable request to get upload URLCOMMENT
LOW⚡…n/java/dev/langchain4j/model/googleai/GeminiFiles.java90 // Step 2: Upload the actual file bytesCOMMENT