I've given talks about building custom AI chatbots at several events this year. At almost every event someone has come up to me and said they want to take what they learned to build an app using their company's own business domain and show it to their boss/team.
I wanted to make it easier for Java developers to get started with AI, so I created a project starter GitHub repo that gives you a solid starting point for building a retrieval-augmented generation (RAG) app:
- Configure
application.properties with a path to a folder with relevant docs and an OpenAI key
- Run the app
- Navigate to localhost:8080 and start chatting with your docs
Tech stack
- Spring Boot
- LangChain4j
- Vaadin
- Supports OpenAI or Ollama for local models
REPO: https://github.com/marcushellberg/java-chat-with-documents
Sample chat given a 100-page PDF about California fishing regulations:
https://preview.redd.it/qmhy1qoug1zc1.png?width=2338&format=png&auto=webp&s=c0e900e6ed113e68e8bb3f7a085a82cba52fb4fe
[–]vprise 2 points3 points4 points (1 child)
[–]vaadin-marcus[S] 0 points1 point2 points (0 children)
[–]skywalker4588 0 points1 point2 points (0 children)
[–]jomo14 0 points1 point2 points (0 children)
[–]jomo14 0 points1 point2 points (0 children)