~/talk

Using Gemini LLM from Java with LangChain4j

Talkat jPrime 2024 · 2024-05-28..05-29· [large-language-models, java]
slides:none on file

Shows Java code using Vertex AI + LangChain4j to run Gemini 1.5 Flash (multimodal, 1M‑token context) and an open variant locally. Demos include hello‑world and streaming responses, chat memory (keeps last 20 messages), image captioning, structured extraction into typed objects, prompt templates and few‑shot sentiment, RAG over a PDF using text-embedding-gecko with an in‑memory vector store, and function/multi‑tool calling. Also runs Gemma via testcontainers locally. All examples compile and run in the presenter’s demo environment.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:34AI landscape and Google's LLMs
  3. 13:32Java integration with LLMs
  4. 16:00Hello World with Gemini
  5. 17:23Streaming responses
  6. 18:47Chat memory and conversation
  7. 22:18Multimodal capabilities
  8. 24:06Data extraction from text
  9. 27:36Prompt templates
  10. 30:27Text classification
  11. 30:48Retrieval Augmented Generation
  12. 38:43Function calling basics
  13. 42:16Advanced function calling
  14. 44:24Multi-function calling
  15. 46:06Running Gemma locally
  16. 49:21Q&A and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.