ontocast.onto.retrieval_capabilities¶
Vector retrieval prerequisites for selected_vector_search_ontology context mode.
Classes¶
EmptyOntologyContextError
¶
Bases: OntologyContextConfigError
Raised when a unit's ontology context resolves to zero triples.
An empty context is not a milder version of a good one. The renderer is instructed to extract "based on provided domain ontology"; handed nothing, it falls back on whatever standard vocabulary the prompt names, and the SHACL gate then finds no node its shapes target -- so the run reports a vacuous pass over an empty focus set. Continuing produces a finished, plausible, ungrounded graph, which is worse than stopping.
Source code in ontocast/onto/retrieval_capabilities.py
OntologyContextConfigError
¶
VectorStoreUnavailableError
¶
Bases: OntologyContextConfigError
Raised when vector retrieval is requested but vector infra is unavailable.
Source code in ontocast/onto/retrieval_capabilities.py
Functions:¶
require_vector_retrieval(tools)
¶
Raise a single canonical error if vector ensemble cannot run.
Source code in ontocast/onto/retrieval_capabilities.py
validate_ontology_context_mode(ontology_context_mode, tools)
¶
Raise if the requested ontology context mode cannot be satisfied.
Source code in ontocast/onto/retrieval_capabilities.py
vector_retrieval_available(tools)
¶
True when a vector store (Qdrant or LanceDB) and the patch retriever are ready.