From 013ab8b08da48605b175ff717772b4b913589531 Mon Sep 17 00:00:00 2001 From: the-gigi Date: Sat, 10 Feb 2024 20:49:48 -0800 Subject: [PATCH] more fixes --- ...n-search-of-the-best-openai-java-client.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/posts/2024/02/in-search-of-the-best-openai-java-client.md b/content/posts/2024/02/in-search-of-the-best-openai-java-client.md index 2676b94..6e8aaee 100644 --- a/content/posts/2024/02/in-search-of-the-best-openai-java-client.md +++ b/content/posts/2024/02/in-search-of-the-best-openai-java-client.md @@ -237,17 +237,17 @@ I'll keep you posted... Let's move on to another library. -### 🦜 LangChain4J 🦜 +### 🦜 langchain4j 🦜 -[Langchain4J](https://github.com/langchain4j) is a large with a massive -scope to integrate AI and LLM capabilities into Java applications. -It is inspired by the well-known [Langchain](https://github.com/langchain-ai/langchain) +The [langchain4j](https://github.com/langchain4j) is a large with a +massive scope to integrate AI and LLM capabilities into Java +applications. It is inspired by the well-known [langchain](https://github.com/langchain-ai/langchain) project as well as [Heystack](https://github.com/deepset-ai/haystack) and [LlamaIndex](https://github.com/run-llama/llama_index). It has a unique approach where it introduces a magical abstraction -called an AI Service, which is just a plain interface. -You define and Langchain4J figures out what you want. For chat +called an AI Service, which is just a plain interface. You define +an interface, and Langchain4J figures out what you want. For chat completion functionality, it is as simple as: ``` @@ -265,8 +265,8 @@ interface Assistant { } ``` -You create a client that can talk to an OPenAI provider and instantiate -an assistant (with tools if you want): +Then, You create a client that can talk to an OpenAI provider and +instantiate an assistant (with tools if you want): ``` var client = OpenAiChatModel.builder() @@ -282,9 +282,9 @@ an assistant (with tools if you want): .build(); ``` -That's all. Now to have the assistant perform chat completions including -function calls you just call the assistant's -chat() method with your prompt. +That's all. Now, to have the assistant perform chat completions +including function calls, you just call the assistant's +`chat()` method with your prompt. ``` @Override