From 6fc9e9fe322f146957eedfc69246731c6083acff Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 5 Sep 2023 16:33:05 -0500 Subject: [PATCH] add intro --- docs/tips/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tips/index.md b/docs/tips/index.md index c17d4a3..244ec82 100644 --- a/docs/tips/index.md +++ b/docs/tips/index.md @@ -1,5 +1,7 @@ # Tips for Structure Engineering in Python +The intersection between language models and structured data is a hotbed of untapped potential. With function calling and instructor, a new paradigm has emerged, one that focuses on lightweight, flexible solutions for leveraging language models to produce structured data in Python. Whether you're defining complex relationships between entities or reusing components across different contexts, these tips are designed to align seamlessly with the instructor approach. + ## Modular Chain of Thought This approach to "chain of thought" improves data quality but can have modular components rather than global CoT. @@ -20,7 +22,7 @@ class UserDetail(BaseModel): ## Utilize Optional Attributes -For optional fields, use Python's **`Optional`** type and set a default value to avoid the model filling in undesired defaults like `''` for strings that are missing +Use Python's Optional type and set a default value to prevent undesired defaults like empty strings. ```python hl_lines="6" from typing import Optional