From e1e664f36ddd02371094d20ba4091709deb35c93 Mon Sep 17 00:00:00 2001 From: Rd4dev Date: Sat, 13 Jun 2026 13:39:57 +0530 Subject: [PATCH 1/5] RAG implementation for ai assistance This is going to be the first of the iterations to getting in touch with how we can query on local documents to have better responses, and this for now runs on the local ollama model - which is slow but those are considerations for later to optimize or move to cloud. While the current focus will lie on the feature implementation and making / extending it to be accurate for various needs --- .idea/compiler.xml | 10 + .idea/encodings.xml | 1 + .idea/misc.xml | 1 + ai-rag-service/.gitattributes | 2 + ai-rag-service/.gitignore | 33 ++ .../.mvn/wrapper/maven-wrapper.properties | 3 + ai-rag-service/mvnw | 295 ++++++++++++++++++ ai-rag-service/mvnw.cmd | 189 +++++++++++ ai-rag-service/pom.xml | 119 +++++++ .../airagservice/AiRagServiceApplication.java | 13 + .../controller/AssistantController.java | 23 ++ .../com/mert/airagservice/dto/AskRequest.java | 3 + .../src/main/resources/application.properties | 5 + .../AiRagServiceApplicationTests.java | 13 + 14 files changed, 710 insertions(+) create mode 100644 ai-rag-service/.gitattributes create mode 100644 ai-rag-service/.gitignore create mode 100644 ai-rag-service/.mvn/wrapper/maven-wrapper.properties create mode 100755 ai-rag-service/mvnw create mode 100644 ai-rag-service/mvnw.cmd create mode 100644 ai-rag-service/pom.xml create mode 100644 ai-rag-service/src/main/java/com/mert/airagservice/AiRagServiceApplication.java create mode 100644 ai-rag-service/src/main/java/com/mert/airagservice/controller/AssistantController.java create mode 100644 ai-rag-service/src/main/java/com/mert/airagservice/dto/AskRequest.java create mode 100644 ai-rag-service/src/main/resources/application.properties create mode 100644 ai-rag-service/src/test/java/com/mert/airagservice/AiRagServiceApplicationTests.java diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 5acd985..f0ad813 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -10,10 +10,20 @@ + + + + + + + + +