Welcome!
This repo is for students taking the O'Reilly course GenAI for Busy Java Developers.
- Fundamentals of Machine Learning and Artificial Intelligence
- Connecting to LLMs
- LangChain4j: a Java-first library for LLM applications
- Prompt techniques
- The critical importance of context
- Chatbot architecture
- The value of embeddings and similarity
- Basic RAG architecture
- Java 17+
- IDE - we will use Intellij IDEA, but any IDE will work
- LangChain4j
- An API key from a GenAI provider
- Access to the code and resources repo
Got an idea or improvement?
Open a pull request or file an issue.
- Fixes and improvements to examples or documentation
- New examples that showcase GenAI use cases in Java
- Questions, feedback, and suggestions
% cd your-primary-src-directory
% git clone https://github.com/fgreco55/GenAIForBusyJavaDevelopers.git
% cd GenAIForBusyJavaDevelopersMany of these examples utilize an external GenAI vendor such as OpenAI, Google, Anthropic, etc. When you use these services, you are sending your prompts and related context to that vendor. Be careful of what information you send to these vendors, as they may store your information on their servers and potentially use your data to train their GenAI models. Many serious enterprises install GenAI LLMs on their machines (laptops, desktops, internal/private clouds) to avoid this serious concern.
I would suggest investigating Ollama, which is an open-source tool that simplifies installing local GenAI models.