From 575222002bef8685cae95f4413a6fe7de0fce7a9 Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Sun, 27 Oct 2024 00:02:42 +0200 Subject: [PATCH] Update RAG docs and naming --- 09-rag/rag-naive/README.md | 2 +- .../thomasvitale/ai/spring/{RagBasic.java => RagNaive.java} | 4 ++-- .../ai/spring/{RagBasicTests.java => RagNaiveTests.java} | 2 +- .../ai/spring/{TestRagBasic.java => TestRagNaive.java} | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename 09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/{RagBasic.java => RagNaive.java} (75%) rename 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/{RagBasicTests.java => RagNaiveTests.java} (91%) rename 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/{TestRagBasic.java => TestRagNaive.java} (65%) diff --git a/09-rag/rag-naive/README.md b/09-rag/rag-naive/README.md index 79f7add..0b5b3b0 100644 --- a/09-rag/rag-naive/README.md +++ b/09-rag/rag-naive/README.md @@ -1,4 +1,4 @@ -# Retrieval Augmented Generation (RAG): Basic +# Retrieval Augmented Generation (RAG): Naive Ask questions about documents with LLMs via Ollama and PGVector. diff --git a/09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagBasic.java b/09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagNaive.java similarity index 75% rename from 09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagBasic.java rename to 09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagNaive.java index d2a6e50..5fc1489 100644 --- a/09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagBasic.java +++ b/09-rag/rag-naive/src/main/java/com/thomasvitale/ai/spring/RagNaive.java @@ -4,10 +4,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication -public class RagBasic { +public class RagNaive { public static void main(String[] args) { - SpringApplication.run(RagBasic.class, args); + SpringApplication.run(RagNaive.class, args); } } diff --git a/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagBasicTests.java b/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagNaiveTests.java similarity index 91% rename from 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagBasicTests.java rename to 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagNaiveTests.java index 5557367..b04aee6 100644 --- a/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagBasicTests.java +++ b/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/RagNaiveTests.java @@ -6,7 +6,7 @@ @SpringBootTest @Disabled -class RagBasicTests { +class RagNaiveTests { @Test void contextLoads() { diff --git a/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagBasic.java b/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagNaive.java similarity index 65% rename from 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagBasic.java rename to 09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagNaive.java index e7a84fc..8d820ad 100644 --- a/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagBasic.java +++ b/09-rag/rag-naive/src/test/java/com/thomasvitale/ai/spring/TestRagNaive.java @@ -2,10 +2,10 @@ import org.springframework.boot.SpringApplication; -public class TestRagBasic { +public class TestRagNaive { public static void main(String[] args) { - SpringApplication.from(RagBasic::main).with(TestcontainersConfiguration.class).run(args); + SpringApplication.from(RagNaive::main).with(TestcontainersConfiguration.class).run(args); } }