Create Insight Generation Feature
Added integration with Messages API and Ollama
This commit is contained in:
11
migrations/2025-12-31-000000_add_ai_insights/up.sql
Normal file
11
migrations/2025-12-31-000000_add_ai_insights/up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- AI-generated insights for individual photos
|
||||
CREATE TABLE IF NOT EXISTS photo_insights (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
file_path TEXT NOT NULL UNIQUE, -- Full path to the photo
|
||||
title TEXT NOT NULL, -- "At the beach with Sarah"
|
||||
summary TEXT NOT NULL, -- 2-3 sentence description
|
||||
generated_at BIGINT NOT NULL,
|
||||
model_version TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_photo_insights_path ON photo_insights(file_path);
|
||||
Reference in New Issue
Block a user