Repository navigation
v5.1.0 #334
milliondreams
announced in
Announcements
v5.1.0
#334
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
uni-db 5.1.0
Changes since 5.0.0 (released 2026-10-28).
5.1.0 adds text-to-graph extraction with the kniv v7 models:
uni.nlp.*procedures and
db.xervo()methods that extract typed entities and facts,and analyse text word by word and sentence by sentence, in-process with no
LLM, plus a documented Locy program that resolves extracted mentions to
entities. It also upgrades uni-xervo to 0.19.1, which removes the
local/mistralrsprovider (breaking for Rust builds that enable itsfeature), and fixes a read-only query running write procedures registered
by the built-in plugins. Behaviour and API changes are listed first.
The
local/mistralrsprovider is removed (breaking for Rust featureusers). uni-xervo 0.19 dropped it upstream, so the
provider-mistralrsfeature is gone from
uni-dbanduni-cli, and aCargo.tomlthat names itno longer resolves. A catalog alias with
provider_id: "local/mistralrs"nowfails to load. Replacements:
remote/llamacppagainst allama-serveryou runlocal/onnxorlocal/candleThe Python wheels need no code change:
uni-db,uni-db-cudaanduni-db-metalsimply stop bundling mistral.rs, which makes them smaller andfaster to build. The default wheels now carry 11 providers and the slim
-onnxwheels 10.ONNX models on GPU wheels fall back to CPU when the accelerator cannot run
them. With uni-xervo 0.19.1, an ONNX model is probed with one small
inference at load. If the accelerator fails it and the alias's
execution_providerslist includes"cpu"(the default lists do), the modelis reloaded on CPU with a warning; a list without
"cpu", such as["coreml"], makes it a load error rather than a failure on the first query.CPU-only builds are not probed. This fixes Qwen3-Reranker and
Qwen3-Embedding on Apple Silicon, which failed on every query under
uni-xervo 0.19.0, on the CPU-only wheels as well as
uni-db-metal.Python: a malformed auto-embedding config now raises instead of being
dropped.
LabelBuilder.index(prop, {"type": "vector", "embedding": {...}})parsed the
embeddingdict with anOptionchain, so any mistake removed itwithout a word. The common case was
"source", the key Cypher DDL uses: theindex was created without auto-embedding, and the first insert failed with
Property 'embedding' cannot be null, which never mentions the config. Thebinding now mirrors the Cypher parser:
"source"is accepted alongside"source_properties"; giving both is anerror.
aliasand a non-empty source list are required, unknown keys are rejectedwith the accepted list, and
batch_sizemust be a positive integer.batch_sizeis 32, matching Cypher DDL, instead of 100.Each of these raises
ValueErrorfromapply(). A config that was beingsilently ignored before will now fail there instead; with a typo-free config,
nothing changes apart from the batch-size default.
New features
uni.nlp.extractanduni.nlp.entities. With a kniv v7 model (dragonscale-ai/kniv-v7-xlarge-u-enor
-d-en) under annlpcatalog alias, the procedures extract typedentities and the facts between them, in-process with no LLM. Relations and
entity types are given per call by name and description, or derived from
the declared schema with
schema: 'graph'(a forked session uses its ownmerged schema). Each fact carries polarity, modality, holder, time, a
calibrated margin, character spans of its mentions (turn-relative for a
conversation, with the turn index) and the model alias and id. Input can
be one text, several documents, or a conversation of
{speaker, text}turns, where each speaker becomes an entity. Unknown options are rejected,
and a v1 kniv model, which has no fact extraction, is refused with an
error naming the alias.
db.xervo().extract_facts(...)/extract_entities(...)return thesame rows from Rust (
ExtractedFact,ExtractedEntity, withNlpInputand
ExtractOptions) and from Python (XervoandAsyncXervo, with theExtractedFact/ExtractedEntitydata classes). Rust also gainsdb.xervo().nlp(alias, requests), the raw per-window uni-xervo analysis.See
website/docs/features/nlp-extraction.md.uni.nlp.wordsanduni.nlp.sentences.The same kniv v7 model analyses text word by word (Universal Dependencies
part of speech, morphology, lemma, dependency head and relation) and
sentence by sentence (sentiment, dialogue acts and each act's
probability). Word, sentence and head indices count across the whole
document, so a word's
headjoins to another row'sword. Input is thesame as for extraction, including conversations, where each row carries
its turn and speaker;
optionstakes onlyalias. Rust and Python getdb.xervo().analyze_words(...)/analyze_sentences(...), returningAnalyzedWord/AnalyzedSentence.documents a tested Locy program that links each extracted mention to an
existing entity: weighted evidence (exact name, surname, embedding
similarity), combined with
MNORunder a merge threshold, the best matchper mention, and new entities for mentions nothing matched, with case and
surname variants of a new name in one batch sharing one. Claims are stored
against mentions, so they reach resolved entities; conversation speakers
resolve like any name; and running resolution in a fork, reviewing the
diffand promoting it is tested end to end. It isidempotent,
EXPLAIN RULEshows the evidence behind each merge, andVALIDATEscores the policy against labelled mentions. Earlier docs saidextraction
confidencecould be calibrated withCALIBRATE; that commandfits only
CREATE MODELpredicates, and the docs now point toVALIDATE.Correctness fixes
A read-only query no longer runs write procedures registered by the
built-in plugins. The read-only gate, and the authorization verbs for
Cypher and Locy, looked a procedure's mode up by splitting its name at
the last dot (
uni.plugin+declareTrigger), while the built-in pluginsregister first-dot names (
uni+nlp.extract) or names reached throughthe
uni.prefix (custom+plugin.declareTrigger). They found nomode, treated the procedure as a read, and
session.querycould declarea trigger or call any other such
WRITEprocedure. The lookup now triesevery split, as dispatch does.
DERIVEover a rule that joins anISreference no longer times outon a few hundred nodes. Before writing, a DERIVE re-joins its rule's
clause: it ran the clause's whole MATCH (for
MATCH (m), (e) WHERE (m, e) IS r, the cartesian product), converted every row, and compared eachrow with each fact, cloning both nodes every time. 300 × 300 nodes timed
out after 30 s. The MATCH is now narrowed to the nodes the reference's
facts hold, and the in-memory joins look facts up by entity identity; the
same DERIVE takes tens of milliseconds and derives the same facts.
Fork promote now recognises auto-embedded vertices. Auto-embedding
stored its vectors as lists of floats until flush, and the flush registers
each vertex's content UID from those values. The row read back holds a
Vector, which hashes differently, so promote never found such a vertex onprimary:
promote_from_forkinserted a second copy of every auto-embeddedvertex the fork had inherited, and skipped edges to them as having no
endpoint. Embeddings are now stored in the declared
Vectorform from thestart. Vertices flushed before this fix still carry the old UID entry, so
promote can still duplicate them until they are rewritten.
Forked sessions can write to auto-embedded labels. A fork's writer was
built without the database's Uni-Xervo runtime, so any fork write that
needed an embedding failed with "Uni-Xervo runtime not configured for
auto-embedding", though queries on the same fork had the runtime.
Model-backed procedures now work inside trigger actions and declared
procedures. The executor that runs an inner query (a
uni.plugin.declareTriggeraction, a declared procedure's body) was builtwithout the database's Uni-Xervo runtime, so a
uni.nlp.*call therefailed with "Uni-Xervo runtime is not configured", and so did
uni.vector.querywith a text query, on a database that had one. The innerexecutor now inherits the caller's runtime.
size()andlength()of a vector return its dimension count. Astored
VECTOR(n)value is read as an ArrowFixedSizeList, which thecolumnar
size()did not handle, sosize(d.embedding)failed, and its errormessage printed every element of the vector. The row-at-a-time evaluator had
the same gap for both functions. Both paths now return
n(null for a nullvector), and an unsupported argument raises a
TypeErrornaming the typerather than the value.
Type errors raised during a query no longer end in a dangling "got".
The query layer wraps an engine
TypeError:message inUniError::Typewith the whole message as
expectedand an emptyactual, which displayedas
Type error: expected <message>, got(in Python,UniTypeErrorcarriesthe same text). That shape now displays as
Type error: <message>; typeerrors that name both types are unchanged. The TCK matcher reads detail codes
from both shapes.
Dependencies and build requirements
objects call
__isPlatformVersionAtLeast, which lives inlibclang_rt.osx.a; rustc links with-nodefaultlibs, so a wheel builtas the release workflow builds it (
maturin build --target aarch64-apple-darwin) left the symbol unresolved andimport uni_dbfailed. A build script in
bindings/uni-db, shared by the variantpackages, now links the archive on macOS. 5.0.0 wheels were not affected.
Runtime let CoreML claim nodes on CPU-only macOS builds (see above).
Runtime 1.24 → 1.31), all through uni-xervo.
their
deny.tomlignores are removed.candle-core,candle-nn,candle-transformers,hf-hubandtokenizersentries are removed from[workspace.dependencies].This discussion was created from the release v5.1.0.
All reactions