Skip to content

The agent engineering platform.

docs: fix extraction/quickstart.ipynb example code (#20397)

michael525226fb0b55
diff --git a/docs/docs/use_cases/extraction/quickstart.ipynb b/docs/docs/use_cases/extraction/quickstart.ipynb
index fa8587ab39..55eee4436e 100644
--- a/docs/docs/use_cases/extraction/quickstart.ipynb
+++ b/docs/docs/use_cases/extraction/quickstart.ipynb
@@ -89,12 +89,12 @@
" # 1. Each field is an `optional` -- this allows the model to decline to extract it!\n",
" # 2. Each field has a `description` -- this description is used by the LLM.\n",
" # Having a good description can help improve extraction results.\n",
- " name: Optional[str] = Field(..., description=\"The name of the person\")\n",
+ " name: Optional[str] = Field(default=None, description=\"The name of the person\")\n",
" hair_color: Optional[str] = Field(\n",
- " ..., description=\"The color of the peron's hair if known\"\n",
+ " default=None, description=\"The color of the peron's hair if known\"\n",
" )\n",
" height_in_meters: Optional[str] = Field(\n",
- " ..., description=\"Height measured in meters\"\n",
+ " default=None, description=\"Height measured in meters\"\n",
" )"
]
},
@@ -254,12 +254,12 @@
" # 1. Each field is an `optional` -- this allows the model to decline to extract it!\n",
" # 2. Each field has a `description` -- this description is used by the LLM.\n",
" # Having a good description can help improve extraction results.\n",
- " name: Optional[str] = Field(..., description=\"The name of the person\")\n",
+ " name: Optional[str] = Field(default=None, description=\"The name of the person\")\n",
" hair_color: Optional[str] = Field(\n",
- " ..., description=\"The color of the peron's hair if known\"\n",
+ " default=None, description=\"The color of the peron's hair if known\"\n",
" )\n",
" height_in_meters: Optional[str] = Field(\n",
- " ..., description=\"Height measured in meters\"\n",
+ " default=None, description=\"Height measured in meters\"\n",
" )\n",
"\n",
"\n",