├── .gitignore ├── .mvn └── wrapper │ └── maven-wrapper.properties ├── LICENSE ├── README.md ├── docker-compose.yml ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── kotlin │ └── springrod │ │ └── localrag │ │ ├── ChatConfiguration.kt │ │ ├── ChatController.kt │ │ ├── ChatService.kt │ │ ├── ConversationSession.kt │ │ ├── LocalRagApplication.kt │ │ ├── UploadController.kt │ │ └── advisors │ │ ├── CaptureMemoryAdvisor.kt │ │ └── NoteMentionsAdvisor.kt └── resources │ ├── application.properties │ ├── prompts │ ├── capture_memory.md │ ├── hemingway_system.md │ ├── obedient_system.md │ └── pretentious_system.md │ ├── static │ └── css │ │ └── dark-mode.css │ └── templates │ ├── fragments.html │ └── messages.html └── test └── kotlin └── springrod └── localrag ├── ChatServiceTest.kt └── LocalragApplicationTests.kt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/ChatConfiguration.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/ChatConfiguration.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/ChatController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/ChatController.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/ChatService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/ChatService.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/ConversationSession.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/ConversationSession.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/LocalRagApplication.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/LocalRagApplication.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/UploadController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/UploadController.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/advisors/CaptureMemoryAdvisor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/advisors/CaptureMemoryAdvisor.kt -------------------------------------------------------------------------------- /src/main/kotlin/springrod/localrag/advisors/NoteMentionsAdvisor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/kotlin/springrod/localrag/advisors/NoteMentionsAdvisor.kt -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/prompts/capture_memory.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/prompts/capture_memory.md -------------------------------------------------------------------------------- /src/main/resources/prompts/hemingway_system.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/prompts/hemingway_system.md -------------------------------------------------------------------------------- /src/main/resources/prompts/obedient_system.md: -------------------------------------------------------------------------------- 1 | You are a helpful assistant. 2 | 3 | {directions} -------------------------------------------------------------------------------- /src/main/resources/prompts/pretentious_system.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/prompts/pretentious_system.md -------------------------------------------------------------------------------- /src/main/resources/static/css/dark-mode.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/static/css/dark-mode.css -------------------------------------------------------------------------------- /src/main/resources/templates/fragments.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/templates/fragments.html -------------------------------------------------------------------------------- /src/main/resources/templates/messages.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/main/resources/templates/messages.html -------------------------------------------------------------------------------- /src/test/kotlin/springrod/localrag/ChatServiceTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/test/kotlin/springrod/localrag/ChatServiceTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/springrod/localrag/LocalragApplicationTests.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnsonr/instrumented-rag/HEAD/src/test/kotlin/springrod/localrag/LocalragApplicationTests.kt --------------------------------------------------------------------------------