A suggestion for the AI interface #12191
Replies: 1 comment
|
Not at the moment, and the "Failed" message comes from how the attachment tool works rather than from your Gemini setup. When the model follows an image in a note, it calls the So the tool never passes the pixels to Gemini. Only images you attach to the chat message itself, by pasting or with the paperclip button, are sent as real image data. That is why your screenshot worked. The User Guide says the same in the AI page: "Currently Trilium doesn't pre-process the attachments (e.g. via Text Extraction (OCR)) before sending them to the LLM provider." ( Trilium/docs/User Guide/User Guide/AI.md Lines 229 to 232 in 67de869 Two things you can do today:
Having the tools send an image from a note to a vision model, so that "@floorplan" just works, is not implemented in the code I checked. It would need a new feature, so it is worth opening as a feature request. (I looked this up in the code with help from an AI assistant; the links are to the lines I checked.) |
Uh oh!
There was an error while loading. Please reload this page.
I bit the bullet and got a Gemini API key. It works! It didn't until I switched to a paid plan - it complained that I'd used up my quota, so I'm experimenting to see what this costs me per month, but it's probably worth it.
In experimenting with it, I found that it does look in sub-notes when I reference a specific note, and it told me that I could create a "dossier" note with my personal info so I wouldn't have to keep telling it things like where I live and what equipment I'm using, so I'll do that.
But what I found is that it doesn't understand images embedded in documents. It knows about them, but it says "Read Attachment Content: Failed". I screen-shot the image and pasted it into the prompt field and it understood it.
Is there a way to make this work with notes containing images? It would be seriously useful - I have several floor plan and property line diagrams that I often feed Gemini to analyze things, and being able to just say "@floorplan" instead of finding a file somewhere would be super useful.
All reactions