ontocast.prompt.facts_guidelines¶
Facts rendering operational guidelines (format-specific).
format_facts_operational_guidelines(*, facts_namespace, domain_ontologies_clause, jsonld, quantity_fallback_vocabulary=None, search_guidelines='')
¶
Build operational guidelines for the active graph format.
Source code in ontocast/prompt/facts_guidelines.py
format_quantity_fallback_clause(vocabulary)
¶
Render the bounded-quantity fallback for a configured vocabulary.
The fallback is what the renderer reaches for when retrieval supplied no bounded-quantity class. Which vocabulary that is belongs to the deployment, not to the prompt: a catalog modelling quantities with anything other than QUDT would otherwise be told to emit QUDT terms it never declared.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vocabulary
|
dict[str, str]
|
Role -> term mapping ( |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The guideline bullet for the configured fallback. |