mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 22:11:51 +00:00
docs[patch]: extraction_examples fix the examples given to the llm (#23393)
Descriptions: currently in the [doc](https://python.langchain.com/v0.2/docs/how_to/extraction_examples/) it sets "Data" as the LLM's structured output schema, however its examples given to the LLM output's "Person", which causes the LLM to be confused and might occasionally return "Person" as the function to call issue: #23383 Co-authored-by: Lifu Wu <lifu@nextbillion.ai>
This commit is contained in:
@@ -246,11 +246,11 @@
|
||||
"examples = [\n",
|
||||
" (\n",
|
||||
" \"The ocean is vast and blue. It's more than 20,000 feet deep. There are many fish in it.\",\n",
|
||||
" Person(name=None, height_in_meters=None, hair_color=None),\n",
|
||||
" Data(people=[]),\n",
|
||||
" ),\n",
|
||||
" (\n",
|
||||
" \"Fiona traveled far from France to Spain.\",\n",
|
||||
" Person(name=\"Fiona\", height_in_meters=None, hair_color=None),\n",
|
||||
" Data(people=[Person(name=\"Fiona\", height_in_meters=None, hair_color=None)]),\n",
|
||||
" ),\n",
|
||||
"]\n",
|
||||
"\n",
|
||||
|
Reference in New Issue
Block a user