From a684b2f6be9cb60d6b4f4e5ffb20b2e8b51bbda6 Mon Sep 17 00:00:00 2001
From: Anthony Kugel <32197641+aokugel@users.noreply.github.com>
Date: Fri, 22 Nov 2024 10:14:09 -0600
Subject: [PATCH] added elasticsearch vector db (#7)
* added elasticsearch vector db
* fixed checkstyle errors
---
pom.xml | 5 +
.../ContentRetrieverClientFactory.java | 6 +-
.../ElasticsearchContentRetrieverClient.java | 93 ++++++++++++
.../model/enums/ContentRetrieverType.java | 3 +-
.../ElasticsearchConnectionEntity.java | 137 +++++++++++++++++
.../retriever/BaseRetrieverRequest.java | 3 +-
.../retriever/ElasticsearchRequest.java | 142 ++++++++++++++++++
.../composer/util/mappers/MapperUtil.java | 6 +
.../mappers/RetrieverConnectionMapper.java | 22 ++-
src/main/resources/application.properties | 8 +
10 files changed, 420 insertions(+), 5 deletions(-)
create mode 100644 src/main/java/com/redhat/composer/config/retriever/contentretriever/ElasticsearchContentRetrieverClient.java
create mode 100644 src/main/java/com/redhat/composer/model/mongo/contentretrieverentites/ElasticsearchConnectionEntity.java
create mode 100644 src/main/java/com/redhat/composer/model/request/retriever/ElasticsearchRequest.java
diff --git a/pom.xml b/pom.xml
index ef2db2a..21962a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,6 +67,11 @@
langchain4j-weaviate
${langchain4j.version}
+
+ dev.langchain4j
+ langchain4j-elasticsearch
+ ${langchain4j.version}
+