载入中...
搜索中...
未找到
SceneSearch.h
浏览该文件的文档.
41inline constexpr std::array<std::string_view, 3> sceneSpatialFrameNames{"world", "reference", "observer"};
Move-only, checked operation results for the common layer.
Optional scene-owned search capability; never owns or mutates scene entities. @ownership Process-life...
Definition SceneSearch.h:101
virtual Result< SceneSearchSnapshot > prepare(std::string_view host)=0
Prepare one bounded immutable projection, replacing the previous search session.
virtual ~ISceneSearch()=default
Destroy the provider and its derived projection.
static constexpr const char * capabilityName
Definition SceneSearch.h:103
virtual Result< SceneSearchResult > query(const SceneSearchQuery &query)=0
Filter live geometry and retrieve a bounded approximate HNSW cosine candidate window.
virtual Result< void > publish(const SceneEmbeddingBatch &batch)=0
Atomically publish embeddings in snapshot record order after source validation.
virtual Result< SceneSearchSnapshot > status()=0
Read the current session and live geometry without rebuilding its embedding/HNSW index.
Thread-affine callback registry with mutation-safe dispatch.
Definition Subscription.h:82
SceneSpatialFrame
World axes, reference node axes, or a separate observer node's axes.
Definition SceneSearch.h:36
@ Reference
constexpr std::array< std::string_view, 3 > sceneSpatialFrameNames
Static protocol spellings, in SceneSpatialFrame order.
Definition SceneSearch.h:41
constexpr std::array< std::string_view, 8 > sceneSpatialRelationNames
Static protocol spellings, in SceneSpatialRelation order.
Definition SceneSearch.h:38
SceneSpatialRelation
Exact geometric relation; directional predicates compare node origins, not visual occlusion.
Definition SceneSearch.h:34
One embedding space; revision must identify immutable model weights and encoding configuration.
Definition SceneSearch.h:59
std::vector< std::vector< double > > vectors
Definition SceneSearch.h:61
Candidate plus cosine evidence (zero for structured-only queries).
Definition SceneSearch.h:80
Exact structured filters, optional HNSW cosine retrieval and bounded pagination.
Definition SceneSearch.h:65
std::vector< SceneSpatialConstraint > spatial
Definition SceneSearch.h:73
std::size_t candidates
Maximum HNSW candidate window; pagination stays within this explicitly bounded window.
Definition SceneSearch.h:75
std::optional< std::array< double, 3 > > center
Definition SceneSearch.h:70
Owning read-only scene projection; host-local id is qualified by snapshot and host.
Definition SceneSearch.h:13
std::optional< std::array< double, 6 > > bounds
World AABB projected from all eight local corners; absent means no authored bounds.
Definition SceneSearch.h:20
std::array< std::array< double, 3 >, 3 > axes
World-space orthonormal axes: right, up, forward (+Z local); zero axes mean degenerate pose.
Definition SceneSearch.h:18
Owning results, snapshot/index watermarks and continuation bound to the complete query.
Definition SceneSearch.h:87
bool approximate
HNSW is approximate; candidateTruncated indicates a window smaller than eligible objects.
Definition SceneSearch.h:92
Frozen source evidence. Tokens expire after preparation, source mutation or host destruction.
Definition SceneSearch.h:26
std::string model
Published embedding identity; empty before index publication.
Definition SceneSearch.h:29
std::vector< SceneSearchRecord > records
Definition SceneSearch.h:30
One AND constraint. References are host-local IDs resolved in the current authoritative projection.
Definition SceneSearch.h:43
Measured evidence in the selected coordinate basis; no model-estimated spatial facts.
Definition SceneSearch.h:50