Knowledge#
knowledge/ serves geospatial knowledge. Each box in the diagram is a subpackage or module,
with its REST routes, MCP tools and state.
Component |
Code |
What it does |
State |
|---|---|---|---|
Catalog + spatial search |
|
Collections and records with PostGIS footprints and H3 cells, collection metadata, directory ingest. Sensor-neutral: product manifests come from packs |
|
Collection layers + ontology |
|
Typed layers over collections, layer snapshots, bindings to retrieval corpora, derived outputs and the ontology |
Layer tables in the catalog schema |
Media + georeferencing |
|
Inspect, preview and download media records and product assets; georeference rasters |
Media roots and product manifests on disk |
Knowledge base (GKB) |
|
Validated reports with evidence and lineage. See Knowledge base (GKB) |
Canonical Markdown root; |
Shared retrieval |
|
Corpora, embedding jobs and exact or filtered search. See Embedding and retrieval |
|
Embeddings |
|
Embedding setups and defaults over any hosted or remote encoder |
Setups and defaults in the access records |
Collection layers and ontology#
A layer is a typed view of a collection. It declares a versioned schema, a source authority and the capabilities it supports. Records keep the revision they were admitted under. Layer adapters (bounded enumeration, exact reads, declared queries) are composed by the operator and never uploaded or run as user code. A separately versioned ontology maps reviewed concepts onto layer fields. Layers can be bound to retrieval corpora.
Embeddings#
Model profiles and gateways are configuration. A model pack adds an adapter; the embedding
service itself names no model. Embedding setups and defaults are in
/v1/embedding-setups, /v1/embedding-models and /v1/embedding-default.
How packs extend knowledge#
A pack never changes knowledge’s code. It registers hooks on the part registry
(Parts): add_input_type, add_embedding_adapter, add_retrieval_model,
add_product_resolver, add_media_headers and add_annotation_reader.