{"id":29873145,"url":"https://github.com/xkondix/aisandbox-java-spirng","last_synced_at":"2026-04-05T08:34:58.141Z","repository":{"id":300556867,"uuid":"1006467030","full_name":"xkondix/aiSandbox-JAVA-SPIRNG","owner":"xkondix","description":"Spring connection with LLMs","archived":false,"fork":false,"pushed_at":"2025-07-07T20:47:54.000Z","size":2545,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T00:18:49.335Z","etag":null,"topics":["chatmemory","chroma","gemma3","gpt","java","langchain4j","llama3","llm","ollama","rag","redis","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xkondix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T10:40:56.000Z","updated_at":"2025-07-07T20:47:53.000Z","dependencies_parsed_at":"2025-07-08T00:12:06.284Z","dependency_job_id":"cd7b76e9-0705-46d6-8c07-d0aa09f8155d","html_url":"https://github.com/xkondix/aiSandbox-JAVA-SPIRNG","commit_stats":null,"previous_names":["xkondix/aisandbox-java-spirng"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xkondix/aiSandbox-JAVA-SPIRNG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkondix%2FaiSandbox-JAVA-SPIRNG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkondix%2FaiSandbox-JAVA-SPIRNG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkondix%2FaiSandbox-JAVA-SPIRNG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkondix%2FaiSandbox-JAVA-SPIRNG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xkondix","download_url":"https://codeload.github.com/xkondix/aiSandbox-JAVA-SPIRNG/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xkondix%2FaiSandbox-JAVA-SPIRNG/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267951792,"owners_count":24171097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatmemory","chroma","gemma3","gpt","java","langchain4j","llama3","llm","ollama","rag","redis","spring-boot"],"created_at":"2025-07-30T22:16:05.774Z","updated_at":"2025-12-30T21:54:29.547Z","avatar_url":"https://github.com/xkondix.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiSandbox-JAVA-SPIRNG\n\n# 🤖 Local AI Assistant with LangChain4j, Ollama \u0026 Spring Boot\n\nThis project demonstrates how to build a **local AI-powered assistant** using `LangChain4j`, `Spring Boot`, and `Ollama`, enabling tool-calling, Retrieval-Augmented Generation (RAG), chat memory, Redis.\nPostman collection version 2.1 available in assets folder.\n---\n\n## 🔥 Features\n\n- 🧠 **Local LLMs** (e.g., Gemma 3B, LLaMA 3.1 8B) with Ollama\n- 📥 **RAG with ChromaDB**: Local document embedding and retrieval\n- 🧰 **@Tool Integration**: Math calculator, Artist file writer\n- 📚 **Custom metadata injection** for enhanced prompt building\n- 🧾 **Redis-based chat memory**\n---\n\n## 🧠 Local LLM Setup with Ollama\n\nTo run this project locally with large language models:\n\n```bash\ndocker compose up -d\ndocker exec -it ollama bash\nollama pull gemma3:4b \nollama pull llama3.1:8b \n```\n![img.png](assets/img.png)\n\n---\n## Tech Stack\n- **Spring Boot 3.5.3**\n- **JAVA 21**\n- **LangChain4j**\n- **Ollama**: for local models\n- **Redis**: chat memory\n- **Chroma**: document RAG vector DB\n- **Docker Compose**\n\n---\n## Useful pages\n**Github**\n- https://github.com/langchain4j/langchain4j-examples/ `(spring boot)`\n- https://github.com/cescoffier/langchain4j-deep-dive/ `(quarkus)`\n\n**Page**\n- https://docs.langchain4j.dev/ `(official documentation)`\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxkondix%2Faisandbox-java-spirng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxkondix%2Faisandbox-java-spirng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxkondix%2Faisandbox-java-spirng/lists"}