Skip to content

Commit 61a3089

Browse files
committed
Typo fixes
1 parent d9801a9 commit 61a3089

File tree

10 files changed

+27
-27
lines changed

10 files changed

+27
-27
lines changed

core/deployment/src/main/java/io/quarkiverse/langchain4j/deployment/AiServicesProcessor.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public void handleDeclarativeServices(AiServicesRecorder recorder,
477477
List<DeclarativeAiServiceBuildItem> declarativeAiServiceItems,
478478
List<SelectedChatModelProviderBuildItem> selectedChatModelProvider,
479479
BuildProducer<SyntheticBeanBuildItem> syntheticBeanProducer,
480-
BuildProducer<UnremovableBeanBuildItem> unremoveableProducer) {
480+
BuildProducer<UnremovableBeanBuildItem> unremovableProducer) {
481481

482482
boolean needsChatModelBean = false;
483483
boolean needsStreamingChatModelBean = false;
@@ -668,7 +668,7 @@ public void handleDeclarativeServices(AiServicesRecorder recorder,
668668
// constructor to obtain an instance.
669669
if (bi.isCustomRetrievalAugmentorSupplierClassIsABean()) {
670670
configurator.addInjectionPoint(ClassType.create(retrievalAugmentorSupplierClassName));
671-
unremoveableProducer
671+
unremovableProducer
672672
.produce(UnremovableBeanBuildItem.beanClassNames(retrievalAugmentorSupplierClassName));
673673
}
674674
}
@@ -724,34 +724,34 @@ public void handleDeclarativeServices(AiServicesRecorder recorder,
724724
}
725725

726726
if (needsChatModelBean) {
727-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.CHAT_MODEL));
727+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.CHAT_MODEL));
728728
}
729729
if (needsStreamingChatModelBean) {
730-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.STREAMING_CHAT_MODEL));
730+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.STREAMING_CHAT_MODEL));
731731
}
732732
if (needsChatMemoryProviderBean) {
733-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.CHAT_MEMORY_PROVIDER));
733+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.CHAT_MEMORY_PROVIDER));
734734
}
735735
if (needsRetrieverBean) {
736-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.RETRIEVER));
736+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.RETRIEVER));
737737
}
738738
if (needsRetrievalAugmentorBean) {
739-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.RETRIEVAL_AUGMENTOR));
739+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.RETRIEVAL_AUGMENTOR));
740740
}
741741
if (needsAuditServiceBean) {
742-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.AUDIT_SERVICE));
742+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.AUDIT_SERVICE));
743743
}
744744
if (needsModerationModelBean) {
745-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.MODERATION_MODEL));
745+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.MODERATION_MODEL));
746746
}
747747
if (needsImageModelBean) {
748-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.IMAGE_MODEL));
748+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(LangChain4jDotNames.IMAGE_MODEL));
749749
}
750750
if (!allToolProviders.isEmpty()) {
751-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(allToolProviders));
751+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(allToolProviders));
752752
}
753753
if (!allToolNames.isEmpty()) {
754-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(allToolNames));
754+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(allToolNames));
755755
}
756756
}
757757

core/deployment/src/main/java/io/quarkiverse/langchain4j/deployment/BeansProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ public void cleanUp(LangChain4jRecorder recorder, ShutdownContextBuildItem shutd
600600
}
601601

602602
@BuildStep
603-
public void unremoveableBeans(BuildProducer<UnremovableBeanBuildItem> unremoveableProducer) {
604-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(ObjectMapper.class));
605-
unremoveableProducer.produce(UnremovableBeanBuildItem.beanTypes(ModelAuthProvider.class));
603+
public void unremovableBeans(BuildProducer<UnremovableBeanBuildItem> unremovableProducer) {
604+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(ObjectMapper.class));
605+
unremovableProducer.produce(UnremovableBeanBuildItem.beanTypes(ModelAuthProvider.class));
606606
}
607607

608608
@BuildStep

core/runtime/src/main/java/io/quarkiverse/langchain4j/runtime/aiservice/GuardrailException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.quarkiverse.langchain4j.runtime.aiservice;
22

33
/**
4-
* Exception thrown when a input or output guardrail validation fails.
4+
* Exception thrown when an input or output guardrail validation fails.
55
* <p>
66
* This exception is not intended to be used in guardrail implementation.
77
*/

docs/modules/ROOT/pages/easy-rag.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ingest them into an in-memory embedding store.
1414

1515
Apache Tika, a library for parsing various file formats, is used under the
1616
hood, so your documents can be in any of its supported formats (plain text,
17-
PDF, DOCX, HTML, etc), including images with text, which will be parsed
17+
PDF, DOCX, HTML, etc.), including images with text, which will be parsed
1818
using OCR (OCR requires to have the Tesseract library installed in your
1919
system - see https://cwiki.apache.org/confluence/display/TIKA/TikaOCR).
2020

docs/modules/ROOT/pages/enable-disable-integrations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
include::./includes/attributes.adoc[]
44

5-
By default, all integrations with AI providers (OpenAI, HuggingFace, Azure OpenAI, etc) are enabled. This means that live calls are made to the configured AI provider.
5+
By default, all integrations with AI providers (OpenAI, HuggingFace, Azure OpenAI, etc.) are enabled. This means that live calls are made to the configured AI provider.
66

7-
Each provider has an `enable-integration` property (i.e. `quarkus.langchain4j.openai.enable-integration`, `quarkus.langchain4j.huggingface.enable-integration`, etc) that can be set to `false` to disable the integration. This property is read at runtime.
7+
Each provider has an `enable-integration` property (i.e. `quarkus.langchain4j.openai.enable-integration`, `quarkus.langchain4j.huggingface.enable-integration`, etc.) that can be set to `false` to disable the integration. This property is read at runtime.
88

99
When disabled, any call made to the AI provider will end up in an `dev.langchain4j.model.ModelDisabledException` runtime exception being thrown.
1010

docs/modules/ROOT/pages/guardrails.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public interface Simulator {
163163
In this example, the `VerifyHeroFormat` is executed first to check that the passed hero is valid.
164164
Then, the `VerifyVillainFormat` is executed to check that the villain is valid.
165165

166-
If the `VerifyHeroFormat` fails, the `VerifyVillainFormat` may or may not be executed depending on whether the failure is fatal or not. For instance the `VerifyHeroFormat` could be implemented as it follows.
166+
If the `VerifyHeroFormat` fails, the `VerifyVillainFormat` may or may not be executed depending on whether the failure is fatal or not. For instance, the `VerifyHeroFormat` could be implemented as it follows.
167167

168168
[source,java]
169169
----
@@ -511,7 +511,7 @@ public class HallucinationGuard implements OutputGuardrail {
511511
----
512512

513513
=== Rewriting the LLM output
514-
It may happen that the output generated by the LLM is not completely satisfying, but it can be programmatically adjusted instead of attempting a retry or a remprompt, both implying a costly, time consuming and less reliable new interaction with the LLM. For instance it is quite common that an LLM produces the json of the data object that it is required to extract from the user prompt, but appends to it some unwanted explanation of why it generated that result, making the json unparsable, something like
514+
It may happen that the output generated by the LLM is not completely satisfying, but it can be programmatically adjusted instead of attempting a retry or a reprompt, both implying a costly, time consuming and less reliable new interaction with the LLM. For instance, it is quite common that an LLM produces the json of the data object that it is required to extract from the user prompt, but appends to it some unwanted explanation of why it generated that result, making the json unparsable, something like
515515

516516
[source]
517517
----

docs/modules/ROOT/pages/includes/quarkus-langchain4j-watsonx.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ a| [[quarkus-langchain4j-watsonx_quarkus-langchain4j-watsonx-chat-model-temperat
420420

421421
[.description]
422422
--
423-
What sampling temperature to use,. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
423+
What sampling temperature to use. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
424424

425425
We generally recommend altering this or `top_p` but not both.
426426

@@ -1332,7 +1332,7 @@ a| [[quarkus-langchain4j-watsonx_quarkus-langchain4j-watsonx-model-name-chat-mod
13321332

13331333
[.description]
13341334
--
1335-
What sampling temperature to use,. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
1335+
What sampling temperature to use. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
13361336

13371337
We generally recommend altering this or `top_p` but not both.
13381338

docs/modules/ROOT/pages/includes/quarkus-langchain4j-watsonx_quarkus.langchain4j.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ a| [[quarkus-langchain4j-watsonx_quarkus-langchain4j-watsonx-chat-model-temperat
420420

421421
[.description]
422422
--
423-
What sampling temperature to use,. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
423+
What sampling temperature to use. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
424424

425425
We generally recommend altering this or `top_p` but not both.
426426

@@ -1332,7 +1332,7 @@ a| [[quarkus-langchain4j-watsonx_quarkus-langchain4j-watsonx-model-name-chat-mod
13321332

13331333
[.description]
13341334
--
1335-
What sampling temperature to use,. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
1335+
What sampling temperature to use. Higher values like `0.8` will make the output more random, while lower values like `0.2` will make it more focused and deterministic.
13361336

13371337
We generally recommend altering this or `top_p` but not both.
13381338

docs/modules/ROOT/pages/web-search.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WebSearchEngine engine;
1313

1414
and then use it by calling its `search` method.
1515

16-
If you want to let an chat model use web search by itself, there are
16+
If you want to let a chat model use web search by itself, there are
1717
generally two recommended ways to accomplish this: either by implementing a
1818
tool that uses it, or as a content retriever inside a RAG pipeline. The
1919
https://github.com/quarkiverse/quarkus-langchain4j/tree/main/samples/chatbot-web-search[chatbot-web-search]

model-providers/watsonx/runtime/src/main/java/io/quarkiverse/langchain4j/watsonx/runtime/config/ChatModelConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public interface ChatModelConfig {
7070
Double presencePenalty();
7171

7272
/**
73-
* What sampling temperature to use,. Higher values like <code>0.8</code> will make the output more random, while lower
73+
* What sampling temperature to use. Higher values like <code>0.8</code> will make the output more random, while lower
7474
* values
7575
* like <code>0.2</code> will make it more focused and deterministic.
7676
* <p>

0 commit comments

Comments
 (0)