From 9e8766ccb1caf63742cca49b325aa8a3a1e6f414 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 10 Sep 2024 18:04:26 +0200 Subject: [PATCH] comment --- .../src/main/java/co/elastic/clients/rag/article/RagService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/rag-spring-article/src/main/java/co/elastic/clients/rag/article/RagService.java b/examples/rag-spring-article/src/main/java/co/elastic/clients/rag/article/RagService.java index 8b49042cc..73e7a9912 100644 --- a/examples/rag-spring-article/src/main/java/co/elastic/clients/rag/article/RagService.java +++ b/examples/rag-spring-article/src/main/java/co/elastic/clients/rag/article/RagService.java @@ -60,6 +60,7 @@ public RagService(ElasticsearchVectorStore vectorStore, ChatModel model) { public void ingestPDF(String path) throws IOException, TikaException, SAXException { // Initializing the PDF parser + // Keep in mind that AutoDetectParser is not thread safe Parser parser = new AutoDetectParser(); // Using our custom single page handler class PageContentHandler handler = new PageContentHandler();