APPLIED AI / PROJECT STUDY
AGENTIC SUMMARIZER · SEPTEMBER 2025

LOCAL INFERENCE. STRUCTURED RESEARCH.

Agentic
Summarizer.

From source material
to a clearer brief.

A local AI workflow for turning articles into concise summaries, comparing three sources, and saving the results as Markdown or PDF.

THE GRADIO APPLICATIONLOCAL WORKFLOW
Agentic Summarizer interface showing Single URL, Single File, three-URL and three-file comparison tabs, a PDF option, and a five-point Zero Trust summary.
My Gradio application. The video below demonstrates the earlier notebook prototype.

01Source at a time
for a focused summary

05Numbered positions
in the summary format

03Sources compared
in the batch workflow

MD / PDFLocal exports
with attribution

01 / FROM NOTEBOOK TO APPLICATION

Prototype the logic.
Refine the interface.

I built Agentic Summarizer in Jupyter for rapid iteration, then developed it into a standalone Python application with Gradio.

The public notebook establishes the core URL workflow. The later interface adds a more approachable experience for URL- and file-based summarization. I have also developed additional capabilities beyond the open-source baseline.

  1. PUBLIC BASELINE

    Jupyter + ipywidgets

    Tabbed Single URL and three-URL comparison workflows, callable tools, local model generation and optional exports.

  2. LATER APPLICATION

    Python + Gradio

    A standalone browser interface. The interface supports URL and file modes, including three-source comparison.

  3. EXPLORE THE BUILD

    Code, interface and walkthrough

    The repository documents the notebook baseline. The screenshot represents the later interface. The walkthrough video covers the prototype and core workflow.

TECHNICAL WALKTHROUGH

NOTEBOOK PROTOTYPE / CORE WORKFLOW

Follow the original build.

See how the prototype connects source retrieval, local summarization and export.

This video demonstrates the earlier notebook experience. It does not demonstrate the later Gradio interface shown above.

YouTube player · No autoplay

Watch the technical walkthrough on YouTube

02 / THE WORKFLOW

Small tools.
A deliberate sequence.

Fetch the article. Generate a structured summary. Compare when needed. Save the result.

The public implementation uses LangChain’s @tool wrapper for callable retrieval and saving functions, with direct requests to Ollama for generation. Python coordinates the sequence. The baseline is an agent-style workflow, not an autonomous system that selects its own tools.

CONCEPTUAL DATA FLOW / PUBLIC NOTEBOOK BASELINE
External article URLNetwork retrieval → extracted article text

LOCAL PYTHON PROCESS + OLLAMA

  1. 01 / RETRIEVEFetch & cleanRequests, readability and BeautifulSoup extract article text.
  2. 02 / GENERATESummarizeOllama runs llama3.2:3b against a bounded text excerpt.
  3. 03 / SYNTHESIZECompareIn batch mode, compare the three generated summaries.
  4. 04 / PRESERVESaveSelected Markdown and PDF exports are written locally.

Single-source mode proceeds from summary to selected exports. Batch mode adds comparison. The diagram shows the application workflow.

Local inference is a design choice.

The public source calls Ollama on the local loopback address. In the described local-model configuration, inference does not require a paid cloud-model API. Hardware, storage and electricity still have costs.

Local does not mean network-free.

URL retrieval contacts external sites. Models and dependencies must first be installed. File-based use can avoid URL fetching, but privacy still depends on application configuration, sharing settings and the handling of local files.

Inspect the implementation choices and limits

Input budget: the public notebook passes up to 2,800 characters for a single URL and 2,000 per source in batch mode. This keeps the workflow bounded but can omit important material from longer articles.

Output format: prompts and stop sequences request five points. The notebook formatter keeps five numbered positions and pads missing entries with an ellipsis. Five positions therefore do not guarantee five substantive or accurate insights.

Comparison: the model compares summaries, rather than the complete original documents. Errors or omissions in those summaries can carry into the comparison.

Version context: the September 2025 baseline uses llama3.2:3b and a 2,048-token context setting in its generation calls. These are the configuration choices used in the notebook baseline.

Inspect the public notebook on GitHub

03 / READABLE OUTPUT, REVIEWABLE CLAIMS

A brief you can read.
A source you can revisit.

A consistent format makes summaries easier to scan and comparisons easier to navigate.

The examples below illustrate the summary and comparison formats. I have edited the wording for clarity; they are not live model outputs.

SINGLE-SOURCE EXAMPLE

01–05

Zero Trust architecture

Original example source: Wikipedia’s Zero Trust architecture article.

  1. Network location alone does not establish trust in a user or device.
  2. Authentication and authorization govern access to enterprise resources.
  3. Access decisions consider identity, device state and applicable policy.
  4. Least privilege limits access to the resources needed for the task.
  5. Attribute-based access control can support these decisions; it is not the only way to implement Zero Trust.

Technical context: NIST SP 800-207.

THREE-SOURCE COMPARISON / FORMAT

From individual summaries
to a shared view.

Common themes
Identify ideas that recur across sources. In the original example: identity verification and least-privilege access.
Key differences
Distinguish the emphasis of each source. Zero Trust addresses access decisions; defense in depth organizes multiple protective layers.
Standout insight per source
Keep each source’s distinctive contribution attributable to that source.
Takeaway
Synthesize the comparison into a concise conclusion. The original example treats Zero Trust and defense in depth as complementary.

Illustrative format and revised excerpt. Consult the original sources before relying on the synthesis.

Keep the result.

Save a Markdown note for editing or an optional PDF for sharing, with the project’s attribution footer.

Inspect committed demo outputs on GitHub

04 / EXPLORE THE PROJECT

Follow the code.
Understand the scope.

The public repository contains the notebook baseline, modular Python code, examples, starter tests and PDF walkthroughs.

Explore the implementation on GitHub, or follow the video walkthrough to see the prototype in action.

Repository map
notebooks/
The interactive notebook and committed Markdown/PDF demo outputs.
src/
Retrieval, summarization, saving and utility modules.
examples/
Example files included with the baseline.
tests/
Starter checks for retrieval, saving, summarization and the end-to-end path.
requirements.txt
Python dependencies. A separate Ollama installation and local model are also required.
docs/
The complete and developer PDF walkthroughs linked above.

What the project demonstrates

A bounded local AI workflow that connects retrieval, structured generation, multi-source comparison and export. The evolution from notebook to Gradio shows how the same product idea can gain a more accessible interface.

What still needs evaluation

Summary accuracy, extraction coverage, handling of untrusted source content, performance across hardware, and sensitive-file protection. These remain areas for further testing and refinement.

Potential next steps

Future work may explore optional cloud-model backends, additional export formats such as PowerPoint and Excel, and richer comparison workflows. The original article named GPT-4 and Claude as possibilities; no such integration is presented here as implemented.

Any cloud option would need evaluation for the selected model’s context limits, cost and data handling.

Technical references and privacy context

Ollama’s documentation distinguishes local execution from cloud-model use. Gradio’s sharing documentation explains that public sharing changes who can reach an application. Local execution alone does not establish that an interface is inaccessible to others.

The public baseline uses LangChain tools as callable function wrappers; model generation is performed through direct Ollama requests. The implementation, rather than the framework name, establishes the orchestration behavior.

APPLIED AI, BUILT TO BE UNDERSTOOD

A smaller reading burden.
A clearer research workflow.

Explore how local models and focused tools turn source material into structured notes you can review, compare and keep.

BUILT & WRITTEN BY

Jibril Anifowoshe, M.S., CISM

Enterprise Cybersecurity Leader & AI Security Strategist

Zero Trust Design · Advanced Threat Modeling
Incident Response Leadership · Agentic AI

Connect on LinkedInBack to top

September 2025