diff --git a/.github/workflows/pgvector-langchain4j.yml b/.github/workflows/pgvector-langchain4j.yml index 50bb843..76f5d2e 100644 --- a/.github/workflows/pgvector-langchain4j.yml +++ b/.github/workflows/pgvector-langchain4j.yml @@ -3,11 +3,11 @@ name: pgvector-langchain4j CI Build on: push: paths: - - "pgvector-langchain4j/**" + - "embeddingstores/pgvector-langchain4j/**" branches: [main] pull_request: paths: - - "pgvector-langchain4j/**" + - "embeddingstores/pgvector-langchain4j/**" types: - opened - synchronize @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: pgvector-langchain4j + working-directory: embeddingstores/pgvector-langchain4j strategy: matrix: distribution: [ 'temurin' ] diff --git a/.github/workflows/pgvector-springai.yml b/.github/workflows/pgvector-springai.yml index 9c80954..753a501 100644 --- a/.github/workflows/pgvector-springai.yml +++ b/.github/workflows/pgvector-springai.yml @@ -3,11 +3,11 @@ name: pgvector-springai CI Build on: push: paths: - - "pgvector-springai/**" + - "embeddingstores/pgvector-springai/**" branches: [main] pull_request: paths: - - "pgvector-springai/**" + - "embeddingstores/pgvector-springai/**" types: - opened - synchronize @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: pgvector-springai + working-directory: embeddingstores/pgvector-springai strategy: matrix: distribution: [ 'temurin' ] diff --git a/README.md b/README.md index dc68c31..27c6432 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ AI implementations using java, stores and either of Langchain4j or springai fram |---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------| | [playground](./playground) | AI playground using Langchain4j | | [chatmodel springai](./chatmodel-springai) | AI chat playground using springai | -| [pgvector lanchain4j](./pgvector-langchain4j) | Embeddings implementation using langchain4j and pgvector | -| [pgvector springai](./pgvector-springai) | Embeddings implementation using springai and pgvector | +| [pgvector lanchain4j](./embeddingstores/pgvector-langchain4j) | Embeddings implementation using langchain4j and pgvector | +| [pgvector springai](./embeddingstores/pgvector-springai) | Embeddings implementation using springai and pgvector | | [neo4j embedding Store using spring ai](./embeddingstores/neo4j-springai) | Embedding store implementation using springai and neo4j | | [opensearch langchain4j](./ai-opensearch-langchain4j) | Embeddings implementation using langchain4j and opensearch store | | [rag langchain4j AllMiniLmL6V2](./rag/rag-langchain4j-AllMiniLmL6V2-llm) | RAG Implementation using Langchain4j, PGVector store and allMiniLmL6V2 LLM | diff --git a/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.jar b/embeddingstores/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.jar similarity index 100% rename from pgvector-langchain4j/.mvn/wrapper/maven-wrapper.jar rename to embeddingstores/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.jar diff --git a/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.properties b/embeddingstores/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.properties similarity index 100% rename from pgvector-langchain4j/.mvn/wrapper/maven-wrapper.properties rename to embeddingstores/pgvector-langchain4j/.mvn/wrapper/maven-wrapper.properties diff --git a/pgvector-langchain4j/docker/docker-compose.yml b/embeddingstores/pgvector-langchain4j/docker/docker-compose.yml similarity index 100% rename from pgvector-langchain4j/docker/docker-compose.yml rename to embeddingstores/pgvector-langchain4j/docker/docker-compose.yml diff --git a/pgvector-langchain4j/docker/docker_pgadmin_servers.json b/embeddingstores/pgvector-langchain4j/docker/docker_pgadmin_servers.json similarity index 100% rename from pgvector-langchain4j/docker/docker_pgadmin_servers.json rename to embeddingstores/pgvector-langchain4j/docker/docker_pgadmin_servers.json diff --git a/pgvector-langchain4j/mvnw b/embeddingstores/pgvector-langchain4j/mvnw similarity index 100% rename from pgvector-langchain4j/mvnw rename to embeddingstores/pgvector-langchain4j/mvnw diff --git a/pgvector-langchain4j/mvnw.cmd b/embeddingstores/pgvector-langchain4j/mvnw.cmd similarity index 100% rename from pgvector-langchain4j/mvnw.cmd rename to embeddingstores/pgvector-langchain4j/mvnw.cmd diff --git a/pgvector-langchain4j/pom.xml b/embeddingstores/pgvector-langchain4j/pom.xml similarity index 100% rename from pgvector-langchain4j/pom.xml rename to embeddingstores/pgvector-langchain4j/pom.xml diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/config/Initializer.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/Initializer.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/config/Initializer.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/Initializer.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/config/LangChainConfig.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/LangChainConfig.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/config/LangChainConfig.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/LangChainConfig.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/config/SwaggerConfig.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/SwaggerConfig.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/config/SwaggerConfig.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/config/SwaggerConfig.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/controller/QueryController.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/controller/QueryController.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/controller/QueryController.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/controller/QueryController.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/domain/response/AIChatResponse.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/domain/response/AIChatResponse.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/domain/response/AIChatResponse.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/domain/response/AIChatResponse.java diff --git a/pgvector-langchain4j/src/main/java/com/learning/ai/service/PgVectorStoreService.java b/embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/service/PgVectorStoreService.java similarity index 100% rename from pgvector-langchain4j/src/main/java/com/learning/ai/service/PgVectorStoreService.java rename to embeddingstores/pgvector-langchain4j/src/main/java/com/learning/ai/service/PgVectorStoreService.java diff --git a/pgvector-langchain4j/src/main/resources/application.properties b/embeddingstores/pgvector-langchain4j/src/main/resources/application.properties similarity index 100% rename from pgvector-langchain4j/src/main/resources/application.properties rename to embeddingstores/pgvector-langchain4j/src/main/resources/application.properties diff --git a/pgvector-langchain4j/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java b/embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java similarity index 100% rename from pgvector-langchain4j/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java rename to embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java diff --git a/pgvector-langchain4j/src/test/java/com/learning/ai/config/AbstractIntegrationTest.java b/embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/config/AbstractIntegrationTest.java similarity index 100% rename from pgvector-langchain4j/src/test/java/com/learning/ai/config/AbstractIntegrationTest.java rename to embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/config/AbstractIntegrationTest.java diff --git a/pgvector-langchain4j/src/test/java/com/learning/ai/config/ContainersConfig.java b/embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/config/ContainersConfig.java similarity index 100% rename from pgvector-langchain4j/src/test/java/com/learning/ai/config/ContainersConfig.java rename to embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/config/ContainersConfig.java diff --git a/pgvector-langchain4j/src/test/java/com/learning/ai/controller/TestQueryController.java b/embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/controller/TestQueryController.java similarity index 100% rename from pgvector-langchain4j/src/test/java/com/learning/ai/controller/TestQueryController.java rename to embeddingstores/pgvector-langchain4j/src/test/java/com/learning/ai/controller/TestQueryController.java diff --git a/pgvector-springai/.mvn/wrapper/maven-wrapper.jar b/embeddingstores/pgvector-springai/.mvn/wrapper/maven-wrapper.jar similarity index 100% rename from pgvector-springai/.mvn/wrapper/maven-wrapper.jar rename to embeddingstores/pgvector-springai/.mvn/wrapper/maven-wrapper.jar diff --git a/pgvector-springai/.mvn/wrapper/maven-wrapper.properties b/embeddingstores/pgvector-springai/.mvn/wrapper/maven-wrapper.properties similarity index 100% rename from pgvector-springai/.mvn/wrapper/maven-wrapper.properties rename to embeddingstores/pgvector-springai/.mvn/wrapper/maven-wrapper.properties diff --git a/pgvector-springai/docker/docker-compose.yml b/embeddingstores/pgvector-springai/docker/docker-compose.yml similarity index 100% rename from pgvector-springai/docker/docker-compose.yml rename to embeddingstores/pgvector-springai/docker/docker-compose.yml diff --git a/pgvector-springai/docker/docker_pgadmin_servers.json b/embeddingstores/pgvector-springai/docker/docker_pgadmin_servers.json similarity index 100% rename from pgvector-springai/docker/docker_pgadmin_servers.json rename to embeddingstores/pgvector-springai/docker/docker_pgadmin_servers.json diff --git a/pgvector-springai/mvnw b/embeddingstores/pgvector-springai/mvnw similarity index 100% rename from pgvector-springai/mvnw rename to embeddingstores/pgvector-springai/mvnw diff --git a/pgvector-springai/mvnw.cmd b/embeddingstores/pgvector-springai/mvnw.cmd similarity index 100% rename from pgvector-springai/mvnw.cmd rename to embeddingstores/pgvector-springai/mvnw.cmd diff --git a/pgvector-springai/pom.xml b/embeddingstores/pgvector-springai/pom.xml similarity index 100% rename from pgvector-springai/pom.xml rename to embeddingstores/pgvector-springai/pom.xml diff --git a/pgvector-springai/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/PgVectorEmbeddingStoreExample.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/config/Initializer.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/Initializer.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/config/Initializer.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/Initializer.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/config/ResponseHeadersModification.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/ResponseHeadersModification.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/config/ResponseHeadersModification.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/ResponseHeadersModification.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/config/SwaggerConfig.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/SwaggerConfig.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/config/SwaggerConfig.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/config/SwaggerConfig.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/controller/QueryController.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/controller/QueryController.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/controller/QueryController.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/controller/QueryController.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/model/response/AIChatResponse.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/model/response/AIChatResponse.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/model/response/AIChatResponse.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/model/response/AIChatResponse.java diff --git a/pgvector-springai/src/main/java/com/learning/ai/service/PgVectorStoreService.java b/embeddingstores/pgvector-springai/src/main/java/com/learning/ai/service/PgVectorStoreService.java similarity index 100% rename from pgvector-springai/src/main/java/com/learning/ai/service/PgVectorStoreService.java rename to embeddingstores/pgvector-springai/src/main/java/com/learning/ai/service/PgVectorStoreService.java diff --git a/pgvector-springai/src/main/resources/application-local.properties b/embeddingstores/pgvector-springai/src/main/resources/application-local.properties similarity index 100% rename from pgvector-springai/src/main/resources/application-local.properties rename to embeddingstores/pgvector-springai/src/main/resources/application-local.properties diff --git a/pgvector-springai/src/main/resources/application.properties b/embeddingstores/pgvector-springai/src/main/resources/application.properties similarity index 100% rename from pgvector-springai/src/main/resources/application.properties rename to embeddingstores/pgvector-springai/src/main/resources/application.properties diff --git a/pgvector-springai/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java b/embeddingstores/pgvector-springai/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java similarity index 100% rename from pgvector-springai/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java rename to embeddingstores/pgvector-springai/src/test/java/com/learning/ai/TestPgVectorEmbeddingStoreExample.java diff --git a/pgvector-springai/src/test/java/com/learning/ai/config/ContainersConfig.java b/embeddingstores/pgvector-springai/src/test/java/com/learning/ai/config/ContainersConfig.java similarity index 100% rename from pgvector-springai/src/test/java/com/learning/ai/config/ContainersConfig.java rename to embeddingstores/pgvector-springai/src/test/java/com/learning/ai/config/ContainersConfig.java diff --git a/pgvector-springai/src/test/java/com/learning/ai/controller/QueryControllerTest.java b/embeddingstores/pgvector-springai/src/test/java/com/learning/ai/controller/QueryControllerTest.java similarity index 100% rename from pgvector-springai/src/test/java/com/learning/ai/controller/QueryControllerTest.java rename to embeddingstores/pgvector-springai/src/test/java/com/learning/ai/controller/QueryControllerTest.java