Hello Nicholas,

> No idea about "AI functionality"...  Yokota, have you reviewed the
> additions related to this?  Some of them are definitely non-free, and
> there is a line between main and contrib (where a package or plugin
> depends on non-free things).  Hypothetically speaking, it might be
> necessary to DFSG-clean these, or ship them as an addon in contrib...or
> they might be fine.
>
> I'll upload the new dependency to backports right now, and will wait to
> hear back about the above before testing and uploading Calibre.

This feature is discussed on upstream pull request:
> feat: Add LLM tab to Lookup panel #2838
> https://github.com/kovidgoyal/calibre/pull/2838

And available since Calibre 8.11.0/8.11.1.
See changelog:
> Release: 8.11.1 [26 Sep, 2025]
> New features
> E-book viewer: Add an "Ask AI" tab to the dictionary lookup panel. Allows you 
> to query AI about the currently selected text.
> Supports hundreds of AI models via Providers such as Google, OpenRouter, 
> GitHub and locally running models via Ollama. Many of them can be used free 
> of charge. Note that this feature is completely optional and no AI related 
> code is even loaded until you configure an AI provider.

This LLM feature will connect to some LLM AI like Google AI and ask
user's questions to the AI.
This feature requires each AI's API key and connect them with this key.
You must acquire API key before use this feature.

This feature is fully network based, so there is no needs extra
programs but needs API key.
You can select your AI from:
* GitHub AI
* Google AI
* Ollama AI
* Open Router

Ollama AI will works your local machine, so we needs to make new
Debian package if you wants Ollama AI.
> https://github.com/ollama/ollama

If you already have API key and setup it for Calibre, you can use AI
with this methods:
1. Open some e-Book
2. Select words from e-Book text
3. Choose "Lookup/search selected word [L]" from selection menu and
opens "Lookup" panel
4. Select "Ask AI" tab in the panel
5. Ask to AI about your questions from the panel

You can examine this feature in upstream from here:
> feat: Add LLM tab to Lookup panel
> https://github.com/kovidgoyal/calibre/commit/81ca2101f8bf87710e5642372e81e56b45f22cf2
> https://github.com/kovidgoyal/calibre/tree/llm



PS:
Kobo driver was updated since Calibre 8.5.0 several times like:
> https://github.com/kovidgoyal/calibre/pull/2896

--
YOKOTA Hiroshi

Reply via email to