A one-stop data processing system to make data higher-quality, juicier, and more digestible for (multimodal) LLMs! 🍎 🍋 🌽 ➡️ ➡️🍸 🍹 🍷为大模型提供更高质量、更丰富、更易”消化“的数据!
Tuple[str] or Tuple[int] was used incorrectly. They indicate that the tuple can only contain a single element, which differs from List[str] or List[int], which are variable-length sequences by default. After the modification:
All variable-length sequences are standardized to use List, which can be correctly recognized and converted by Pydantic from compatible types like tuple, list, set, frozenset, deque, etc. ref
Use Tuple only when the length of the sequence is fixed, such as a pair of coordinates that always has a length of 2.
Refactor all type annotations from jsonargparse to Pydantic.
Tuple[str]
orTuple[int]
was used incorrectly. They indicate that the tuple can only contain a single element, which differs fromList[str]
orList[int]
, which are variable-length sequences by default. After the modification:List
, which can be correctly recognized and converted by Pydantic from compatible types liketuple
,list
,set
,frozenset
,deque
, etc. refTuple
only when the length of the sequence is fixed, such as a pair of coordinates that always has a length of 2.Refactor all type annotations from
jsonargparse
toPydantic
.