Skip to content

Commit 236e26c

Browse files
committed
Proofreading last tutorial
1 parent d46e362 commit 236e26c

File tree

1 file changed

+9
-9
lines changed
  • pages/public_cloud/ai_machine_learning/endpoints_tuto_12_rag_chatbot_langchain4j

1 file changed

+9
-9
lines changed

pages/public_cloud/ai_machine_learning/endpoints_tuto_12_rag_chatbot_langchain4j/guide.en-gb.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: AI Endpoints - Build a RAG Chatbot with LangChain4j
3-
excerpt: Learn how to build a RAG (Retrieval Augmented Generation) chatbot using Python, LangChain4j, and AI Endpoints
3+
excerpt: Learn how to build a RAG (Retrieval Augmented Generation) chatbot using Python, LangChain4j and AI Endpoints
44
updated: 2025-04-18
55
---
66

@@ -59,9 +59,9 @@ export DATABASE_USER=your-pgvector-user
5959
export DATABASE_PASSWORD=your-pgvector-password
6060
```
6161

62-
However, this step is optional. indeed, if you are just testing or don’t have a PostgreSQL database available, LangChain4j also supports an in-memory embedding store. This makes it easy to get started without setting up any external infrastructure.
62+
However, this step is optional. Indeed, if you are just testing or don’t have a PostgreSQL database available, LangChain4j also supports an in-memory embedding store. This makes it easy to get started without setting up any external infrastructure.
6363

64-
To use the in-memory store, you will just need to replace the embedding store configuration in the code we are going to write later:
64+
To use the in-memory store, you will just need to replace the embedding store configuration in the code we are going to write later:
6565

6666
```java
6767
EmbeddingStore<TextSegment> embeddingStore = new InMemoryEmbeddingStore<>();
@@ -171,15 +171,15 @@ public class RAGStreamingChatbot {
171171
}
172172
```
173173

174-
Note that the chatbot will use the streaming mode, as explain in the [Memory Chatbot with LangChain4j](/pages/public_cloud/ai_machine_learning/endpoints_tuto_10_memory_chatbot_langchain4j) tutorial.
174+
Note that the chatbot will use the streaming mode, as explained in the [Memory Chatbot with LangChain4j](/pages/public_cloud/ai_machine_learning/endpoints_tuto_10_memory_chatbot_langchain4j) tutorial.
175175

176176
### Test the chatbot without knowledge base
177177

178-
As you can see below, the LLM gives an answer, but not the expected one 😅.
178+
As you can see below, the LLM gives an answer, but not the expected one.
179179

180180
![chatbot-without-rag](images/without-rag.png){.thumbnail}
181181

182-
This is not a surprise, since the model was trained before OVHcloud created AI Endpoints. The model does not this platform.
182+
This is not a surprise, since the model was trained before OVHcloud created AI Endpoints. The model does not know this platform.
183183

184184
That is why we are going to create a knowledge base, to improve the LLM's answers.
185185

@@ -193,7 +193,7 @@ You can find an example file in our [public-cloud-examples GitHub repository](ht
193193

194194
To do this, we are going to create chunks from our document. A chunk is a part of the document that will be transformed in vector.
195195

196-
It’s then used to perform a similarity search. This is a delicate phase, and in this example, the chunking is based on the number of characters. In a more complex use case, you will create chunk based on the meaning of the text.
196+
It’s then used to perform a similarity search. This is a delicate phase, and in this example, the chunking is based on the number of characters. In a more complex use case, you will create chunks based on the meaning of the text.
197197

198198
```java
199199
public class RAGStreamingChatbot {
@@ -217,7 +217,7 @@ public class RAGStreamingChatbot {
217217

218218
Next, you transform the text in vectors and store them.
219219

220-
If you do not have a PostgreSQL manage instance, you can use the in-memory store as mentioned earlier (only for test purpose).
220+
If you do not have a PostgreSQL managed instance, you can use the in-memory store as mentioned earlier (only for test purposes).
221221

222222
```java
223223
public class RAGStreamingChatbot {
@@ -393,7 +393,7 @@ Thanks to your knowledge base, our new chatbot will answer with relevant informa
393393

394394
## Conclusion
395395

396-
You've now created a Retrieval-Augmented Generation (RAG) chatbot using your own documents and the OVHcloud AI Endpoints platform. LangChain’s integration with Chroma and embedding models makes RAG implementation straightforwardeven production-ready.
396+
You've now created a Retrieval-Augmented Generation (RAG) chatbot using your own documents and the OVHcloud AI Endpoints platform. LangChain’s integration with Chroma and embedding models makes RAG implementation straightforward and even production-ready.
397397

398398
## Going further
399399

0 commit comments

Comments
 (0)