From db80832e4fa4d627358c141d0d1e82b3c104c36c Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:20:48 -0800 Subject: [PATCH] docs: output parser nits (#16588) --- docs/docs/modules/model_io/output_parsers/index.mdx | 1 - .../modules/model_io/output_parsers/types/openai_tools.ipynb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/modules/model_io/output_parsers/index.mdx b/docs/docs/modules/model_io/output_parsers/index.mdx index 239cd644efc..ea0ada5db35 100644 --- a/docs/docs/modules/model_io/output_parsers/index.mdx +++ b/docs/docs/modules/model_io/output_parsers/index.mdx @@ -33,7 +33,6 @@ LangChain has lots of different types of output parsers. This is a list of outpu | Name | Supports Streaming | Has Format Instructions | Calls LLM | Input Type | Output Type | Description | |-----------------|--------------------|-------------------------------|-----------|----------------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [OpenAITools](./types/openai_tools) | | (Passes `tools` to model) | | `Message` (with `tool_choice`) | JSON object | Uses latest OpenAI function calling args `tools` and `tool_choice` to structure the return output. If you are using a model that supports function calling, this is generally the most reliable method. | - | [OpenAIFunctions](./types/openai_functions) | ✅ | (Passes `functions` to model) | | `Message` (with `function_call`) | JSON object | Uses legacy OpenAI function calling args `functions` and `function_call` to structure the return output. | | [JSON](./types/json) | ✅ | ✅ | | `str \| Message` | JSON object | Returns a JSON object as specified. You can specify a Pydantic model and it will return JSON for that model. Probably the most reliable output parser for getting structured data that does NOT use function calling. | | [XML](./types/xml) | ✅ | ✅ | | `str \| Message` | `dict` | Returns a dictionary of tags. Use when XML output is needed. Use with models that are good at writing XML (like Anthropic's). | diff --git a/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb b/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb index 84a3bb5d0a0..a9a68f3f707 100644 --- a/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb +++ b/docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb @@ -7,7 +7,7 @@ "source": [ "# OpenAI Tools\n", "\n", - "These output parsers extract tool calls from OpenAI's function calling API responses. This means they are only usable with models that support function calling, and specifically the latest `tools` and `tool_choice` parameters. We recommend familiarizing yourself with [function calling](/docs/modules/model_io/chat/function_calling) before reading this gu\n", + "These output parsers extract tool calls from OpenAI's function calling API responses. This means they are only usable with models that support function calling, and specifically the latest `tools` and `tool_choice` parameters. We recommend familiarizing yourself with [function calling](/docs/modules/model_io/chat/function_calling) before reading this guide.\n", "\n", "There are a few different variants of output parsers:\n", "\n",