ontocast.tool.vector_store.core¶
Core contracts and models for ontology vector storage.
GraphAtom
¶
Bases: BasePydanticModel
Embedding-ready ontology entity atom.
Source code in ontocast/tool/vector_store/core.py
representation
property
¶
Combined embedding text view for generic consumers.
OntologySearchHit
¶
Bases: BasePydanticModel
Typed retrieval result that separates atom payload from ranking metadata.
Source code in ontocast/tool/vector_store/core.py
OntologySearchHitsByChannel
¶
Bases: BasePydanticModel
Per-query retrieval hits split by vector channel (dense core/neighborhood + optional BM25).
Source code in ontocast/tool/vector_store/core.py
VectorStoreTool
¶
Bases: Tool
Abstract interface for vector store implementations.
Source code in ontocast/tool/vector_store/core.py
clean_tenancy(tenant, project)
async
¶
Drop or empty vector collections derived from tenant / project.
Source code in ontocast/tool/vector_store/core.py
delete_ontology(iri, version=None, ontology_hash=None)
abstractmethod
¶
Delete all indexed atoms for a specific ontology IRI.
index_ontology(ontology)
abstractmethod
¶
initialize()
abstractmethod
async
¶
search_patches(query, top_k=None, filter_iri=None, filter_version=None, filter_hash=None)
abstractmethod
¶
Search ontology patches by query text (top_k None → store default).
Source code in ontocast/tool/vector_store/core.py
supports_tenancy_partition()
¶
canonicalize_entity_role(role)
¶
Normalize role labels to vector-store vocabulary.