Skip to content

feat(web-app-ai-doc-summary): add AI document summary extension#452

Open
LukasHirt wants to merge 1 commit into
mainfrom
ext/2026-06-15-ai-doc-summarizer-sidebar
Open

feat(web-app-ai-doc-summary): add AI document summary extension#452
LukasHirt wants to merge 1 commit into
mainfrom
ext/2026-06-15-ai-doc-summarizer-sidebar

Conversation

@LukasHirt

Copy link
Copy Markdown
Collaborator

Summary

Introduces a new web extension that summarises PDF, TXT and MD files using any OpenAI-compatible LLM endpoint.

  • Adds a sidebar panel (Summary tab) and a context-menu "Summarise" action for supported file types
  • Accepts endpoint, model and optional API key via application config; probes LLM capabilities (structured output, tool use, streaming, context window) on first use and caches the result
  • Extracts text from PDFs via pdf.js in fake-worker mode to avoid CSP/Web Worker restrictions
  • Generates a 2–3 sentence overview and 3–4 key points; responds in the user's preferred language (BCP 47)
  • Adds unit and E2E test suites covering composables and the full summarise flow
  • Wires an Ollama service into the dev docker-compose stack with a Traefik config for local LLM testing

Screenshots

Snímek obrazovky 2026-06-15 v 22 02 14 Snímek obrazovky 2026-06-15 v 22 02 25 Snímek obrazovky 2026-06-15 v 22 02 30

Introduces a new web extension that summarises PDF, TXT and MD files
using any OpenAI-compatible LLM endpoint.

- Adds a sidebar panel (Summary tab) and a context-menu "Summarise"
  action for supported file types
- Accepts endpoint, model and optional API key via application config;
  probes LLM capabilities (structured output, tool use, streaming,
  context window) on first use and caches the result
- Extracts text from PDFs via pdf.js in fake-worker mode to avoid
  CSP/Web Worker restrictions
- Generates a 2–3 sentence overview and 3–4 key points; responds in
  the user's preferred language (BCP 47)
- Adds unit and E2E test suites covering composables and the full
  summarise flow
- Wires an Ollama service into the dev docker-compose stack with a
  Traefik config for local LLM testing

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt requested a review from dj4oC June 15, 2026 20:03
@LukasHirt LukasHirt self-assigned this Jun 15, 2026
@kw-security

kw-security commented Jun 15, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@LukasHirt

Copy link
Copy Markdown
Collaborator Author

@dj4oC this is the implementation of the first candidate. I am keeping it as a draft for now because we need to merge #443 first.

@dj4oC

dj4oC commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

@dj4oC this is the implementation of the first candidate. I am keeping it as a draft for now because we need to merge #443 first.

Merged

@dj4oC

dj4oC commented Jun 15, 2026

Copy link
Copy Markdown
Contributor
  • please always add all web extensions to ocis_full as well
  • does the deployment include the model?

@LukasHirt LukasHirt marked this pull request as ready for review June 15, 2026 21:42
@LukasHirt

Copy link
Copy Markdown
Collaborator Author
  • please always add all web extensions to ocis_full as well

Sure, once we have a release, I'll add it there.

  • does the deployment include the model?

We can add the ollama into docker compose.

@LukasHirt LukasHirt enabled auto-merge June 15, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants