Ollama4j is an open-source Java library designed to integrate Java applications with Ollama, a local LLM manager and runner. It allows developers to execute large language models (LLMs) locally using both CPU and GPU modes. Key capabilities include:
- Model Management: APIs for listing, pulling, deleting, and creating custom models.
- LLM Interaction: Synchronous and asynchronous APIs for generating completions (asking questions).
- Multimodal Support: Ability to send questions accompanied by image files or image URLs.