unique_toolkit 1.3.0__py3-none-any.whl → 1.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,15 +26,41 @@ class ContentMetadata(BaseModel):
26
26
 
27
27
  class ContentChunk(BaseModel):
28
28
  model_config = model_config
29
- id: str
30
- text: str
31
- order: int
32
- key: str | None = None
33
- chunk_id: str | None = None
34
- url: str | None = None
35
- title: str | None = None
36
- start_page: int | None = None
37
- end_page: int | None = None
29
+ id: str = Field(
30
+ default="",
31
+ description="The id of the content this chunk belongs to. The id starts with 'cont_' followed by an alphanumeric string of length 24.",
32
+ examples=["cont_abcdefgehijklmnopqrstuvwx"],
33
+ )
34
+ text: str = Field(default="", description="The text content of the chunk.")
35
+ order: int = Field(
36
+ default=0,
37
+ description="The order of the chunk in the original content. Concatenating the chunks in order will give the original content.",
38
+ )
39
+ key: str | None = Field(
40
+ default=None,
41
+ description="The key of the chunk. For document chunks this is the the filename",
42
+ )
43
+ chunk_id: str | None = Field(
44
+ default=None,
45
+ description="The id of the chunk. The id starts with 'chunk_' followed by an alphanumeric string of length 24.",
46
+ examples=["chunk_abcdefgehijklmnopqrstuv"],
47
+ )
48
+ url: str | None = Field(
49
+ default=None,
50
+ description="For chunk retrieved from the web this is the url of the chunk.",
51
+ )
52
+ title: str | None = Field(
53
+ default=None,
54
+ description="The title of the chunk. For document chunks this is the title of the document.",
55
+ )
56
+ start_page: int | None = Field(
57
+ default=None,
58
+ description="The start page of the chunk. For document chunks this is the start page of the document.",
59
+ )
60
+ end_page: int | None = Field(
61
+ default=None,
62
+ description="The end page of the chunk. For document chunks this is the end page of the document.",
63
+ )
38
64
 
39
65
  object: str | None = None
40
66
  metadata: ContentMetadata | None = None
@@ -45,9 +71,19 @@ class ContentChunk(BaseModel):
45
71
 
46
72
  class Content(BaseModel):
47
73
  model_config = model_config
48
- id: str
49
- key: str
50
- title: str | None = None
74
+ id: str = Field(
75
+ default="",
76
+ description="The id of the content. The id starts with 'cont_' followed by an alphanumeric string of length 24.",
77
+ examples=["cont_abcdefgehijklmnopqrstuvwx"],
78
+ )
79
+ key: str = Field(
80
+ default="",
81
+ description="The key of the content. For documents this is the the filename",
82
+ )
83
+ title: str | None = Field(
84
+ default=None,
85
+ description="The title of the content. For documents this is the title of the document.",
86
+ )
51
87
  url: str | None = None
52
88
  chunks: list[ContentChunk] = []
53
89
  write_url: str | None = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -118,6 +118,10 @@ All notable changes to this project will be documented in this file.
118
118
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
119
119
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
120
120
 
121
+
122
+ ## [1.3.1] - 2025-09-29
123
+ - More documentation on referencing
124
+
121
125
  ## [1.3.0] - 2025-09-28
122
126
  - Add utilitiy to enhance pydantic model with metadata
123
127
  - Add capability to collect this metadata with same hierarchy as nested pydantic models
@@ -99,7 +99,7 @@ unique_toolkit/chat/utils.py,sha256=ihm-wQykBWhB4liR3LnwPVPt_qGW6ETq21Mw4HY0THE,
99
99
  unique_toolkit/content/__init__.py,sha256=EdJg_A_7loEtCQf4cah3QARQreJx6pdz89Rm96YbMVg,940
100
100
  unique_toolkit/content/constants.py,sha256=1iy4Y67xobl5VTnJB6SxSyuoBWbdLl9244xfVMUZi5o,60
101
101
  unique_toolkit/content/functions.py,sha256=1zhxaJEYTvvd4qzkrbEFcrjdJxhHkfUY3dEpNfNC_hk,19052
102
- unique_toolkit/content/schemas.py,sha256=KJ604BOx0vBh2AwlTCZkOo55aHsI6yj8vxDAARKKqEo,2995
102
+ unique_toolkit/content/schemas.py,sha256=WB3InkKIvfWbyg9CsKFLn8Zf4zrE-YqGpCc3a0zOk7k,4774
103
103
  unique_toolkit/content/service.py,sha256=ZUXJwfNdHsAw_F7cfRMDVgHpSKxiwG6Cn8p7c4hV8TM,24053
104
104
  unique_toolkit/content/utils.py,sha256=qNVmHTuETaPNGqheg7TbgPr1_1jbNHDc09N5RrmUIyo,7901
105
105
  unique_toolkit/embedding/__init__.py,sha256=uUyzjonPvuDCYsvXCIt7ErQXopLggpzX-MEQd3_e2kE,250
@@ -133,7 +133,7 @@ unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJ
133
133
  unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBuE9sI2o9Aajqjxg,8884
134
134
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
135
135
  unique_toolkit/smart_rules/compile.py,sha256=cxWjb2dxEI2HGsakKdVCkSNi7VK9mr08w5sDcFCQyWI,9553
136
- unique_toolkit-1.3.0.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
137
- unique_toolkit-1.3.0.dist-info/METADATA,sha256=63zIDL6zXri4f4WWuUFB4jb0m5XGi6oL4jdSUlCfTf4,33548
138
- unique_toolkit-1.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
139
- unique_toolkit-1.3.0.dist-info/RECORD,,
136
+ unique_toolkit-1.3.1.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
137
+ unique_toolkit-1.3.1.dist-info/METADATA,sha256=rLo_XrmExigQ1oQ6KFaUy6EWiMmwO7uj-u7SH55nsq4,33610
138
+ unique_toolkit-1.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
139
+ unique_toolkit-1.3.1.dist-info/RECORD,,