Building Your Own Private GenAI Chatbot With Java Tools – A Step-by-Step Adventure
summary
Argument: Java can build a private GenAI chatbot that keeps company data off external servers by combining OpenAI LLMs via a Java wrapper, embeddings, and a vector database. Tools used: Theo’s Java client to call OpenAI, babbage-002 for cheap tests, cosine similarity over 1,536‑dim embedding vectors, Milvus-style vector storage and sentence chunking. Surprises: the ecosystem lists about 500,000 models. Built system ingests URLs/PDFs/MP3 transcripts, runs RAG retrieval, and the prototype demos work though latency and context-window limits require tuning.
AI-written summary · about
chapters (19)
- 0:00Introduction to AI
- 1:00Patterns and AI basics
- 4:45Predictive vs Generative AI
- 6:28Understanding Neural Networks
- 8:47The Transformer Revolution
- 11:04What are Language Models?
- 13:28Prompt Engineering Concepts
- 15:37Interacting with LLM APIs
- 17:58Prompt Techniques
- 20:51Context and Windows
- 24:25OpenAI Service Examples
- 28:00Java Client for OpenAI
- 31:23Building Chatbot State
- 33:25Data Security and RAG
- 35:27RAG Architecture
- 39:21Embeddings and Vectors
- 42:56Similarity Calculations
- 45:07Vector Databases and Demos
- 50:53Final Demos and Q&A
related talks
02h 44mUsing Generative AI with Java: Beyond Simple Chatbots
52mAI for Busy Java Developers
55mAI in Java? Meet LangChain4j and Build Intelligent Services
01h 02mBuilding full stack AI chatbots with Java - livecoding
46mGenerative AI and Java
48mBuilding AI Powered Applications with Java
55m"You can't use AI directly in Java!" Hold my prompt...
01h 00mCalling AI Tools from Java
