You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an Ollama user, I would like to generate captions directly through the Ollama service API, so that I don't need to set up a dedicated PhotoPrism Vision API service if I don't need it otherwise.
Below is an example of the required vision.yml model configuration from our Developer Guide :
Models:
- Type: labelsDefault: true
- Type: nsfwDefault: true
- Type: faceDefault: true
- Type: captionName: gemma3Version: latestPrompt: Create a caption with exactly one sentence in the active voice that describesthe main visual content. Begin with the main subject and clear action. Avoid textformatting, meta-language, and filler words.Resolution: 720Options:
Temperature: 0.1Service:
# Ollama API endpoint (adjust as needed):Uri: http://ollama:11434/api/generateFileScheme: base64RequestFormat: ollamaResponseFormat: ollamaThresholds:
Confidence: 10
The request and response handling should be refactored eventually for better maintainability. Other than that, these changes seem to work, so now both the PhotoPrism Vision API and the Ollama API request and response formats are supported. An updated preview build will be available for testing soon!
Activity
AI: Generate captions using the Ollama API #5011 #5123
lastzero commentedon Jul 21, 2025
The request and response handling should be refactored eventually for better maintainability. Other than that, these changes seem to work, so now both the PhotoPrism Vision API and the Ollama API request and response formats are supported. An updated preview build will be available for testing soon!
AI: Use defaults when returning classify label from response #5011 #5123
Index: Improve generation, caching and logging of labels #5011 #5123
Setup: Update compose.yaml examples and add ollama service #5123
Setup: Update compose.yaml config examples #5123
16 remaining items
AI: Use "gemma3" as default caption model #5123
Setup: Update Ollama service examples in compose.yaml files #5123
AI: Add "photoprism vision sources" CLI command #5123
AI: Update compose.yaml config examples #5123
lastzero commentedon Sep 2, 2025
Our Developer Guide now includes a comparison of Ollama vision models:
The setup instructions have also been refined to make configuration easier.
AI: Add internal/ai/vision/ollama/README.md #5322 #5123 #5232
AI: Link engine docs in AGENTS.md and CODEMAP.md files #5322 #5123 #5232
AI: Add schema/README.md as labels schema reference #5322 #5123 #5232
AI: Read Qwen3-VL Ollama model response from Thinking field #5123 #5232
AI: Update internal/ai/vision/ollama/README.md #5123 #5232
AI: Improve model configuration and documentation #5123 #5232 #5322