Go to MPAI-MMC V2.5 AI Modules

Function
Ref. Model
I/O Data
SubAIMs
JSON MData
Profiles
Ref. Software
Conformance
Performance

1 Functions

The Domain Knowledge Retrieval (MMC‑DKR) AIM gives, of the Domain Knowledge of a domain, the items relevant to a request: what the dialogue of a machine is told of the domain, so that its language model extends its general knowledge to that domain (retrieval-augmented generation). It is the same for every domain: the domain is known to it only by the Domain Knowledge it is given.

Receives Basic Text Object (OSD-BTO) The request, as text: what a human has said.
Domain Knowledge (MMC-DKN) The Domain Knowledge given by who knows the domain.
Produces Domain Knowledge (MMC-DKN) The Retrieved Knowledge: the items relevant to the request, each with its Relevance.

The AIM:

  1. Keeps the Domain Knowledge – the Domain Knowledge of its Access, when there is one, is that of the Domain Type (for a Connected Autonomous Vehicle, what CAV-TEC says a passenger can ask of a CAV and the terms of the domain); the Domain Knowledge received on its Domain Knowledge Port is that of the Domain Instance (the places of this CAV, from its Offline Map). The latest Domain Knowledge received replaces the one received before it, never the one of the Access. The two are searched together.
  2. Retrieves – for each request, the items relevant to it, the most relevant first, each with its Relevance: 1 for an item the request names – its Name or one of its Synonyms is said in the request – less than 1 for the others. The items of Relevance 1 are what the request selects of the knowledge: an application acts on those whose Reference it gave.

How relevance is found is left to the implementation.

2 Reference Model

Figure 1 depicts the Reference Model of the Domain Knowledge Retrieval (MMC‑DKR) AIM.

 

Figure 1 – The Domain Knowledge Retrieval (MMC‑DKR) AIM

The Domain Knowledge of the Domain Type may be data of Access: the Metadata of the AIM declares it in AccessSources (DomainKnowledge), by the URI it is published at and its SHA-256. The Domain Knowledge of the Domain Instance is received on the Domain Knowledge Port, from the AIM that knows the domain where the AIM is used.

3 I/O Data

Table 1 specifies the Input and Output Data of the Domain Knowledge Retrieval (MMC‑DKR) AIM. A Port is addressed by its Data Type and its Port Number (#); where the metadata gives none, none is shown.

Table 1 – I/O Data of the Domain Knowledge Retrieval (MMC‑DKR) AIM

Input Description
Basic Text Object (OSD-BTO) The request: what a human has said, as text.
Domain Knowledge (MMC-DKN) The Domain Knowledge of the Domain Instance, given by the AIM that knows the domain. When none is received, the AIM retrieves from the Domain Knowledge of its Access.
Output Description
Domain Knowledge (MMC-DKN) The Retrieved Knowledge: the items of the Domain Knowledge relevant to the request, the most relevant first, each with its Relevance (1 for an item the request names).

4 SubAIMs

No SubAIMs.

5 JSON Metadata

https://schemas.mpai.community/MMC/V2.5/AIMs/DomainKnowledgeRetrieval.json

6 Profiles

No Profiles.

7 Reference Software

Not part of this specification.

8 Conformance Testing

Table 2 provides the Conformance Testing Method for the MMC‑DKR AIM.

If a schema contains references to other schemas, conformance of data for the primary schema implies that any data referencing a secondary schema shall also validate against the relevant schema, if present, and conform with the Qualifier, if present.

Table 2 – Conformance Testing Method for the MMC‑DKR AIM

Receives Basic Text Object (OSD-BTO) Shall validate against Basic Text Object schema. Text Data shall conform with Text Qualifier.
Domain Knowledge (MMC-DKN) Shall validate against the Domain Knowledge schema.
Produces Domain Knowledge (MMC-DKN) Shall validate against the Domain Knowledge schema; each Item shall be an Item of the Domain Knowledge searched, with its Relevance; an Item the request names shall have Relevance 1.

9 Performance Assessment

Not part of this specification.

Go to MPAI-MMC V2.5 AI Modules