Skip to content

v0.12.0

Latest

Choose a tag to compare

@robert-mcdermott robert-mcdermott released this 01 Dec 18:20
· 8 commits to main since this release

Release notes

This release is about reading and correcting a graph: large graphs open as a map of themes, dated claims play back on a timeline, every passage can be read in its document, and the review tools find duplicates and wrong types for you.

Live examples: https://robert-mcdermott.github.io/ai-knowledge-graph/

Upgrading from 0.11

  • uv sync --extra web or pip install -e ".[web]" as before. No new dependencies.
  • Graphs of more than 300 entities open grouped by theme. Click a circle to open a theme, or press g to open them all. Set group_themes_above = 0 under [visualization] to keep the old view.
  • Dates are listed on their entity, not drawn as nodes. Set dates_as_values = false under [visualization] to draw every date as before.
  • max_bridge_components now defaults to 40 (was 20).
  • Regenerated graphs will differ slightly: fewer duplicate claims, and more small groups linked to the main graph.
  • Existing collections are not changed until you regenerate them or add a document. Pages rendered from them pick up the new explorer straight away.

What's new

Large graphs you can read

  • Above 300 entities the explorer opens with each theme drawn as one labelled circle, linked to the themes it shares relationships with. The Manhattan Project example opens as 19 circles instead of 627 nodes.
  • Click a circle to open that theme in place. Group themes (or g) regroups or opens everything, and the Communities panel has an open/group link per theme.
  • Nothing is hidden from the tools: search, paths, links to an entity, filters, the timeline and saved views all work with grouped themes.

Timeline

  • When at least five relationships carry a year, a Timeline button (or t) shows the graph as it stood up to a chosen date, with Play.
  • Months and days are read from dates such as "6 August 1945", "2 de enero de 1492" and "spring of 1945". When enough claims name a month the timeline moves by month.
  • Each notch of the slider is a month or year in which something happened, and a line under it says what that step adds.

Source reader

  • In the Sources panel, Read opens a document's full text with every cited passage highlighted. Click a passage to list its claims; click a claim to select it in the graph.
  • Works in the offline HTML page too.

Review tools (graph-serve)

  • Possible duplicates. The Review panel lists names that are probably the same thing, with the reason and what both are linked to. Merge is the usual reversible merge; Keep separate is remembered. No model is called.
  • Correct an entity's type from a menu at the top of its details. The correction is stored in the workspace and can be undone.
  • Keyboard. r opens Review; m merges the outlined pair, k keeps it separate, n moves to the next.
  • Read-only library. graph-serve --read-only serves collections for exploring and chat and refuses every change. The README uses it for the sample collections.

Better-connected, cleaner graphs

  • Isolated groups are linked from their source passages. The model sees each cut-off group with its own sentences and their neighbours, and a link is kept only when the passages it cites name both entities and it passes the second-opinion check. The Manhattan Project example went from 40 separate groups to 18.
  • Dates as values. A date that is only the object of a claim is listed under Dates on its entity, with its source passage, instead of being a dead-end node.
  • One statement read two ways is one claim. Overlapping chunks no longer produce "was one of | first humans to leave Earth orbit" and "was among first humans to leave | Earth orbit" side by side.

New ways in and out

  • Read a web page. generate-graph --url https://…, or the new field in the library, adds a page's readable text as a document. Public http/https addresses only.
  • Obsidian vault export. --export obsidian writes one Markdown note per entity with wikilinked relationships and quoted source passages.

Limits to know about

  • Grouping makes a large graph readable, not faster to open: the full layout is still computed first.
  • An opened theme with many links can overlap neighbouring circles.
  • The timeline's finest step is a month, and a range such as "1965–1966" is placed by its start.
  • Pages drawn by JavaScript cannot be read by --url; they are refused with a reason. Building a graph from a URL was tested on the reader and the preview, not end to end with a model.
  • The duplicate suggestions use names and shared links only, so two names for one thing that share no words are found only when a claim says one is called the other.
  • Some small groups stay separate because the text never ties them to anything else (13 in the coffee example, 14 in the Industrial Revolutions).

What comes next is in ROADMAP.md.

Full changelog: v0.11.0...v0.12.0