fix error message version (#167)

sorry I make a mistake, I forgot change the version in Error Message
when no `langchain4j-elasticsearch` dependency was found.
This commit is contained in:
ZYinNJU 2023-09-14 23:02:45 +08:00 committed by GitHub
parent 70c6965f74
commit cb6bc141d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,10 +44,10 @@ public class ElasticsearchEmbeddingStore implements EmbeddingStore<TextSegment>
+ "<dependency>\n" +
" <groupId>dev.langchain4j</groupId>\n" +
" <artifactId>langchain4j-elasticsearch</artifactId>\n" +
" <version>0.20.0</version>\n" +
" <version>0.22.0</version>\n" +
"</dependency>\n\n"
+ "Gradle:\n"
+ "implementation 'dev.langchain4j:langchain4j-elasticsearch:0.20.0'\n";
+ "implementation 'dev.langchain4j:langchain4j-elasticsearch:0.22.0'\n";
}
private static EmbeddingStore<TextSegment> loadDynamically(String implementationClassName, String serverUrl, String username, String password, String apiKey, String indexName) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {