Skip to content

v0.2.2

Latest

Choose a tag to compare

@arrry-hydraDB arrry-hydraDB released this 19 Nov 02:14
· 486 commits to main since this release
pip install -U selfgraph

New

  • graph.diff(since, until) lists what the graph learned in a known-time window: relations added, revised and retired, and entities created. CLI diff, MCP tool. It pages through records, so it stays flat on large graphs.
  • check_settings reports a missing LLM provider or key when a setting needs one.

Changed

  • Derived ids keep combining marks, so Hindi, Bengali, Tamil and Thai names that differ only in vowel signs stay separate entities. normalize_rel_type splits a digit from the letter after it, so normalizing twice gives the same type. Ids for such names and types differ from 0.2.1.
  • LLM extraction no longer asks the model for entity ids. Ids are always derived from the name and type.
  • Property keys and order_by must match the identifier rule in every store.
  • min_count and max_count must be integers. Schema aliases can no longer name another type.
  • insert.facts rejects None, text or boolean strengths, a relation id that conflicts with a stored one or with another fact in the batch, and __proto__ as a property key or external id. All of these checks run before anything is written.
  • Every time argument is parsed with one ISO 8601 grammar on every Python version.
  • MCP tools reject numeric strings and booleans for number arguments, and null steps.
  • CLI flags and settings JSON are parsed strictly. NaN and Infinity flag values stay text.
  • Whole-number floats are stored and read as integers, matching TypeScript.
  • Embedding retrieval rejects vectors of different dimensions.
  • A second KuzuStore on an open path raises ValidationError if its options differ from the open database's.
  • Kuzu reopens its connection every 500 statements, so memory stays flat in long sessions.
  • The 32000-byte string limit for HydraDB is removed. HydraDB gets only type labels the engine accepts.
  • Token chunks end on character boundaries, and special-token text such as <|endoftext|> is read as plain text.

Fixed

  • Insert and extraction
    • insert.text without an LLM no longer fails on multi-line text.
    • Regex names start at any Unicode capital, continue through combining marks and stop at line breaks.
    • An LLM event_time of "2021" is read as 1 Jan 2021, not 1970-01-01.
    • Restating a decision keeps the fields it leaves out.
    • Restating a fact without a date keeps its stored event_time.
    • Required properties are checked against the merged record, and None counts as missing.
    • The stored entity type keeps its casing when only the case differs.
    • Changes between booleans and numbers are no longer dropped.
  • Time and contradictions
    • Supersede history no longer depends on the order facts arrive in.
    • Moving a relation's event_time earlier settles its endpoints again.
    • Deleting a relation settles the relations it had retired.
    • Correcting a retirement keeps the effective time.
    • Dropping a certification settles max_count endpoints.
    • Strict max_count accepts replays of relations that are already retired.
    • Contradiction counts and supersede history leave out source-withdrawn relations.
    • Relations restated in the same insert are kept away from the LLM contradiction judge.
    • Source replacement ignores replaced versions, and replaying a stored version uses its own time.
  • Merge and unmerge
    • Unmerge restores fields from repeated merges, self-loop decision steps, both reciprocal self-loops, and decision-step edits made after the merge.
    • Unmerge skips entities that have since been deleted.
    • Same-batch merges keep the survivor's name.
    • Inserting the same decision again restores its missing links.
  • Retrieval
    • Context assembly stops at the first line that overflows the budget.
    • known_at uses historical source counts and hides decision steps that were not visible at that time.
    • Relations between boundary entities are included.
    • Parent types expand to their subtypes.
    • check_answerable drops possessive and contraction endings, and still matches stopwords and single-character terms you ask for explicitly.
    • BM25 counts repeated words.
    • PageRank ranks tied entities the same on every run.
    • Self-relations count once for hubs and for decay degree.
    • Stored text can no longer copy the [certified] trust mark.
  • Schema
    • Endpoint types, parents and relation aliases resolve through canonical names.
    • Aliases work in relations.list, relations.iterate and maintenance.prune.
    • prune type matching ignores case.
    • Entity resolution compares types without regard to case.
    • Cardinality checks count distinct relation ids.
    • from_tables maps only integer SQL types to integer, validates references, and names singular types correctly (Address, not Addresse).
  • Stores and runtime
    • Kuzu
      • Relative paths are resolved before caching.
      • :memory: stores are isolated from each other.
      • Stores on the same path share their locks.
      • A failed connect rolls back the cache.
      • JSON filter parameters match list and object values.
      • Decision step ids no longer overwrite decisions.
    • HydraDB: upserts apply extra_label, and graph.diff pages by entity instead of scanning every relation.
    • Runtime
      • SyncSelfGraph is safe across threads.
      • The MCP server opens one graph when its first calls arrive in parallel.
      • A tiktoken load failure is reported instead of being swallowed.
      • On Windows, connection errors show the plain failure reason.
      • from_iso accepts a trailing Z on Python 3.10.
  • Export
    • The Neo4j export warning names every field it drops.
    • The Ossie export warns about OneToMany multiplicity.
    • Obsidian note names are cut to 200 bytes.