From 0 to H AI ro: Unlock the power of generative AI with Kotlin, LangChain4j and Spring AI
summary
Shows concrete code and running choices: Kotlin + LangChain4j and Spring AI, Postgres vector extension for storage, Kotlin notebooks for live prototyping, streaming LLM responses and text‑to‑speech. Demonstrates RAG with 512‑dim embeddings, HNSW index and cosine similarity, using 512‑dim embeddings and HNSW index to retrieve context and a 0.7 similarity cutoff to filter results. Builds an agent that invokes an order service and returns delivery minutes; the demo alpha works end‑to‑end but lacks production guardrails.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:42AI in software development
- 1:38Challenges and limitations
- 2:25LLM foundations
- 3:13Developer tools and LLMs
- 8:23The strawberry challenge
- 9:55Frameworks for AI
- 12:29Coding and streaming
- 13:58Structured outputs
- 17:04Business use cases
- 18:09RAG and embeddings
- 26:02Vector databases
- 31:20Implementing RAG
- 36:40Chat and history
- 38:44Agentic AI
- 41:31Tool integration
- 43:36Multimodal interaction
- 44:53Project wrap-up
- 46:41Final comparison
