Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /user_preferences /models.py
| """Data models for the user-preference store.""" | |
| from cognee.infrastructure.engine import InternalDataPoint | |
| from cognee.infrastructure.engine.models.DataPoint import MetaData | |
| class UserPreference(InternalDataPoint): | |
| """At most one node per (user, dataset): what that user cares about. | |
| ``text`` holds preference lines only — the render header is added at | |
| render time. ``turn_counter`` is the only clock for weight decay; it | |
| advances once per processed turn, rated or not. ``text_watermark`` is the | |
| ``created_at`` of the newest context entry folded into ``text``, so a | |
| re-run never folds the same entry twice. | |
| Extends ``InternalDataPoint``: never embedded (empty ``index_fields``), | |
| never surfaced in retrieval output (``is_internal`` read at the graph | |
| read chokepoints). It intentionally carries no ``name``. | |
| """ | |
| user_id: str | |
| dataset_id: str | |
| text: str = "" | |
| turn_counter: int = 0 | |
| text_watermark: str = "" | |
| metadata: MetaData = {"index_fields": []} | |
Xet Storage Details
- Size:
- 1.02 kB
- Xet hash:
- 15f2beccd4cae365b13139da3356b37761d3824087a924d81adac69daf8a327d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.