Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /ontology /ontology_config.py
| from typing import TypedDict, Optional | |
| from cognee.modules.ontology.base_ontology_resolver import BaseOntologyResolver | |
| from cognee.modules.ontology.matching_strategies import MatchingStrategy | |
| class OntologyConfig(TypedDict, total=False): | |
| """Configuration containing ontology resolver. | |
| Attributes: | |
| ontology_resolver: The ontology resolver instance to use | |
| ontology_mode: How strictly to apply the ontology for this call — | |
| "annotate" (enrich only, the default) or "strict" (drop extracted | |
| entities with no ontology grounding). Falls back to the | |
| ONTOLOGY_MODE environment value when omitted. | |
| """ | |
| ontology_resolver: Optional[BaseOntologyResolver] | |
| ontology_mode: Optional[str] | |
| class Config(TypedDict, total=False): | |
| """Top-level configuration dictionary. | |
| Attributes: | |
| ontology_config: Configuration containing ontology resolver | |
| """ | |
| ontology_config: Optional[OntologyConfig] | |
Xet Storage Details
- Size:
- 973 Bytes
- Xet hash:
- a2d232ecb35a217d32472bf09789f6c5ba35224054df33e8479b21495f773a66
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.