Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /cognify /config.py
| from functools import lru_cache | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from cognee.shared.data_models import DefaultContentPrediction, SummarizedContent | |
| from typing import Optional | |
| import os | |
| class CognifyConfig(BaseSettings): | |
| classification_model: object = DefaultContentPrediction | |
| summarization_model: object = SummarizedContent | |
| triplet_embedding: bool = False | |
| chunks_per_batch: Optional[int] = None | |
| # Opt-in contradiction detection (issue #3699). Default OFF so the standard | |
| # cognify pipeline is unchanged. Tunables gate the verdict and the LLM payload. | |
| contradiction_detection: bool = False | |
| contradiction_confidence_threshold: float = 0.5 | |
| contradiction_max_facts: int = 500 | |
| # Opt-in audit-grade provenance ledger (env: PROVENANCE_TRACKING). Default | |
| # OFF so the standard cognify pipeline is unchanged. | |
| provenance_tracking: bool = False | |
| model_config = SettingsConfigDict(env_file=".env", extra="allow") | |
| def to_dict(self) -> dict: | |
| return { | |
| "classification_model": self.classification_model, | |
| "summarization_model": self.summarization_model, | |
| "triplet_embedding": self.triplet_embedding, | |
| "chunks_per_batch": self.chunks_per_batch, | |
| "contradiction_detection": self.contradiction_detection, | |
| "contradiction_confidence_threshold": self.contradiction_confidence_threshold, | |
| "contradiction_max_facts": self.contradiction_max_facts, | |
| "provenance_tracking": self.provenance_tracking, | |
| } | |
| def get_cognify_config(): | |
| return CognifyConfig() | |
Xet Storage Details
- Size:
- 1.64 kB
- Xet hash:
- 00b54ef4fff42997780dd2bc859b7c6de3b0bdd3daeb36b8beb55200e432ae7d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.