id
stringlengths
14
15
text
stringlengths
35
2.07k
embedding
sequence
source
stringlengths
61
154
3395111140a3-0
langchain.schema.Generation¶ class langchain.schema.Generation(*, text: str, generation_info: Optional[Dict[str, Any]] = None)[source]¶ Bases: Serializable Output of a single generation. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param generation_info: Optional[Dict[str, Any]] = None¶ Raw generation info response from the provider param text: str [Required]¶ Generated text output. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ This class is LangChain serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 67616, 55609, 198, 1058, 8859, 8995, 31992, 67616, 4163, 11, 1495, 25, 610, 11, 9659, 3186, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 25901, 198, 5207, 315, 264, 3254, 9659, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 9659, 3186, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 55609, 198, 20613, 9659, 3630, 2077, 505, 279, 9287, 198, 913, 1495, 25, 610, 510, 8327, 60, 55609, 198, 16118, 1495, 2612, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 2028, 538, 374, 23272, 19368, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.Generation.html
fa3089f62534-0
langchain.schema.messages_from_dict¶ langchain.schema.messages_from_dict(messages: List[dict]) → List[BaseMessage][source]¶ Convert messages from dict. Parameters messages – List of messages (dicts) to convert. Returns List of messages (BaseMessages).
[ 5317, 8995, 31992, 26381, 5791, 5356, 55609, 198, 5317, 8995, 31992, 26381, 5791, 5356, 56805, 25, 1796, 58, 8644, 2526, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 12281, 6743, 505, 6587, 627, 9905, 198, 16727, 1389, 1796, 315, 6743, 320, 8644, 82, 8, 311, 5625, 627, 16851, 198, 861, 315, 6743, 320, 4066, 16198, 570 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.messages_from_dict.html
0be82bcf9b94-0
langchain.schema.HumanMessage¶ class langchain.schema.HumanMessage(*, content: str, additional_kwargs: dict = None, example: bool = False)[source]¶ Bases: BaseMessage Type of message that is spoken by the human. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param additional_kwargs: dict [Optional]¶ param content: str [Required]¶ param example: bool = False¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ This class is LangChain serializable. property type: str¶ Type of the message, used for serialization. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 3924, 7282, 2097, 55609, 198, 1058, 8859, 8995, 31992, 3924, 7282, 2097, 4163, 11, 2262, 25, 610, 11, 5217, 37335, 25, 6587, 284, 2290, 11, 3187, 25, 1845, 284, 3641, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 2097, 198, 941, 315, 1984, 430, 374, 22066, 555, 279, 3823, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5217, 37335, 25, 6587, 510, 15669, 60, 55609, 198, 913, 2262, 25, 610, 510, 8327, 60, 55609, 198, 913, 3187, 25, 1845, 284, 3641, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 2028, 538, 374, 23272, 19368, 6275, 8499, 627, 3784, 955, 25, 610, 55609, 198, 941, 315, 279, 1984, 11, 1511, 369, 48543, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.HumanMessage.html
92059a5bc117-0
langchain.schema.BaseLLMOutputParser¶ class langchain.schema.BaseLLMOutputParser[source]¶ Bases: Serializable, ABC, Generic[T] Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. abstract parse_result(result: List[Generation]) → T[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 13316, 4178, 44, 5207, 6707, 55609, 198, 1058, 8859, 8995, 31992, 13316, 4178, 44, 5207, 6707, 76747, 60, 55609, 198, 33, 2315, 25, 25901, 11, 19921, 11, 21981, 20961, 933, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 16647, 4820, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.BaseLLMOutputParser.html
0af433734dff-0
langchain.schema.ChatGeneration¶ class langchain.schema.ChatGeneration(*, text: str = '', generation_info: Optional[Dict[str, Any]] = None, message: BaseMessage)[source]¶ Bases: Generation Output of a single generation. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param generation_info: Optional[Dict[str, Any]] = None¶ Raw generation info response from the provider param message: langchain.schema.BaseMessage [Required]¶ param text: str = ''¶ Generated text output. validator set_text  »  all fields[source]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ This class is LangChain serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 59944, 38238, 55609, 198, 1058, 8859, 8995, 31992, 59944, 38238, 4163, 11, 1495, 25, 610, 284, 9158, 9659, 3186, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 11, 1984, 25, 5464, 2097, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 24367, 198, 5207, 315, 264, 3254, 9659, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 9659, 3186, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 55609, 198, 20613, 9659, 3630, 2077, 505, 279, 9287, 198, 913, 1984, 25, 8859, 8995, 31992, 13316, 2097, 510, 8327, 60, 55609, 198, 913, 1495, 25, 610, 284, 3436, 55609, 198, 16118, 1495, 2612, 627, 16503, 743, 4424, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 2028, 538, 374, 23272, 19368, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.ChatGeneration.html
8408ca9e4b2b-0
langchain.schema.ChatResult¶ class langchain.schema.ChatResult(*, generations: List[ChatGeneration], llm_output: Optional[dict] = None)[source]¶ Bases: BaseModel Class that contains all relevant information for a Chat Result. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param generations: List[langchain.schema.ChatGeneration] [Required]¶ List of the things generated. param llm_output: Optional[dict] = None¶ For arbitrary LLM provider specific output.
[ 5317, 8995, 31992, 59944, 2122, 55609, 198, 1058, 8859, 8995, 31992, 59944, 2122, 4163, 11, 22540, 25, 1796, 58, 16047, 38238, 1145, 9507, 76, 7800, 25, 12536, 58, 8644, 60, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 65705, 198, 1999, 430, 5727, 682, 9959, 2038, 369, 264, 13149, 5832, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 22540, 25, 1796, 58, 5317, 8995, 31992, 59944, 38238, 60, 510, 8327, 60, 55609, 198, 861, 315, 279, 2574, 8066, 627, 913, 9507, 76, 7800, 25, 12536, 58, 8644, 60, 284, 2290, 55609, 198, 2520, 25142, 445, 11237, 9287, 3230, 2612, 13 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.ChatResult.html
ea58fbe25881-0
langchain.schema.SystemMessage¶ class langchain.schema.SystemMessage(*, content: str, additional_kwargs: dict = None)[source]¶ Bases: BaseMessage Type of message that is a system message. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param additional_kwargs: dict [Optional]¶ param content: str [Required]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ This class is LangChain serializable. property type: str¶ Type of the message, used for serialization. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 17031, 2097, 55609, 198, 1058, 8859, 8995, 31992, 17031, 2097, 4163, 11, 2262, 25, 610, 11, 5217, 37335, 25, 6587, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 2097, 198, 941, 315, 1984, 430, 374, 264, 1887, 1984, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5217, 37335, 25, 6587, 510, 15669, 60, 55609, 198, 913, 2262, 25, 610, 510, 8327, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 2028, 538, 374, 23272, 19368, 6275, 8499, 627, 3784, 955, 25, 610, 55609, 198, 941, 315, 279, 1984, 11, 1511, 369, 48543, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.SystemMessage.html
357dacf64473-0
langchain.schema.BaseOutputParser¶ class langchain.schema.BaseOutputParser[source]¶ Bases: BaseLLMOutputParser, ABC, Generic[T] Class to parse the output of an LLM call. Output parsers help structure language model responses. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. dict(**kwargs: Any) → Dict[source]¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. abstract parse(text: str) → T[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T[source]¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any[source]¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”]
[ 5317, 8995, 31992, 13316, 5207, 6707, 55609, 198, 1058, 8859, 8995, 31992, 13316, 5207, 6707, 76747, 60, 55609, 198, 33, 2315, 25, 5464, 4178, 44, 5207, 6707, 11, 19921, 11, 21981, 20961, 933, 1999, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 627, 5207, 88173, 1520, 6070, 4221, 1646, 14847, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 76747, 60, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 16647, 4820, 7383, 25, 610, 8, 11651, 350, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 76747, 60, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 60 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.BaseOutputParser.html
357dacf64473-1
eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.BaseOutputParser.html
19d9f3ce2720-0
langchain.schema.ChatMessage¶ class langchain.schema.ChatMessage(*, content: str, additional_kwargs: dict = None, role: str)[source]¶ Bases: BaseMessage Type of message with arbitrary speaker. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param additional_kwargs: dict [Optional]¶ param content: str [Required]¶ param role: str [Required]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ This class is LangChain serializable. property type: str¶ Type of the message, used for serialization. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 31992, 59944, 2097, 55609, 198, 1058, 8859, 8995, 31992, 59944, 2097, 4163, 11, 2262, 25, 610, 11, 5217, 37335, 25, 6587, 284, 2290, 11, 3560, 25, 610, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 2097, 198, 941, 315, 1984, 449, 25142, 19114, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5217, 37335, 25, 6587, 510, 15669, 60, 55609, 198, 913, 2262, 25, 610, 510, 8327, 60, 55609, 198, 913, 3560, 25, 610, 510, 8327, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 2028, 538, 374, 23272, 19368, 6275, 8499, 627, 3784, 955, 25, 610, 55609, 198, 941, 315, 279, 1984, 11, 1511, 369, 48543, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.ChatMessage.html
f1cbe1ca5358-0
langchain.schema.BaseDocumentTransformer¶ class langchain.schema.BaseDocumentTransformer[source]¶ Bases: ABC Base interface for transforming documents. Methods __init__() atransform_documents(documents, **kwargs) Asynchronously transform a list of documents. transform_documents(documents, **kwargs) Transform a list of documents. abstract async atransform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document][source]¶ Asynchronously transform a list of documents. abstract transform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document][source]¶ Transform a list of documents.
[ 5317, 8995, 31992, 13316, 7676, 47458, 55609, 198, 1058, 8859, 8995, 31992, 13316, 7676, 47458, 76747, 60, 55609, 198, 33, 2315, 25, 19921, 198, 4066, 3834, 369, 46890, 9477, 627, 18337, 198, 565, 2381, 33716, 266, 34489, 630, 77027, 19702, 2901, 11, 4194, 334, 9872, 340, 2170, 55294, 5276, 264, 1160, 315, 9477, 627, 4806, 77027, 19702, 2901, 11, 4194, 334, 9872, 340, 9140, 264, 1160, 315, 9477, 627, 16647, 3393, 264, 4806, 77027, 19702, 2901, 25, 29971, 58, 7676, 1145, 3146, 9872, 25, 5884, 8, 11651, 29971, 58, 7676, 1483, 2484, 60, 55609, 198, 2170, 55294, 5276, 264, 1160, 315, 9477, 627, 16647, 5276, 77027, 19702, 2901, 25, 29971, 58, 7676, 1145, 3146, 9872, 25, 5884, 8, 11651, 29971, 58, 7676, 1483, 2484, 60, 55609, 198, 9140, 264, 1160, 315, 9477, 13 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.BaseDocumentTransformer.html
b32c18e3b0a9-0
langchain.schema.get_buffer_string¶ langchain.schema.get_buffer_string(messages: List[BaseMessage], human_prefix: str = 'Human', ai_prefix: str = 'AI') → str[source]¶ Get buffer string of messages.
[ 5317, 8995, 31992, 673, 7932, 3991, 55609, 198, 5317, 8995, 31992, 673, 7932, 3991, 56805, 25, 1796, 58, 4066, 2097, 1145, 3823, 14301, 25, 610, 284, 364, 35075, 518, 16796, 14301, 25, 610, 284, 364, 15836, 873, 11651, 610, 76747, 60, 55609, 198, 1991, 4240, 925, 315, 6743, 13 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.get_buffer_string.html
33ef0fcf77dc-0
langchain.schema.NoOpOutputParser¶ class langchain.schema.NoOpOutputParser[source]¶ Bases: BaseOutputParser[str] Output parser that just returns the text as is. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str¶ Instructions on how the LLM output should be formatted. parse(text: str) → str[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids.
[ 5317, 8995, 31992, 17184, 7271, 5207, 6707, 55609, 198, 1058, 8859, 8995, 31992, 17184, 7271, 5207, 6707, 76747, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 17752, 933, 5207, 6871, 430, 1120, 4780, 279, 1495, 439, 374, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 610, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 13 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.NoOpOutputParser.html
33ef0fcf77dc-1
Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.NoOpOutputParser.html
bb5c412a276c-0
langchain.schema.BaseChatMessageHistory¶ class langchain.schema.BaseChatMessageHistory[source]¶ Bases: ABC Base interface for chat message history See ChatMessageHistory for default implementation. Methods __init__() add_ai_message(message) Add an AI message to the store add_message(message) Add a self-created message to the store add_user_message(message) Add a user message to the store clear() Remove all messages from the store Attributes messages add_ai_message(message: str) → None[source]¶ Add an AI message to the store add_message(message: BaseMessage) → None[source]¶ Add a self-created message to the store add_user_message(message: str) → None[source]¶ Add a user message to the store abstract clear() → None[source]¶ Remove all messages from the store messages: List[langchain.schema.BaseMessage]¶
[ 5317, 8995, 31992, 13316, 16047, 2097, 13730, 55609, 198, 1058, 8859, 8995, 31992, 13316, 16047, 2097, 13730, 76747, 60, 55609, 198, 33, 2315, 25, 19921, 198, 4066, 3834, 369, 6369, 1984, 3925, 198, 10031, 13149, 2097, 13730, 369, 1670, 8292, 627, 18337, 198, 565, 2381, 33716, 723, 70515, 6598, 7483, 340, 2261, 459, 15592, 1984, 311, 279, 3637, 198, 723, 6598, 7483, 340, 2261, 264, 659, 72057, 1984, 311, 279, 3637, 198, 723, 3398, 6598, 7483, 340, 2261, 264, 1217, 1984, 311, 279, 3637, 198, 7574, 746, 13319, 682, 6743, 505, 279, 3637, 198, 10738, 198, 16727, 198, 723, 70515, 6598, 7483, 25, 610, 8, 11651, 2290, 76747, 60, 55609, 198, 2261, 459, 15592, 1984, 311, 279, 3637, 198, 723, 6598, 7483, 25, 5464, 2097, 8, 11651, 2290, 76747, 60, 55609, 198, 2261, 264, 659, 72057, 1984, 311, 279, 3637, 198, 723, 3398, 6598, 7483, 25, 610, 8, 11651, 2290, 76747, 60, 55609, 198, 2261, 264, 1217, 1984, 311, 279, 3637, 198, 16647, 2867, 368, 11651, 2290, 76747, 60, 55609, 198, 13319, 682, 6743, 505, 279, 3637, 198, 16727, 25, 1796, 58, 5317, 8995, 31992, 13316, 2097, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.BaseChatMessageHistory.html
db419cb01799-0
langchain.schema.RunInfo¶ class langchain.schema.RunInfo(*, run_id: UUID)[source]¶ Bases: BaseModel Class that contains all relevant metadata for a Run. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param run_id: uuid.UUID [Required]¶
[ 5317, 8995, 31992, 17123, 1767, 55609, 198, 1058, 8859, 8995, 31992, 17123, 1767, 4163, 11, 1629, 851, 25, 24628, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 65705, 198, 1999, 430, 5727, 682, 9959, 11408, 369, 264, 6588, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1629, 851, 25, 16425, 40736, 510, 8327, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/schema/langchain.schema.RunInfo.html
41a4ec87d601-0
langchain.base_language.BaseLanguageModel¶ class langchain.base_language.BaseLanguageModel[source]¶ Bases: Serializable, ABC Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. abstract async agenerate_prompt(prompts: List[PromptValue], stop: Optional[List[str]] = None, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) → LLMResult[source]¶ Take in a list of prompt values and return an LLMResult. classmethod all_required_field_names() → Set[source]¶ abstract async apredict(text: str, *, stop: Optional[Sequence[str]] = None, **kwargs: Any) → str[source]¶ Predict text from text. abstract async apredict_messages(messages: List[BaseMessage], *, stop: Optional[Sequence[str]] = None, **kwargs: Any) → BaseMessage[source]¶ Predict message from messages. abstract generate_prompt(prompts: List[PromptValue], stop: Optional[List[str]] = None, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) → LLMResult[source]¶ Take in a list of prompt values and return an LLMResult. get_num_tokens(text: str) → int[source]¶ Get the number of tokens present in the text. get_num_tokens_from_messages(messages: List[BaseMessage]) → int[source]¶ Get the number of tokens in the message. get_token_ids(text: str) → List[int][source]¶ Get the token present in the text. abstract predict(text: str, *, stop: Optional[Sequence[str]] = None, **kwargs: Any) → str[source]¶ Predict text from text.
[ 5317, 8995, 9105, 30121, 13316, 14126, 1747, 55609, 198, 1058, 8859, 8995, 9105, 30121, 13316, 14126, 1747, 76747, 60, 55609, 198, 33, 2315, 25, 25901, 11, 19921, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 16647, 3393, 945, 13523, 62521, 84432, 13044, 25, 1796, 43447, 15091, 1150, 1145, 3009, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 27777, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 445, 11237, 2122, 76747, 60, 55609, 198, 18293, 304, 264, 1160, 315, 10137, 2819, 323, 471, 459, 445, 11237, 2122, 627, 27853, 682, 19265, 5121, 9366, 368, 11651, 2638, 76747, 60, 55609, 198, 16647, 3393, 1469, 9037, 7383, 25, 610, 11, 12039, 3009, 25, 12536, 58, 14405, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 54644, 1495, 505, 1495, 627, 16647, 3393, 1469, 9037, 24321, 56805, 25, 1796, 58, 4066, 2097, 1145, 12039, 3009, 25, 12536, 58, 14405, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5464, 2097, 76747, 60, 55609, 198, 54644, 1984, 505, 6743, 627, 16647, 7068, 62521, 84432, 13044, 25, 1796, 43447, 15091, 1150, 1145, 3009, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 27777, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 445, 11237, 2122, 76747, 60, 55609, 198, 18293, 304, 264, 1160, 315, 10137, 2819, 323, 471, 459, 445, 11237, 2122, 627, 456, 4369, 29938, 7383, 25, 610, 8, 11651, 528, 76747, 60, 55609, 198, 1991, 279, 1396, 315, 11460, 3118, 304, 279, 1495, 627, 456, 4369, 29938, 5791, 24321, 56805, 25, 1796, 58, 4066, 2097, 2526, 11651, 528, 76747, 60, 55609, 198, 1991, 279, 1396, 315, 11460, 304, 279, 1984, 627, 456, 6594, 8237, 7383, 25, 610, 8, 11651, 1796, 19155, 1483, 2484, 60, 55609, 198, 1991, 279, 4037, 3118, 304, 279, 1495, 627, 16647, 7168, 7383, 25, 610, 11, 12039, 3009, 25, 12536, 58, 14405, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 54644, 1495, 505, 1495, 13 ]
https://langchain.readthedocs.io/en/latest/base_language/langchain.base_language.BaseLanguageModel.html
41a4ec87d601-1
Predict text from text. abstract predict_messages(messages: List[BaseMessage], *, stop: Optional[Sequence[str]] = None, **kwargs: Any) → BaseMessage[source]¶ Predict message from messages. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 54644, 1495, 505, 1495, 627, 16647, 7168, 24321, 56805, 25, 1796, 58, 4066, 2097, 1145, 12039, 3009, 25, 12536, 58, 14405, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5464, 2097, 76747, 60, 55609, 198, 54644, 1984, 505, 6743, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/base_language/langchain.base_language.BaseLanguageModel.html
8a09e1dc2c2f-0
langchain.load.load.loads¶ langchain.load.load.loads(text: str, *, secrets_map: Optional[Dict[str, str]] = None) → Any[source]¶
[ 5317, 8995, 5214, 5214, 23818, 55609, 198, 5317, 8995, 5214, 5214, 23818, 7383, 25, 610, 11, 12039, 24511, 5489, 25, 12536, 58, 13755, 17752, 11, 610, 5163, 284, 2290, 8, 11651, 5884, 76747, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.load.loads.html
444d68d14635-0
langchain.load.serializable.SerializedSecret¶ class langchain.load.serializable.SerializedSecret[source]¶ Bases: dict Serialized secret. Methods __init__(*args, **kwargs) clear() copy() fromkeys([value]) Create a new dictionary with keys from iterable and values set to value. get(key[, default]) Return the value for key if key is in the dictionary, else default. items() keys() pop(k[,d]) If the key is not found, return the default if given; otherwise, raise a KeyError. popitem() Remove and return a (key, value) pair as a 2-tuple. setdefault(key[, default]) Insert key with a value of default if key is not in the dictionary. update([E, ]**F) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() Attributes type clear() → None.  Remove all items from D.¶ copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a view on D's keys¶ pop(k[, d]) → v, remove specified key and return the corresponding value.¶
[ 5317, 8995, 5214, 30918, 8499, 13717, 1534, 20357, 55609, 198, 1058, 8859, 8995, 5214, 30918, 8499, 13717, 1534, 20357, 76747, 60, 55609, 198, 33, 2315, 25, 6587, 198, 78621, 6367, 627, 18337, 198, 565, 2381, 69106, 2164, 11, 4194, 334, 9872, 340, 7574, 746, 8728, 746, 1527, 10786, 2625, 970, 2608, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 38372, 4194, 2309, 2608, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 746, 10786, 746, 8539, 6097, 38372, 67, 2608, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 11, 4933, 264, 39194, 627, 8539, 1224, 746, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 751, 2309, 4962, 38372, 4194, 2309, 2608, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 2443, 2625, 36, 11, 4194, 79441, 37, 340, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 60, 1442, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 763, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 746, 10738, 198, 1337, 198, 7574, 368, 11651, 2290, 13, 4194, 11016, 682, 3673, 505, 423, 13, 55609, 198, 8728, 368, 11651, 264, 26682, 3048, 315, 423, 55609, 198, 1527, 10786, 3764, 5980, 11, 611, 8, 55609, 198, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 3673, 55609, 198, 10786, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 7039, 55609, 198, 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedSecret.html
444d68d14635-1
pop(k[, d]) → v, remove specified key and return the corresponding value.¶ If the key is not found, return the default if given; otherwise, raise a KeyError. popitem()¶ Remove and return a (key, value) pair as a 2-tuple. Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty. setdefault(key, default=None, /)¶ Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. update([E, ]**F) → None.  Update D from dict/iterable E and F.¶ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() → an object providing a view on D's values¶ id: List[str]¶ lc: int¶ type: Literal['secret']¶
[ 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609, 198, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 345, 19223, 264, 39194, 627, 8539, 1224, 368, 55609, 198, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 55328, 527, 6052, 304, 445, 27088, 320, 4354, 3502, 11, 1176, 9994, 8, 2015, 627, 36120, 39194, 422, 279, 6587, 374, 4384, 627, 751, 2309, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 2443, 2625, 36, 11, 2331, 334, 37, 8, 11651, 2290, 13, 4194, 5666, 423, 505, 6587, 14, 2058, 481, 469, 323, 435, 13, 55609, 198, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 933, 2746, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 198, 644, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 368, 11651, 459, 1665, 8405, 264, 1684, 389, 423, 596, 2819, 55609, 198, 307, 25, 1796, 17752, 60, 55609, 198, 17704, 25, 528, 55609, 198, 1337, 25, 50774, 681, 21107, 663, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedSecret.html
97d7269d78ab-0
langchain.load.dump.dumpd¶ langchain.load.dump.dumpd(obj: Any) → Dict[str, Any][source]¶ Return a json dict representation of an object.
[ 5317, 8995, 5214, 28026, 28026, 67, 55609, 198, 5317, 8995, 5214, 28026, 28026, 67, 6922, 25, 5884, 8, 11651, 30226, 17752, 11, 5884, 1483, 2484, 60, 55609, 198, 5715, 264, 3024, 6587, 13340, 315, 459, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.dump.dumpd.html
6179edd97003-0
langchain.load.serializable.SerializedConstructor¶ class langchain.load.serializable.SerializedConstructor[source]¶ Bases: dict Serialized constructor. Methods __init__(*args, **kwargs) clear() copy() fromkeys([value]) Create a new dictionary with keys from iterable and values set to value. get(key[, default]) Return the value for key if key is in the dictionary, else default. items() keys() pop(k[,d]) If the key is not found, return the default if given; otherwise, raise a KeyError. popitem() Remove and return a (key, value) pair as a 2-tuple. setdefault(key[, default]) Insert key with a value of default if key is not in the dictionary. update([E, ]**F) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() Attributes type kwargs clear() → None.  Remove all items from D.¶ copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a view on D's keys¶ pop(k[, d]) → v, remove specified key and return the corresponding value.¶
[ 5317, 8995, 5214, 30918, 8499, 13717, 1534, 13591, 55609, 198, 1058, 8859, 8995, 5214, 30918, 8499, 13717, 1534, 13591, 76747, 60, 55609, 198, 33, 2315, 25, 6587, 198, 78621, 4797, 627, 18337, 198, 565, 2381, 69106, 2164, 11, 4194, 334, 9872, 340, 7574, 746, 8728, 746, 1527, 10786, 2625, 970, 2608, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 38372, 4194, 2309, 2608, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 746, 10786, 746, 8539, 6097, 38372, 67, 2608, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 11, 4933, 264, 39194, 627, 8539, 1224, 746, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 751, 2309, 4962, 38372, 4194, 2309, 2608, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 2443, 2625, 36, 11, 4194, 79441, 37, 340, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 60, 1442, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 763, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 746, 10738, 198, 1337, 198, 9872, 198, 7574, 368, 11651, 2290, 13, 4194, 11016, 682, 3673, 505, 423, 13, 55609, 198, 8728, 368, 11651, 264, 26682, 3048, 315, 423, 55609, 198, 1527, 10786, 3764, 5980, 11, 611, 8, 55609, 198, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 3673, 55609, 198, 10786, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 7039, 55609, 198, 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedConstructor.html
6179edd97003-1
pop(k[, d]) → v, remove specified key and return the corresponding value.¶ If the key is not found, return the default if given; otherwise, raise a KeyError. popitem()¶ Remove and return a (key, value) pair as a 2-tuple. Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty. setdefault(key, default=None, /)¶ Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. update([E, ]**F) → None.  Update D from dict/iterable E and F.¶ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() → an object providing a view on D's values¶ id: List[str]¶ kwargs: Dict[str, Any]¶ lc: int¶ type: Literal['constructor']¶
[ 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609, 198, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 345, 19223, 264, 39194, 627, 8539, 1224, 368, 55609, 198, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 55328, 527, 6052, 304, 445, 27088, 320, 4354, 3502, 11, 1176, 9994, 8, 2015, 627, 36120, 39194, 422, 279, 6587, 374, 4384, 627, 751, 2309, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 2443, 2625, 36, 11, 2331, 334, 37, 8, 11651, 2290, 13, 4194, 5666, 423, 505, 6587, 14, 2058, 481, 469, 323, 435, 13, 55609, 198, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 933, 2746, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 198, 644, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 368, 11651, 459, 1665, 8405, 264, 1684, 389, 423, 596, 2819, 55609, 198, 307, 25, 1796, 17752, 60, 55609, 198, 9872, 25, 30226, 17752, 11, 5884, 60, 55609, 198, 17704, 25, 528, 55609, 198, 1337, 25, 50774, 681, 22602, 663, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedConstructor.html
f47a1f39ff32-0
langchain.load.serializable.SerializedNotImplemented¶ class langchain.load.serializable.SerializedNotImplemented[source]¶ Bases: dict Serialized not implemented. Methods __init__(*args, **kwargs) clear() copy() fromkeys([value]) Create a new dictionary with keys from iterable and values set to value. get(key[, default]) Return the value for key if key is in the dictionary, else default. items() keys() pop(k[,d]) If the key is not found, return the default if given; otherwise, raise a KeyError. popitem() Remove and return a (key, value) pair as a 2-tuple. setdefault(key[, default]) Insert key with a value of default if key is not in the dictionary. update([E, ]**F) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() Attributes type clear() → None.  Remove all items from D.¶ copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a view on D's keys¶ pop(k[, d]) → v, remove specified key and return the corresponding value.¶
[ 5317, 8995, 5214, 30918, 8499, 13717, 1534, 2688, 18804, 55609, 198, 1058, 8859, 8995, 5214, 30918, 8499, 13717, 1534, 2688, 18804, 76747, 60, 55609, 198, 33, 2315, 25, 6587, 198, 78621, 539, 11798, 627, 18337, 198, 565, 2381, 69106, 2164, 11, 4194, 334, 9872, 340, 7574, 746, 8728, 746, 1527, 10786, 2625, 970, 2608, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 38372, 4194, 2309, 2608, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 746, 10786, 746, 8539, 6097, 38372, 67, 2608, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 11, 4933, 264, 39194, 627, 8539, 1224, 746, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 751, 2309, 4962, 38372, 4194, 2309, 2608, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 2443, 2625, 36, 11, 4194, 79441, 37, 340, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 60, 1442, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 763, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 746, 10738, 198, 1337, 198, 7574, 368, 11651, 2290, 13, 4194, 11016, 682, 3673, 505, 423, 13, 55609, 198, 8728, 368, 11651, 264, 26682, 3048, 315, 423, 55609, 198, 1527, 10786, 3764, 5980, 11, 611, 8, 55609, 198, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 3673, 55609, 198, 10786, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 7039, 55609, 198, 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedNotImplemented.html
f47a1f39ff32-1
pop(k[, d]) → v, remove specified key and return the corresponding value.¶ If the key is not found, return the default if given; otherwise, raise a KeyError. popitem()¶ Remove and return a (key, value) pair as a 2-tuple. Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty. setdefault(key, default=None, /)¶ Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. update([E, ]**F) → None.  Update D from dict/iterable E and F.¶ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() → an object providing a view on D's values¶ id: List[str]¶ lc: int¶ type: Literal['not_implemented']¶
[ 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609, 198, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 345, 19223, 264, 39194, 627, 8539, 1224, 368, 55609, 198, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 55328, 527, 6052, 304, 445, 27088, 320, 4354, 3502, 11, 1176, 9994, 8, 2015, 627, 36120, 39194, 422, 279, 6587, 374, 4384, 627, 751, 2309, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 2443, 2625, 36, 11, 2331, 334, 37, 8, 11651, 2290, 13, 4194, 5666, 423, 505, 6587, 14, 2058, 481, 469, 323, 435, 13, 55609, 198, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 933, 2746, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 198, 644, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 368, 11651, 459, 1665, 8405, 264, 1684, 389, 423, 596, 2819, 55609, 198, 307, 25, 1796, 17752, 60, 55609, 198, 17704, 25, 528, 55609, 198, 1337, 25, 50774, 681, 1962, 18377, 14565, 663, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.SerializedNotImplemented.html
c352feebe22a-0
langchain.load.serializable.to_json_not_implemented¶ langchain.load.serializable.to_json_not_implemented(obj: object) → SerializedNotImplemented[source]¶ Serialize a “not implemented” object. Parameters obj – object to serialize Returns SerializedNotImplemented
[ 5317, 8995, 5214, 30918, 8499, 2446, 9643, 8072, 18377, 14565, 55609, 198, 5317, 8995, 5214, 30918, 8499, 2446, 9643, 8072, 18377, 14565, 6922, 25, 1665, 8, 11651, 92572, 2688, 18804, 76747, 60, 55609, 198, 16055, 264, 1054, 1962, 11798, 863, 1665, 627, 9905, 198, 2347, 1389, 1665, 311, 25217, 198, 16851, 198, 78621, 2688, 18804 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.to_json_not_implemented.html
97b10cbdd40a-0
langchain.load.dump.dumps¶ langchain.load.dump.dumps(obj: Any, *, pretty: bool = False) → str[source]¶ Return a json string representation of an object.
[ 5317, 8995, 5214, 28026, 22252, 55609, 198, 5317, 8995, 5214, 28026, 22252, 6922, 25, 5884, 11, 12039, 5128, 25, 1845, 284, 3641, 8, 11651, 610, 76747, 60, 55609, 198, 5715, 264, 3024, 925, 13340, 315, 459, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.dump.dumps.html
59cfd0820b79-0
langchain.load.serializable.Serializable¶ class langchain.load.serializable.Serializable[source]¶ Bases: BaseModel, ABC Serializable base class. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. to_json() → Union[SerializedConstructor, SerializedNotImplemented][source]¶ to_json_not_implemented() → SerializedNotImplemented[source]¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config[source]¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 5214, 30918, 8499, 24643, 55609, 198, 1058, 8859, 8995, 5214, 30918, 8499, 24643, 76747, 60, 55609, 198, 33, 2315, 25, 65705, 11, 19921, 198, 30368, 2385, 538, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 1483, 2484, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 76747, 60, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 76747, 60, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.Serializable.html
e6ecff77f334-0
langchain.load.dump.default¶ langchain.load.dump.default(obj: Any) → Any[source]¶ Return a default value for a Serializable object or a SerializedNotImplemented object.
[ 5317, 8995, 5214, 28026, 8939, 55609, 198, 5317, 8995, 5214, 28026, 8939, 6922, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 5715, 264, 1670, 907, 369, 264, 25901, 1665, 477, 198, 64, 92572, 2688, 18804, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.dump.default.html
f5e18a23b021-0
langchain.load.serializable.BaseSerialized¶ class langchain.load.serializable.BaseSerialized[source]¶ Bases: TypedDict Base class for serialized objects. Methods __init__(*args, **kwargs) clear() copy() fromkeys([value]) Create a new dictionary with keys from iterable and values set to value. get(key[, default]) Return the value for key if key is in the dictionary, else default. items() keys() pop(k[,d]) If the key is not found, return the default if given; otherwise, raise a KeyError. popitem() Remove and return a (key, value) pair as a 2-tuple. setdefault(key[, default]) Insert key with a value of default if key is not in the dictionary. update([E, ]**F) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() Attributes lc id clear() → None.  Remove all items from D.¶ copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a view on D's keys¶ pop(k[, d]) → v, remove specified key and return the corresponding value.¶
[ 5317, 8995, 5214, 30918, 8499, 13316, 78621, 55609, 198, 1058, 8859, 8995, 5214, 30918, 8499, 13316, 78621, 76747, 60, 55609, 198, 33, 2315, 25, 51654, 13755, 198, 4066, 538, 369, 34016, 6302, 627, 18337, 198, 565, 2381, 69106, 2164, 11, 4194, 334, 9872, 340, 7574, 746, 8728, 746, 1527, 10786, 2625, 970, 2608, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 38372, 4194, 2309, 2608, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 746, 10786, 746, 8539, 6097, 38372, 67, 2608, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 11, 4933, 264, 39194, 627, 8539, 1224, 746, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 751, 2309, 4962, 38372, 4194, 2309, 2608, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 2443, 2625, 36, 11, 4194, 79441, 37, 340, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 60, 1442, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 763, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 746, 10738, 198, 17704, 198, 307, 198, 7574, 368, 11651, 2290, 13, 4194, 11016, 682, 3673, 505, 423, 13, 55609, 198, 8728, 368, 11651, 264, 26682, 3048, 315, 423, 55609, 198, 1527, 10786, 3764, 5980, 11, 611, 8, 55609, 198, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 3673, 55609, 198, 10786, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 7039, 55609, 198, 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.BaseSerialized.html
f5e18a23b021-1
pop(k[, d]) → v, remove specified key and return the corresponding value.¶ If the key is not found, return the default if given; otherwise, raise a KeyError. popitem()¶ Remove and return a (key, value) pair as a 2-tuple. Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty. setdefault(key, default=None, /)¶ Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. update([E, ]**F) → None.  Update D from dict/iterable E and F.¶ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() → an object providing a view on D's values¶ id: List[str]¶ lc: int¶
[ 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609, 198, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 345, 19223, 264, 39194, 627, 8539, 1224, 368, 55609, 198, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 55328, 527, 6052, 304, 445, 27088, 320, 4354, 3502, 11, 1176, 9994, 8, 2015, 627, 36120, 39194, 422, 279, 6587, 374, 4384, 627, 751, 2309, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 2443, 2625, 36, 11, 2331, 334, 37, 8, 11651, 2290, 13, 4194, 5666, 423, 505, 6587, 14, 2058, 481, 469, 323, 435, 13, 55609, 198, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 933, 2746, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 198, 644, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 368, 11651, 459, 1665, 8405, 264, 1684, 389, 423, 596, 2819, 55609, 198, 307, 25, 1796, 17752, 60, 55609, 198, 17704, 25, 528, 55609 ]
https://langchain.readthedocs.io/en/latest/load/langchain.load.serializable.BaseSerialized.html
00a9e29b2e3d-0
langchain.output_parsers.json.parse_and_check_json_markdown¶ langchain.output_parsers.json.parse_and_check_json_markdown(text: str, expected_keys: List[str]) → dict[source]¶ Parse a JSON string from a Markdown string and check that it contains the expected keys. Parameters text – The Markdown string. expected_keys – The expected keys in the JSON string. Returns The parsed JSON object as a Python dictionary.
[ 5317, 8995, 13718, 623, 41588, 4421, 4736, 8543, 7348, 9643, 19460, 2996, 55609, 198, 5317, 8995, 13718, 623, 41588, 4421, 4736, 8543, 7348, 9643, 19460, 2996, 7383, 25, 610, 11, 3685, 12919, 25, 1796, 17752, 2526, 11651, 6587, 76747, 60, 55609, 198, 14802, 264, 4823, 925, 505, 264, 74292, 925, 323, 1817, 430, 433, 198, 13676, 279, 3685, 7039, 627, 9905, 198, 1342, 1389, 578, 74292, 925, 627, 7475, 12919, 1389, 578, 3685, 7039, 304, 279, 4823, 925, 627, 16851, 198, 791, 16051, 4823, 1665, 439, 264, 13325, 11240, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.json.parse_and_check_json_markdown.html
701ac510672e-0
langchain.output_parsers.regex.RegexParser¶ class langchain.output_parsers.regex.RegexParser(*, regex: str, output_keys: List[str], default_output_key: Optional[str] = None)[source]¶ Bases: BaseOutputParser Class to parse the output into a dictionary. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param default_output_key: Optional[str] = None¶ param output_keys: List[str] [Required]¶ param regex: str [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str¶ Instructions on how the LLM output should be formatted. parse(text: str) → Dict[str, str][source]¶ Parse the output of an LLM call. parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”]
[ 5317, 8995, 13718, 623, 41588, 44218, 9166, 327, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 44218, 9166, 327, 6707, 4163, 11, 20791, 25, 610, 11, 2612, 12919, 25, 1796, 17752, 1145, 1670, 7800, 3173, 25, 12536, 17752, 60, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 1999, 311, 4820, 279, 2612, 1139, 264, 11240, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1670, 7800, 3173, 25, 12536, 17752, 60, 284, 2290, 55609, 198, 913, 2612, 12919, 25, 1796, 17752, 60, 510, 8327, 60, 55609, 198, 913, 20791, 25, 610, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 30226, 17752, 11, 610, 1483, 2484, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 60 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.regex.RegexParser.html
701ac510672e-1
eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.regex.RegexParser.html
dd7444cc1882-0
langchain.output_parsers.retry.RetryWithErrorOutputParser¶ class langchain.output_parsers.retry.RetryWithErrorOutputParser(*, parser: BaseOutputParser[T], retry_chain: LLMChain)[source]¶ Bases: BaseOutputParser[T] Wraps a parser and tries to fix parsing errors. Does this by passing the original prompt, the completion, AND the error that was raised to another language model and telling it that the completion did not work, and raised the given error. Differs from RetryOutputParser in that this implementation provides the error that was raised back to the LLM, which in theory should give it more information on how to fix it. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param parser: langchain.schema.BaseOutputParser[langchain.output_parsers.retry.T] [Required]¶ param retry_chain: langchain.chains.llm.LLMChain [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. classmethod from_llm(llm: BaseLanguageModel, parser: BaseOutputParser[T], prompt: BasePromptTemplate = PromptTemplate(input_variables=['completion', 'error', 'prompt'], output_parser=None, partial_variables={}, template='Prompt:\n{prompt}\nCompletion:\n{completion}\n\nAbove, the Completion did not satisfy the constraints given in the Prompt.\nDetails: {error}\nPlease try again:', template_format='f-string', validate_template=True)) → RetryWithErrorOutputParser[T][source]¶ get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(completion: str) → T[source]¶ Parse the output of an LLM call.
[ 5317, 8995, 13718, 623, 41588, 87939, 2056, 15501, 67202, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 87939, 2056, 15501, 67202, 5207, 6707, 4163, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 23515, 31683, 25, 445, 11237, 19368, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 20961, 933, 36314, 2690, 264, 6871, 323, 16696, 311, 5155, 23115, 6103, 627, 22186, 420, 555, 12579, 279, 4113, 10137, 11, 279, 9954, 11, 3651, 279, 1493, 198, 9210, 574, 9408, 311, 2500, 4221, 1646, 323, 11890, 433, 430, 279, 9954, 198, 23770, 539, 990, 11, 323, 9408, 279, 2728, 1493, 13, 29469, 388, 505, 79970, 5207, 6707, 198, 258, 430, 420, 8292, 5825, 279, 1493, 430, 574, 9408, 1203, 311, 279, 198, 4178, 44, 11, 902, 304, 10334, 1288, 3041, 433, 810, 2038, 389, 1268, 311, 5155, 433, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 6871, 25, 8859, 8995, 31992, 13316, 5207, 6707, 58, 5317, 8995, 13718, 623, 41588, 87939, 844, 60, 510, 8327, 60, 55609, 198, 913, 23515, 31683, 25, 8859, 8995, 5442, 1771, 60098, 76, 1236, 11237, 19368, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 27853, 505, 44095, 76, 36621, 76, 25, 5464, 14126, 1747, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 10137, 25, 5464, 55715, 7423, 284, 60601, 7423, 5498, 29282, 14314, 44412, 518, 364, 850, 518, 364, 41681, 4181, 2612, 19024, 5980, 11, 7276, 29282, 68525, 3896, 1151, 55715, 7338, 77, 90, 41681, 11281, 77, 34290, 7338, 77, 90, 44412, 11281, 77, 1734, 59907, 11, 279, 57350, 1550, 539, 27651, 279, 17413, 2728, 304, 279, 60601, 7255, 77, 7955, 25, 314, 850, 11281, 77, 5618, 1456, 1578, 17898, 3896, 9132, 1151, 69, 31981, 518, 9788, 8864, 3702, 595, 11651, 79970, 67202, 5207, 6707, 20961, 1483, 2484, 60, 55609, 198, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 91868, 25, 610, 8, 11651, 350, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.retry.RetryWithErrorOutputParser.html
dd7444cc1882-1
Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt_value: PromptValue) → T[source]¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 3220, 25, 60601, 1150, 8, 11651, 350, 76747, 60, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.retry.RetryWithErrorOutputParser.html
47fca95fc3f9-0
langchain.output_parsers.combining.CombiningOutputParser¶ class langchain.output_parsers.combining.CombiningOutputParser(*, parsers: List[BaseOutputParser])[source]¶ Bases: BaseOutputParser Class to combine multiple output parsers into one. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param parsers: List[langchain.schema.BaseOutputParser] [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(text: str) → Dict[str, Any][source]¶ Parse the output of an LLM call. parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ validator validate_parsers  »  all fields[source]¶ Validate the parsers. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”]
[ 5317, 8995, 13718, 623, 41588, 916, 65, 5859, 732, 2925, 5859, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 916, 65, 5859, 732, 2925, 5859, 5207, 6707, 4163, 11, 88173, 25, 1796, 58, 4066, 5207, 6707, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 1999, 311, 16343, 5361, 2612, 88173, 1139, 832, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 88173, 25, 1796, 58, 5317, 8995, 31992, 13316, 5207, 6707, 60, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 30226, 17752, 11, 5884, 1483, 2484, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16503, 9788, 623, 41588, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 18409, 279, 88173, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 60 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.combining.CombiningOutputParser.html
47fca95fc3f9-1
eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.combining.CombiningOutputParser.html
d9d7751c50e4-0
langchain.output_parsers.openai_functions.OutputFunctionsParser¶ class langchain.output_parsers.openai_functions.OutputFunctionsParser(*, args_only: bool = True)[source]¶ Bases: BaseLLMOutputParser[Any] Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param args_only: bool = True¶ parse_result(result: List[Generation]) → Any[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 13718, 623, 41588, 5949, 2192, 32808, 35346, 26272, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 5949, 2192, 32808, 35346, 26272, 6707, 4163, 11, 2897, 18917, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 4178, 44, 5207, 6707, 71401, 933, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2897, 18917, 25, 1845, 284, 3082, 55609, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 5884, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.openai_functions.OutputFunctionsParser.html
a446ff36f52c-0
langchain.output_parsers.structured.StructuredOutputParser¶ class langchain.output_parsers.structured.StructuredOutputParser(*, response_schemas: List[ResponseSchema])[source]¶ Bases: BaseOutputParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param response_schemas: List[langchain.output_parsers.structured.ResponseSchema] [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. classmethod from_response_schemas(response_schemas: List[ResponseSchema]) → StructuredOutputParser[source]¶ get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(text: str) → Any[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶
[ 5317, 8995, 13718, 623, 41588, 13, 52243, 52545, 3149, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 13, 52243, 52545, 3149, 5207, 6707, 4163, 11, 2077, 646, 32226, 25, 1796, 58, 2647, 8802, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2077, 646, 32226, 25, 1796, 58, 5317, 8995, 13718, 623, 41588, 13, 52243, 12859, 8802, 60, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 27853, 505, 9852, 646, 32226, 5802, 646, 32226, 25, 1796, 58, 2647, 8802, 2526, 11651, 16531, 3149, 5207, 6707, 76747, 60, 55609, 198, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 5884, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.structured.StructuredOutputParser.html
a446ff36f52c-1
constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.structured.StructuredOutputParser.html
d7465871506b-0
langchain.output_parsers.list.CommaSeparatedListOutputParser¶ class langchain.output_parsers.list.CommaSeparatedListOutputParser[source]¶ Bases: ListOutputParser Parse out comma separated lists. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(text: str) → List[str][source]¶ Parse the output of an LLM call. parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶
[ 5317, 8995, 13718, 623, 41588, 6556, 3034, 1764, 93025, 861, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 6556, 3034, 1764, 93025, 861, 5207, 6707, 76747, 60, 55609, 198, 33, 2315, 25, 1796, 5207, 6707, 198, 14802, 704, 32783, 19180, 11725, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 1796, 17752, 1483, 2484, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.list.CommaSeparatedListOutputParser.html
d7465871506b-1
property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.list.CommaSeparatedListOutputParser.html
074b16e958bb-0
langchain.output_parsers.fix.OutputFixingParser¶ class langchain.output_parsers.fix.OutputFixingParser(*, parser: BaseOutputParser[T], retry_chain: LLMChain)[source]¶ Bases: BaseOutputParser[T] Wraps a parser and tries to fix parsing errors. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param parser: langchain.schema.BaseOutputParser[langchain.output_parsers.fix.T] [Required]¶ param retry_chain: langchain.chains.llm.LLMChain [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. classmethod from_llm(llm: BaseLanguageModel, parser: BaseOutputParser[T], prompt: BasePromptTemplate = PromptTemplate(input_variables=['completion', 'error', 'instructions'], output_parser=None, partial_variables={}, template='Instructions:\n--------------\n{instructions}\n--------------\nCompletion:\n--------------\n{completion}\n--------------\n\nAbove, the Completion did not satisfy the constraints given in the Instructions.\nError:\n--------------\n{error}\n--------------\n\nPlease try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:', template_format='f-string', validate_template=True)) → OutputFixingParser[T][source]¶ get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(completion: str) → T[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result.
[ 5317, 8995, 13718, 623, 41588, 68885, 35346, 27048, 287, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 68885, 35346, 27048, 287, 6707, 4163, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 23515, 31683, 25, 445, 11237, 19368, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 20961, 933, 36314, 2690, 264, 6871, 323, 16696, 311, 5155, 23115, 6103, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 6871, 25, 8859, 8995, 31992, 13316, 5207, 6707, 58, 5317, 8995, 13718, 623, 41588, 68885, 844, 60, 510, 8327, 60, 55609, 198, 913, 23515, 31683, 25, 8859, 8995, 5442, 1771, 60098, 76, 1236, 11237, 19368, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 27853, 505, 44095, 76, 36621, 76, 25, 5464, 14126, 1747, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 10137, 25, 5464, 55715, 7423, 284, 60601, 7423, 5498, 29282, 14314, 44412, 518, 364, 850, 518, 364, 63395, 4181, 2612, 19024, 5980, 11, 7276, 29282, 68525, 3896, 1151, 56391, 7338, 77, 43191, 59, 77, 90, 63395, 11281, 77, 43191, 59, 77, 34290, 7338, 77, 43191, 59, 77, 90, 44412, 11281, 77, 43191, 59, 77, 1734, 59907, 11, 279, 57350, 1550, 539, 27651, 279, 17413, 2728, 304, 279, 39397, 7255, 77, 1480, 7338, 77, 43191, 59, 77, 90, 850, 11281, 77, 43191, 59, 77, 1734, 5618, 1456, 1578, 13, 5321, 1193, 6013, 449, 459, 4320, 430, 69001, 279, 17413, 17551, 704, 304, 279, 39397, 17898, 3896, 9132, 1151, 69, 31981, 518, 9788, 8864, 3702, 595, 11651, 9442, 27048, 287, 6707, 20961, 1483, 2484, 60, 55609, 198, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 91868, 25, 610, 8, 11651, 350, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.fix.OutputFixingParser.html
074b16e958bb-1
parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.fix.OutputFixingParser.html
6a3dd9373615-0
langchain.output_parsers.json.parse_json_markdown¶ langchain.output_parsers.json.parse_json_markdown(json_string: str) → dict[source]¶ Parse a JSON string from a Markdown string. Parameters json_string – The Markdown string. Returns The parsed JSON object as a Python dictionary.
[ 5317, 8995, 13718, 623, 41588, 4421, 4736, 9643, 19460, 2996, 55609, 198, 5317, 8995, 13718, 623, 41588, 4421, 4736, 9643, 19460, 2996, 9488, 3991, 25, 610, 8, 11651, 6587, 76747, 60, 55609, 198, 14802, 264, 4823, 925, 505, 264, 74292, 925, 627, 9905, 198, 2285, 3991, 1389, 578, 74292, 925, 627, 16851, 198, 791, 16051, 4823, 1665, 439, 264, 13325, 11240, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.json.parse_json_markdown.html
b3e2a14a33ed-0
langchain.output_parsers.boolean.BooleanOutputParser¶ class langchain.output_parsers.boolean.BooleanOutputParser(*, true_val: str = 'YES', false_val: str = 'NO')[source]¶ Bases: BaseOutputParser[bool] Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param false_val: str = 'NO'¶ param true_val: str = 'YES'¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str¶ Instructions on how the LLM output should be formatted. parse(text: str) → bool[source]¶ Parse the output of an LLM call to a boolean. Parameters text – output of language model Returns boolean parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶
[ 5317, 8995, 13718, 623, 41588, 58634, 19712, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 58634, 19712, 5207, 6707, 4163, 11, 837, 6320, 25, 610, 284, 364, 14331, 518, 905, 6320, 25, 610, 284, 364, 9173, 13588, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 58, 2707, 933, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 905, 6320, 25, 610, 284, 364, 9173, 6, 55609, 198, 913, 837, 6320, 25, 610, 284, 364, 14331, 6, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 1845, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 311, 264, 2777, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 6245, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.boolean.BooleanOutputParser.html
b3e2a14a33ed-1
property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.boolean.BooleanOutputParser.html
bf34a456224e-0
langchain.output_parsers.openai_functions.JsonKeyOutputFunctionsParser¶ class langchain.output_parsers.openai_functions.JsonKeyOutputFunctionsParser(*, args_only: bool = True, key_name: str)[source]¶ Bases: JsonOutputFunctionsParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param args_only: bool = True¶ param key_name: str [Required]¶ parse_result(result: List[Generation]) → Any[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 13718, 623, 41588, 5949, 2192, 32808, 13874, 1622, 5207, 26272, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 5949, 2192, 32808, 13874, 1622, 5207, 26272, 6707, 4163, 11, 2897, 18917, 25, 1845, 284, 3082, 11, 1401, 1292, 25, 610, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 8472, 5207, 26272, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2897, 18917, 25, 1845, 284, 3082, 55609, 198, 913, 1401, 1292, 25, 610, 510, 8327, 60, 55609, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 5884, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.openai_functions.JsonKeyOutputFunctionsParser.html
14cd8d5f6a96-0
langchain.output_parsers.rail_parser.GuardrailsOutputParser¶ class langchain.output_parsers.rail_parser.GuardrailsOutputParser(*, guard: Any = None, api: Optional[Callable] = None, args: Any = None, kwargs: Any = None)[source]¶ Bases: BaseOutputParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param api: Optional[Callable] = None¶ param args: Any = None¶ param guard: Any = None¶ param kwargs: Any = None¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. classmethod from_pydantic(output_class: Any, num_reasks: int = 1, api: Optional[Callable] = None, *args: Any, **kwargs: Any) → GuardrailsOutputParser[source]¶ classmethod from_rail(rail_file: str, num_reasks: int = 1, api: Optional[Callable] = None, *args: Any, **kwargs: Any) → GuardrailsOutputParser[source]¶ classmethod from_rail_string(rail_str: str, num_reasks: int = 1, api: Optional[Callable] = None, *args: Any, **kwargs: Any) → GuardrailsOutputParser[source]¶ get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(text: str) → Dict[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result.
[ 5317, 8995, 13718, 623, 41588, 1783, 607, 19024, 1246, 11280, 38445, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 1783, 607, 19024, 1246, 11280, 38445, 5207, 6707, 4163, 11, 7771, 25, 5884, 284, 2290, 11, 6464, 25, 12536, 58, 41510, 60, 284, 2290, 11, 2897, 25, 5884, 284, 2290, 11, 16901, 25, 5884, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 6464, 25, 12536, 58, 41510, 60, 284, 2290, 55609, 198, 913, 2897, 25, 5884, 284, 2290, 55609, 198, 913, 7771, 25, 5884, 284, 2290, 55609, 198, 913, 16901, 25, 5884, 284, 2290, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 27853, 505, 623, 41221, 8322, 11304, 4895, 25, 5884, 11, 1661, 1311, 4707, 25, 528, 284, 220, 16, 11, 6464, 25, 12536, 58, 41510, 60, 284, 2290, 11, 353, 2164, 25, 5884, 11, 3146, 9872, 25, 5884, 8, 11651, 12542, 38445, 5207, 6707, 76747, 60, 55609, 198, 27853, 505, 1745, 607, 2666, 607, 2517, 25, 610, 11, 1661, 1311, 4707, 25, 528, 284, 220, 16, 11, 6464, 25, 12536, 58, 41510, 60, 284, 2290, 11, 353, 2164, 25, 5884, 11, 3146, 9872, 25, 5884, 8, 11651, 12542, 38445, 5207, 6707, 76747, 60, 55609, 198, 27853, 505, 1745, 607, 3991, 2666, 607, 2966, 25, 610, 11, 1661, 1311, 4707, 25, 528, 284, 220, 16, 11, 6464, 25, 12536, 58, 41510, 60, 284, 2290, 11, 353, 2164, 25, 5884, 11, 3146, 9872, 25, 5884, 8, 11651, 12542, 38445, 5207, 6707, 76747, 60, 55609, 198, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 30226, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.rail_parser.GuardrailsOutputParser.html
14cd8d5f6a96-1
parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.rail_parser.GuardrailsOutputParser.html
ee3e38a97cfd-0
langchain.output_parsers.enum.EnumOutputParser¶ class langchain.output_parsers.enum.EnumOutputParser(*, enum: Type[Enum])[source]¶ Bases: BaseOutputParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param enum: Type[enum.Enum] [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(response: str) → Any[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output validator raise_deprecation  »  all fields[source]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object.
[ 5317, 8995, 13718, 623, 41588, 71283, 44325, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 71283, 44325, 5207, 6707, 4163, 11, 7773, 25, 4078, 58, 10999, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 7773, 25, 4078, 58, 9195, 44325, 60, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 5802, 25, 610, 8, 11651, 5884, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 16503, 4933, 2310, 70693, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.enum.EnumOutputParser.html
ee3e38a97cfd-1
property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.enum.EnumOutputParser.html
c8e5ddc1c5ee-0
langchain.output_parsers.openai_functions.JsonOutputFunctionsParser¶ class langchain.output_parsers.openai_functions.JsonOutputFunctionsParser(*, args_only: bool = True)[source]¶ Bases: OutputFunctionsParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param args_only: bool = True¶ parse_result(result: List[Generation]) → Any[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 13718, 623, 41588, 5949, 2192, 32808, 13874, 5207, 26272, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 5949, 2192, 32808, 13874, 5207, 26272, 6707, 4163, 11, 2897, 18917, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 9442, 26272, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2897, 18917, 25, 1845, 284, 3082, 55609, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 5884, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.openai_functions.JsonOutputFunctionsParser.html
7bfb587c0c2a-0
langchain.output_parsers.loading.load_output_parser¶ langchain.output_parsers.loading.load_output_parser(config: dict) → dict[source]¶ Load output parser.
[ 5317, 8995, 13718, 623, 41588, 25908, 5214, 7800, 19024, 55609, 198, 5317, 8995, 13718, 623, 41588, 25908, 5214, 7800, 19024, 8928, 25, 6587, 8, 11651, 6587, 76747, 60, 55609, 198, 6003, 2612, 6871, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.loading.load_output_parser.html
980dad920e9f-0
langchain.output_parsers.datetime.DatetimeOutputParser¶ class langchain.output_parsers.datetime.DatetimeOutputParser(*, format: str = '%Y-%m-%dT%H:%M:%S.%fZ')[source]¶ Bases: BaseOutputParser[datetime] Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param format: str = '%Y-%m-%dT%H:%M:%S.%fZ'¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(response: str) → datetime[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object.
[ 5317, 8995, 13718, 623, 41588, 20296, 920, 28762, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 20296, 920, 28762, 5207, 6707, 4163, 11, 3645, 25, 610, 284, 7832, 56, 11316, 76, 11316, 91463, 77931, 7685, 44, 7685, 50, 23253, 69, 57, 13588, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 58, 15814, 933, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 3645, 25, 610, 284, 7832, 56, 11316, 76, 11316, 91463, 77931, 7685, 44, 7685, 50, 23253, 69, 57, 6, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 5802, 25, 610, 8, 11651, 9050, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.datetime.DatetimeOutputParser.html
980dad920e9f-1
property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.datetime.DatetimeOutputParser.html
8b90fc235465-0
langchain.output_parsers.pydantic.PydanticOutputParser¶ class langchain.output_parsers.pydantic.PydanticOutputParser(*, pydantic_object: Type[T])[source]¶ Bases: BaseOutputParser[T] Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param pydantic_object: Type[langchain.output_parsers.pydantic.T] [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(text: str) → T[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object.
[ 5317, 8995, 13718, 623, 41588, 7345, 67, 8322, 1087, 41221, 8322, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 7345, 67, 8322, 1087, 41221, 8322, 5207, 6707, 4163, 11, 4611, 67, 8322, 5427, 25, 4078, 20961, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 20961, 933, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 4611, 67, 8322, 5427, 25, 4078, 58, 5317, 8995, 13718, 623, 41588, 7345, 67, 8322, 844, 60, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 350, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.pydantic.PydanticOutputParser.html
8b90fc235465-1
property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.pydantic.PydanticOutputParser.html
24a756c3511f-0
langchain.output_parsers.regex_dict.RegexDictParser¶ class langchain.output_parsers.regex_dict.RegexDictParser(*, regex_pattern: str = "{}:\\s?([^.'\\n']*)\\.?", output_key_to_format: Dict[str, str], no_update_value: Optional[str] = None)[source]¶ Bases: BaseOutputParser Class to parse the output into a dictionary. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param no_update_value: Optional[str] = None¶ param output_key_to_format: Dict[str, str] [Required]¶ param regex_pattern: str = "{}:\\s?([^.'\\n']*)\\.?"¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str¶ Instructions on how the LLM output should be formatted. parse(text: str) → Dict[str, str][source]¶ Parse the output of an LLM call. parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor.
[ 5317, 8995, 13718, 623, 41588, 44218, 5356, 9166, 327, 13755, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 44218, 5356, 9166, 327, 13755, 6707, 4163, 11, 20791, 21957, 25, 610, 284, 36603, 24754, 82, 30, 71219, 3238, 3505, 77, 663, 3849, 68257, 32111, 2612, 3173, 2401, 9132, 25, 30226, 17752, 11, 610, 1145, 912, 9058, 3220, 25, 12536, 17752, 60, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 1999, 311, 4820, 279, 2612, 1139, 264, 11240, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 912, 9058, 3220, 25, 12536, 17752, 60, 284, 2290, 55609, 198, 913, 2612, 3173, 2401, 9132, 25, 30226, 17752, 11, 610, 60, 510, 8327, 60, 55609, 198, 913, 20791, 21957, 25, 610, 284, 36603, 24754, 82, 30, 71219, 3238, 3505, 77, 663, 3849, 68257, 7673, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 7383, 25, 610, 8, 11651, 30226, 17752, 11, 610, 1483, 2484, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.regex_dict.RegexDictParser.html
24a756c3511f-1
serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.regex_dict.RegexDictParser.html
3c912129f729-0
langchain.output_parsers.list.ListOutputParser¶ class langchain.output_parsers.list.ListOutputParser[source]¶ Bases: BaseOutputParser Class to parse the output of an LLM call to a list. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. get_format_instructions() → str¶ Instructions on how the LLM output should be formatted. abstract parse(text: str) → List[str][source]¶ Parse the output of an LLM call. parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt: PromptValue) → Any¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶
[ 5317, 8995, 13718, 623, 41588, 6556, 5937, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 6556, 5937, 5207, 6707, 76747, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 198, 1999, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 311, 264, 1160, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 456, 9132, 83527, 368, 11651, 610, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 16647, 4820, 7383, 25, 610, 8, 11651, 1796, 17752, 1483, 2484, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 25, 60601, 1150, 8, 11651, 5884, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.list.ListOutputParser.html
3c912129f729-1
property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.list.ListOutputParser.html
47e06b90bb11-0
langchain.output_parsers.openai_functions.PydanticOutputFunctionsParser¶ class langchain.output_parsers.openai_functions.PydanticOutputFunctionsParser(*, args_only: bool = True, pydantic_schema: Any = None)[source]¶ Bases: OutputFunctionsParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param args_only: bool = True¶ param pydantic_schema: Any = None¶ parse_result(result: List[Generation]) → Any[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 13718, 623, 41588, 5949, 2192, 32808, 1087, 41221, 8322, 5207, 26272, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 5949, 2192, 32808, 1087, 41221, 8322, 5207, 26272, 6707, 4163, 11, 2897, 18917, 25, 1845, 284, 3082, 11, 4611, 67, 8322, 26443, 25, 5884, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 9442, 26272, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2897, 18917, 25, 1845, 284, 3082, 55609, 198, 913, 4611, 67, 8322, 26443, 25, 5884, 284, 2290, 55609, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 5884, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.openai_functions.PydanticOutputFunctionsParser.html
3027294ac240-0
langchain.output_parsers.structured.ResponseSchema¶ class langchain.output_parsers.structured.ResponseSchema(*, name: str, description: str, type: str = 'string')[source]¶ Bases: BaseModel Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param description: str [Required]¶ param name: str [Required]¶ param type: str = 'string'¶
[ 5317, 8995, 13718, 623, 41588, 13, 52243, 12859, 8802, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 13, 52243, 12859, 8802, 4163, 11, 836, 25, 610, 11, 4096, 25, 610, 11, 955, 25, 610, 284, 364, 928, 13588, 2484, 60, 55609, 198, 33, 2315, 25, 65705, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 4096, 25, 610, 510, 8327, 60, 55609, 198, 913, 836, 25, 610, 510, 8327, 60, 55609, 198, 913, 955, 25, 610, 284, 364, 928, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.structured.ResponseSchema.html
09ff59925e03-0
langchain.output_parsers.retry.RetryOutputParser¶ class langchain.output_parsers.retry.RetryOutputParser(*, parser: BaseOutputParser[T], retry_chain: LLMChain)[source]¶ Bases: BaseOutputParser[T] Wraps a parser and tries to fix parsing errors. Does this by passing the original prompt and the completion to another LLM, and telling it the completion did not satisfy criteria in the prompt. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param parser: langchain.schema.BaseOutputParser[langchain.output_parsers.retry.T] [Required]¶ param retry_chain: langchain.chains.llm.LLMChain [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of output parser. classmethod from_llm(llm: BaseLanguageModel, parser: BaseOutputParser[T], prompt: BasePromptTemplate = PromptTemplate(input_variables=['completion', 'prompt'], output_parser=None, partial_variables={}, template='Prompt:\n{prompt}\nCompletion:\n{completion}\n\nAbove, the Completion did not satisfy the constraints given in the Prompt.\nPlease try again:', template_format='f-string', validate_template=True)) → RetryOutputParser[T][source]¶ get_format_instructions() → str[source]¶ Instructions on how the LLM output should be formatted. parse(completion: str) → T[source]¶ Parse the output of an LLM call. A method which takes in a string (assumed output of a language model ) and parses it into some structure. Parameters text – output of language model Returns structured output parse_result(result: List[Generation]) → T¶ Parse LLM Result.
[ 5317, 8995, 13718, 623, 41588, 87939, 2056, 15501, 5207, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 87939, 2056, 15501, 5207, 6707, 4163, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 23515, 31683, 25, 445, 11237, 19368, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 5207, 6707, 20961, 933, 36314, 2690, 264, 6871, 323, 16696, 311, 5155, 23115, 6103, 627, 22186, 420, 555, 12579, 279, 4113, 10137, 323, 279, 9954, 311, 2500, 198, 4178, 44, 11, 323, 11890, 433, 279, 9954, 1550, 539, 27651, 13186, 304, 279, 10137, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 6871, 25, 8859, 8995, 31992, 13316, 5207, 6707, 58, 5317, 8995, 13718, 623, 41588, 87939, 844, 60, 510, 8327, 60, 55609, 198, 913, 23515, 31683, 25, 8859, 8995, 5442, 1771, 60098, 76, 1236, 11237, 19368, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 2612, 6871, 627, 27853, 505, 44095, 76, 36621, 76, 25, 5464, 14126, 1747, 11, 6871, 25, 5464, 5207, 6707, 20961, 1145, 10137, 25, 5464, 55715, 7423, 284, 60601, 7423, 5498, 29282, 14314, 44412, 518, 364, 41681, 4181, 2612, 19024, 5980, 11, 7276, 29282, 68525, 3896, 1151, 55715, 7338, 77, 90, 41681, 11281, 77, 34290, 7338, 77, 90, 44412, 11281, 77, 1734, 59907, 11, 279, 57350, 1550, 539, 27651, 279, 17413, 2728, 304, 279, 60601, 7255, 77, 5618, 1456, 1578, 17898, 3896, 9132, 1151, 69, 31981, 518, 9788, 8864, 3702, 595, 11651, 79970, 5207, 6707, 20961, 1483, 2484, 60, 55609, 198, 456, 9132, 83527, 368, 11651, 610, 76747, 60, 55609, 198, 56391, 389, 1268, 279, 445, 11237, 2612, 1288, 387, 24001, 627, 6534, 91868, 25, 610, 8, 11651, 350, 76747, 60, 55609, 198, 14802, 279, 2612, 315, 459, 445, 11237, 1650, 627, 32, 1749, 902, 5097, 304, 264, 925, 320, 395, 39255, 2612, 315, 264, 4221, 1646, 1763, 438, 71935, 433, 1139, 1063, 6070, 627, 9905, 198, 1342, 1389, 2612, 315, 4221, 1646, 198, 16851, 198, 52243, 2612, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 13 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.retry.RetryOutputParser.html
09ff59925e03-1
parse_result(result: List[Generation]) → T¶ Parse LLM Result. parse_with_prompt(completion: str, prompt_value: PromptValue) → T[source]¶ Optional method to parse the output of an LLM call with a prompt. The prompt is largely provided in the event the OutputParser wants to retry or fix the output in some way, and needs information from the prompt to do so. Parameters completion – output of language model prompt – prompt value Returns structured output to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 350, 55609, 198, 14802, 445, 11237, 5832, 627, 6534, 6753, 62521, 91868, 25, 610, 11, 10137, 3220, 25, 60601, 1150, 8, 11651, 350, 76747, 60, 55609, 198, 15669, 1749, 311, 4820, 279, 2612, 315, 459, 445, 11237, 1650, 449, 264, 10137, 627, 791, 10137, 374, 14090, 3984, 304, 279, 1567, 279, 9442, 6707, 6944, 198, 998, 23515, 477, 5155, 279, 2612, 304, 1063, 1648, 11, 323, 3966, 2038, 505, 198, 1820, 10137, 311, 656, 779, 627, 9905, 198, 44412, 1389, 2612, 315, 4221, 1646, 198, 41681, 1389, 10137, 907, 198, 16851, 198, 52243, 2612, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.retry.RetryOutputParser.html
324b9381f84c-0
langchain.output_parsers.openai_functions.PydanticAttrOutputFunctionsParser¶ class langchain.output_parsers.openai_functions.PydanticAttrOutputFunctionsParser(*, args_only: bool = True, pydantic_schema: Any = None, attr_name: str)[source]¶ Bases: PydanticOutputFunctionsParser Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param args_only: bool = True¶ param attr_name: str [Required]¶ param pydantic_schema: Any = None¶ parse_result(result: List[Generation]) → Any[source]¶ Parse LLM Result. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 13718, 623, 41588, 5949, 2192, 32808, 1087, 41221, 8322, 13675, 5207, 26272, 6707, 55609, 198, 1058, 8859, 8995, 13718, 623, 41588, 5949, 2192, 32808, 1087, 41221, 8322, 13675, 5207, 26272, 6707, 4163, 11, 2897, 18917, 25, 1845, 284, 3082, 11, 4611, 67, 8322, 26443, 25, 5884, 284, 2290, 11, 6510, 1292, 25, 610, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5468, 67, 8322, 5207, 26272, 6707, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 2897, 18917, 25, 1845, 284, 3082, 55609, 198, 913, 6510, 1292, 25, 610, 510, 8327, 60, 55609, 198, 913, 4611, 67, 8322, 26443, 25, 5884, 284, 2290, 55609, 198, 6534, 5400, 4556, 25, 1796, 58, 38238, 2526, 11651, 5884, 76747, 60, 55609, 198, 14802, 445, 11237, 5832, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/output_parsers/langchain.output_parsers.openai_functions.PydanticAttrOutputFunctionsParser.html
cdea2b262092-0
langchain.document_transformers.get_stateful_documents¶ langchain.document_transformers.get_stateful_documents(documents: Sequence[Document]) → Sequence[_DocumentWithState][source]¶ Convert a list of documents to a list of documents with state. Parameters documents – The documents to convert. Returns A list of documents with state.
[ 5317, 8995, 17926, 18956, 388, 673, 4486, 1285, 77027, 55609, 198, 5317, 8995, 17926, 18956, 388, 673, 4486, 1285, 77027, 19702, 2901, 25, 29971, 58, 7676, 2526, 11651, 29971, 13804, 7676, 2409, 1423, 1483, 2484, 60, 55609, 198, 12281, 264, 1160, 315, 9477, 311, 264, 1160, 315, 9477, 449, 1614, 627, 9905, 198, 51878, 1389, 578, 9477, 311, 5625, 627, 16851, 198, 32, 1160, 315, 9477, 449, 1614, 13 ]
https://langchain.readthedocs.io/en/latest/document_transformers/langchain.document_transformers.get_stateful_documents.html
d877b45a02e9-0
langchain.document_transformers.EmbeddingsRedundantFilter¶ class langchain.document_transformers.EmbeddingsRedundantFilter(*, embeddings: ~langchain.embeddings.base.Embeddings, similarity_fn: ~typing.Callable = <function cosine_similarity>, similarity_threshold: float = 0.95)[source]¶ Bases: BaseDocumentTransformer, BaseModel Filter that drops redundant documents by comparing their embeddings. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param embeddings: langchain.embeddings.base.Embeddings [Required]¶ Embeddings to use for embedding document contents. param similarity_fn: Callable = <function cosine_similarity>¶ Similarity function for comparing documents. Function expected to take as input two matrices (List[List[float]]) and return a matrix of scores where higher values indicate greater similarity. param similarity_threshold: float = 0.95¶ Threshold for determining when two documents are similar enough to be considered redundant. async atransform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document][source]¶ Asynchronously transform a list of documents. transform_documents(documents: Sequence[Document], **kwargs: Any) → Sequence[Document][source]¶ Filter down documents. model Config[source]¶ Bases: object Configuration for this pydantic object. arbitrary_types_allowed = True¶
[ 5317, 8995, 17926, 18956, 388, 58955, 25624, 6161, 1263, 519, 5750, 55609, 198, 1058, 8859, 8995, 17926, 18956, 388, 58955, 25624, 6161, 1263, 519, 5750, 4163, 11, 71647, 25, 4056, 5317, 8995, 41541, 25624, 9105, 58955, 25624, 11, 38723, 15604, 25, 4056, 90902, 28115, 481, 284, 366, 1723, 76359, 77336, 8226, 38723, 22616, 25, 2273, 284, 220, 15, 13, 2721, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7676, 47458, 11, 65705, 198, 5750, 430, 21701, 48832, 9477, 555, 27393, 872, 71647, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 71647, 25, 8859, 8995, 41541, 25624, 9105, 58955, 25624, 510, 8327, 60, 55609, 198, 26566, 25624, 311, 1005, 369, 40188, 2246, 8970, 627, 913, 38723, 15604, 25, 54223, 284, 366, 1723, 76359, 77336, 29, 55609, 198, 35502, 488, 734, 369, 27393, 9477, 13, 5830, 3685, 311, 1935, 439, 1988, 198, 20375, 36295, 320, 861, 53094, 96481, 30716, 323, 471, 264, 6303, 315, 12483, 1405, 5190, 2819, 198, 485, 8630, 7191, 38723, 627, 913, 38723, 22616, 25, 2273, 284, 220, 15, 13, 2721, 55609, 198, 38941, 369, 26679, 994, 1403, 9477, 527, 4528, 3403, 198, 998, 387, 6646, 48832, 627, 7847, 264, 4806, 77027, 19702, 2901, 25, 29971, 58, 7676, 1145, 3146, 9872, 25, 5884, 8, 11651, 29971, 58, 7676, 1483, 2484, 60, 55609, 198, 2170, 55294, 5276, 264, 1160, 315, 9477, 627, 4806, 77027, 19702, 2901, 25, 29971, 58, 7676, 1145, 3146, 9872, 25, 5884, 8, 11651, 29971, 58, 7676, 1483, 2484, 60, 55609, 198, 5750, 1523, 9477, 627, 2590, 5649, 76747, 60, 55609, 198, 33, 2315, 25, 1665, 198, 7843, 369, 420, 4611, 67, 8322, 1665, 627, 277, 88951, 9962, 43255, 284, 3082, 55609 ]
https://langchain.readthedocs.io/en/latest/document_transformers/langchain.document_transformers.EmbeddingsRedundantFilter.html
b1b4841ca157-0
langchain.formatting.StrictFormatter¶ class langchain.formatting.StrictFormatter[source]¶ Bases: Formatter A subclass of formatter that checks for extra keys. Methods __init__() check_unused_args(used_args, args, kwargs) Check to see if extra parameters are passed. convert_field(value, conversion) format(format_string, /, *args, **kwargs) format_field(value, format_spec) get_field(field_name, args, kwargs) get_value(key, args, kwargs) parse(format_string) validate_input_variables(format_string, ...) vformat(format_string, args, kwargs) Check that no arguments are provided. check_unused_args(used_args: Sequence[Union[int, str]], args: Sequence, kwargs: Mapping[str, Any]) → None[source]¶ Check to see if extra parameters are passed. convert_field(value, conversion)¶ format(format_string, /, *args, **kwargs)¶ format_field(value, format_spec)¶ get_field(field_name, args, kwargs)¶ get_value(key, args, kwargs)¶ parse(format_string)¶ validate_input_variables(format_string: str, input_variables: List[str]) → None[source]¶ vformat(format_string: str, args: Sequence, kwargs: Mapping[str, Any]) → str[source]¶ Check that no arguments are provided.
[ 5317, 8995, 8180, 1303, 78528, 14517, 55609, 198, 1058, 8859, 8995, 8180, 1303, 78528, 14517, 76747, 60, 55609, 198, 33, 2315, 25, 82487, 198, 32, 38290, 315, 25851, 430, 12621, 369, 5066, 7039, 627, 18337, 198, 565, 2381, 33716, 2071, 68044, 8550, 7, 2656, 8550, 11, 4194, 2164, 11, 4194, 9872, 340, 4061, 311, 1518, 422, 5066, 5137, 527, 5946, 627, 14500, 5121, 3764, 11, 4194, 74825, 340, 2293, 21355, 3991, 11, 4194, 35645, 4194, 9, 2164, 11, 4194, 334, 9872, 340, 2293, 5121, 3764, 11, 4194, 2293, 13908, 340, 456, 5121, 15944, 1292, 11, 4194, 2164, 11, 4194, 9872, 340, 456, 3220, 4962, 11, 4194, 2164, 11, 4194, 9872, 340, 6534, 21355, 3991, 340, 7212, 6022, 29282, 21355, 3991, 11, 4194, 32318, 85, 2293, 21355, 3991, 11, 4194, 2164, 11, 4194, 9872, 340, 4061, 430, 912, 6105, 527, 3984, 627, 2071, 68044, 8550, 7, 2656, 8550, 25, 29971, 58, 33758, 19155, 11, 610, 21128, 2897, 25, 29971, 11, 16901, 25, 39546, 17752, 11, 5884, 2526, 11651, 2290, 76747, 60, 55609, 198, 4061, 311, 1518, 422, 5066, 5137, 527, 5946, 627, 14500, 5121, 3764, 11, 14747, 8, 55609, 198, 2293, 21355, 3991, 11, 611, 11, 353, 2164, 11, 3146, 9872, 8, 55609, 198, 2293, 5121, 3764, 11, 3645, 13908, 8, 55609, 198, 456, 5121, 15944, 1292, 11, 2897, 11, 16901, 8, 55609, 198, 456, 3220, 4962, 11, 2897, 11, 16901, 8, 55609, 198, 6534, 21355, 3991, 8, 55609, 198, 7212, 6022, 29282, 21355, 3991, 25, 610, 11, 1988, 29282, 25, 1796, 17752, 2526, 11651, 2290, 76747, 60, 55609, 198, 85, 2293, 21355, 3991, 25, 610, 11, 2897, 25, 29971, 11, 16901, 25, 39546, 17752, 11, 5884, 2526, 11651, 610, 76747, 60, 55609, 198, 4061, 430, 912, 6105, 527, 3984, 13 ]
https://langchain.readthedocs.io/en/latest/formatting/langchain.formatting.StrictFormatter.html
003a80ee2121-0
langchain.docstore.base.AddableMixin¶ class langchain.docstore.base.AddableMixin[source]¶ Bases: ABC Mixin class that supports adding texts. Methods __init__() add(texts) Add more documents. abstract add(texts: Dict[str, Document]) → None[source]¶ Add more documents.
[ 5317, 8995, 24595, 4412, 9105, 1943, 481, 39556, 55609, 198, 1058, 8859, 8995, 24595, 4412, 9105, 1943, 481, 39556, 76747, 60, 55609, 198, 33, 2315, 25, 19921, 198, 39556, 538, 430, 11815, 7999, 22755, 627, 18337, 198, 565, 2381, 33716, 723, 7383, 82, 340, 2261, 810, 9477, 627, 16647, 923, 7383, 82, 25, 30226, 17752, 11, 12051, 2526, 11651, 2290, 76747, 60, 55609, 198, 2261, 810, 9477, 13 ]
https://langchain.readthedocs.io/en/latest/docstore/langchain.docstore.base.AddableMixin.html
3d4937c88983-0
langchain.docstore.wikipedia.Wikipedia¶ class langchain.docstore.wikipedia.Wikipedia[source]¶ Bases: Docstore Wrapper around wikipedia API. Check that wikipedia package is installed. Methods __init__() Check that wikipedia package is installed. search(search) Try to search for wiki page. search(search: str) → Union[str, Document][source]¶ Try to search for wiki page. If page exists, return the page summary, and a PageWithLookups object. If page does not exist, return similar entries.
[ 5317, 8995, 24595, 4412, 34466, 1196, 15288, 55609, 198, 1058, 8859, 8995, 24595, 4412, 34466, 1196, 15288, 76747, 60, 55609, 198, 33, 2315, 25, 22452, 4412, 198, 11803, 2212, 59318, 5446, 627, 4061, 430, 59318, 6462, 374, 10487, 627, 18337, 198, 565, 2381, 33716, 4061, 430, 59318, 6462, 374, 10487, 627, 1874, 21079, 340, 22170, 311, 2778, 369, 29709, 2199, 627, 1874, 21079, 25, 610, 8, 11651, 9323, 17752, 11, 12051, 1483, 2484, 60, 55609, 198, 22170, 311, 2778, 369, 29709, 2199, 627, 2746, 2199, 6866, 11, 471, 279, 2199, 12399, 11, 323, 264, 5874, 2409, 10596, 8772, 1665, 627, 2746, 2199, 1587, 539, 3073, 11, 471, 4528, 10925, 13 ]
https://langchain.readthedocs.io/en/latest/docstore/langchain.docstore.wikipedia.Wikipedia.html
e89b064c8a08-0
langchain.docstore.in_memory.InMemoryDocstore¶ class langchain.docstore.in_memory.InMemoryDocstore(_dict: Dict[str, Document])[source]¶ Bases: Docstore, AddableMixin Simple in memory docstore in the form of a dict. Initialize with dict. Methods __init__(_dict) Initialize with dict. add(texts) Add texts to in memory dictionary. search(search) Search via direct lookup. add(texts: Dict[str, Document]) → None[source]¶ Add texts to in memory dictionary. search(search: str) → Union[str, Document][source]¶ Search via direct lookup.
[ 5317, 8995, 24595, 4412, 1896, 19745, 5450, 10869, 9743, 4412, 55609, 198, 1058, 8859, 8995, 24595, 4412, 1896, 19745, 5450, 10869, 9743, 4412, 2551, 8644, 25, 30226, 17752, 11, 12051, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 22452, 4412, 11, 2758, 481, 39556, 198, 16778, 304, 5044, 4733, 4412, 304, 279, 1376, 315, 264, 6587, 627, 10130, 449, 6587, 627, 18337, 198, 565, 2381, 565, 2551, 8644, 340, 10130, 449, 6587, 627, 723, 7383, 82, 340, 2261, 22755, 311, 304, 5044, 11240, 627, 1874, 21079, 340, 6014, 4669, 2167, 19128, 627, 723, 7383, 82, 25, 30226, 17752, 11, 12051, 2526, 11651, 2290, 76747, 60, 55609, 198, 2261, 22755, 311, 304, 5044, 11240, 627, 1874, 21079, 25, 610, 8, 11651, 9323, 17752, 11, 12051, 1483, 2484, 60, 55609, 198, 6014, 4669, 2167, 19128, 13 ]
https://langchain.readthedocs.io/en/latest/docstore/langchain.docstore.in_memory.InMemoryDocstore.html
1248aa6faf48-0
langchain.docstore.arbitrary_fn.DocstoreFn¶ class langchain.docstore.arbitrary_fn.DocstoreFn(lookup_fn: Callable[[str], Union[Document, str]])[source]¶ Bases: Docstore Langchain Docstore via arbitrary lookup function. This is useful when: it’s expensive to construct an InMemoryDocstore/dict you retrieve documents from remote sources you just want to reuse existing objects Methods __init__(lookup_fn) search(search) Search for document. search(search: str) → Document[source]¶ Search for document. If page exists, return the page summary, and a Document object. If page does not exist, return similar entries.
[ 5317, 8995, 24595, 4412, 17126, 88951, 15604, 43552, 4412, 25955, 55609, 198, 1058, 8859, 8995, 24595, 4412, 17126, 88951, 15604, 43552, 4412, 25955, 7, 21696, 15604, 25, 54223, 15873, 496, 1145, 9323, 58, 7676, 11, 610, 30716, 58, 2484, 60, 55609, 198, 33, 2315, 25, 22452, 4412, 198, 27317, 8995, 22452, 4412, 4669, 25142, 19128, 734, 627, 2028, 374, 5505, 994, 512, 275, 753, 11646, 311, 9429, 459, 763, 10869, 9743, 4412, 3529, 858, 198, 9514, 17622, 9477, 505, 8870, 8336, 198, 9514, 1120, 1390, 311, 27068, 6484, 6302, 198, 18337, 198, 565, 2381, 3889, 21696, 15604, 340, 1874, 21079, 340, 6014, 369, 2246, 627, 1874, 21079, 25, 610, 8, 11651, 12051, 76747, 60, 55609, 198, 6014, 369, 2246, 627, 2746, 2199, 6866, 11, 471, 279, 2199, 12399, 11, 323, 264, 12051, 1665, 627, 2746, 2199, 1587, 539, 3073, 11, 471, 4528, 10925, 13 ]
https://langchain.readthedocs.io/en/latest/docstore/langchain.docstore.arbitrary_fn.DocstoreFn.html
497f3a9d0652-0
langchain.docstore.base.Docstore¶ class langchain.docstore.base.Docstore[source]¶ Bases: ABC Interface to access to place that stores documents. Methods __init__() search(search) Search for document. abstract search(search: str) → Union[str, Document][source]¶ Search for document. If page exists, return the page summary, and a Document object. If page does not exist, return similar entries.
[ 5317, 8995, 24595, 4412, 9105, 43552, 4412, 55609, 198, 1058, 8859, 8995, 24595, 4412, 9105, 43552, 4412, 76747, 60, 55609, 198, 33, 2315, 25, 19921, 198, 5160, 311, 2680, 311, 2035, 430, 10756, 9477, 627, 18337, 198, 565, 2381, 33716, 1874, 21079, 340, 6014, 369, 2246, 627, 16647, 2778, 21079, 25, 610, 8, 11651, 9323, 17752, 11, 12051, 1483, 2484, 60, 55609, 198, 6014, 369, 2246, 627, 2746, 2199, 6866, 11, 471, 279, 2199, 12399, 11, 323, 264, 12051, 1665, 627, 2746, 2199, 1587, 539, 3073, 11, 471, 4528, 10925, 13 ]
https://langchain.readthedocs.io/en/latest/docstore/langchain.docstore.base.Docstore.html
c9b7cc0664da-0
langchain.prompts.chat.BaseStringMessagePromptTemplate¶ class langchain.prompts.chat.BaseStringMessagePromptTemplate(*, prompt: StringPromptTemplate, additional_kwargs: dict = None)[source]¶ Bases: BaseMessagePromptTemplate, ABC Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param additional_kwargs: dict [Optional]¶ param prompt: langchain.prompts.base.StringPromptTemplate [Required]¶ abstract format(**kwargs: Any) → BaseMessage[source]¶ To a BaseMessage. format_messages(**kwargs: Any) → List[BaseMessage][source]¶ To messages. classmethod from_template(template: str, template_format: str = 'f-string', **kwargs: Any) → MessagePromptTemplateT[source]¶ classmethod from_template_file(template_file: Union[str, Path], input_variables: List[str], **kwargs: Any) → MessagePromptTemplateT[source]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property input_variables: List[str]¶ Input variables for this prompt template. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object
[ 5317, 8995, 61848, 13044, 27215, 13316, 707, 2097, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 27215, 13316, 707, 2097, 55715, 7423, 4163, 11, 10137, 25, 935, 55715, 7423, 11, 5217, 37335, 25, 6587, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 2097, 55715, 7423, 11, 19921, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5217, 37335, 25, 6587, 510, 15669, 60, 55609, 198, 913, 10137, 25, 8859, 8995, 61848, 13044, 9105, 6567, 55715, 7423, 510, 8327, 60, 55609, 198, 16647, 3645, 22551, 9872, 25, 5884, 8, 11651, 5464, 2097, 76747, 60, 55609, 198, 1271, 264, 5464, 2097, 627, 2293, 24321, 22551, 9872, 25, 5884, 8, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 1271, 6743, 627, 27853, 505, 8864, 31063, 25, 610, 11, 3896, 9132, 25, 610, 284, 364, 69, 31981, 518, 3146, 9872, 25, 5884, 8, 11651, 4961, 55715, 7423, 51, 76747, 60, 55609, 198, 27853, 505, 8864, 2517, 31063, 2517, 25, 9323, 17752, 11, 8092, 1145, 1988, 29282, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 4961, 55715, 7423, 51, 76747, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 1988, 29282, 25, 1796, 17752, 60, 55609, 198, 2566, 7482, 369, 420, 10137, 3896, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.BaseStringMessagePromptTemplate.html
c9b7cc0664da-1
Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.BaseStringMessagePromptTemplate.html
86039ecbd8bf-0
langchain.prompts.base.jinja2_formatter¶ langchain.prompts.base.jinja2_formatter(template: str, **kwargs: Any) → str[source]¶ Format a template using jinja2.
[ 5317, 8995, 61848, 13044, 9105, 1190, 42520, 17, 75065, 55609, 198, 5317, 8995, 61848, 13044, 9105, 1190, 42520, 17, 75065, 31063, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 4152, 264, 3896, 1701, 503, 42520, 17, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.base.jinja2_formatter.html
cf11d9156d4b-0
langchain.prompts.example_selector.ngram_overlap.NGramOverlapExampleSelector¶ class langchain.prompts.example_selector.ngram_overlap.NGramOverlapExampleSelector(*, examples: List[dict], example_prompt: PromptTemplate, threshold: float = - 1.0)[source]¶ Bases: BaseExampleSelector, BaseModel Select and order examples based on ngram overlap score (sentence_bleu score). https://www.nltk.org/_modules/nltk/translate/bleu_score.html https://aclanthology.org/P02-1040.pdf Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param example_prompt: langchain.prompts.prompt.PromptTemplate [Required]¶ Prompt template used to format the examples. param examples: List[dict] [Required]¶ A list of the examples that the prompt template expects. param threshold: float = -1.0¶ Threshold at which algorithm stops. Set to -1.0 by default. For negative threshold: select_examples sorts examples by ngram_overlap_score, but excludes none. For threshold greater than 1.0: select_examples excludes all examples, and returns an empty list. For threshold equal to 0.0: select_examples sorts examples by ngram_overlap_score, and excludes examples with no ngram overlap with input. add_example(example: Dict[str, str]) → None[source]¶ Add new example to list. validator check_dependencies  »  all fields[source]¶ Check that valid dependencies exist. select_examples(input_variables: Dict[str, str]) → List[dict][source]¶ Return list of examples sorted by ngram_overlap_score with input. Descending order. Excludes any examples with ngram_overlap_score less than or equal to threshold.
[ 5317, 8995, 61848, 13044, 7880, 29990, 1276, 1549, 66894, 2112, 65325, 83271, 13617, 6001, 55609, 198, 1058, 8859, 8995, 61848, 13044, 7880, 29990, 1276, 1549, 66894, 2112, 65325, 83271, 13617, 6001, 4163, 11, 10507, 25, 1796, 58, 8644, 1145, 3187, 62521, 25, 60601, 7423, 11, 12447, 25, 2273, 284, 482, 220, 16, 13, 15, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 13617, 6001, 11, 65705, 198, 3461, 323, 2015, 10507, 3196, 389, 308, 1549, 28347, 5573, 320, 52989, 71813, 84, 5573, 4390, 2485, 1129, 2185, 1276, 44771, 2726, 20205, 11786, 9809, 44771, 14, 14372, 14, 901, 84, 10622, 2628, 198, 2485, 1129, 48836, 32329, 2508, 2726, 16744, 2437, 12, 6849, 15, 16378, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 3187, 62521, 25, 8859, 8995, 61848, 13044, 66499, 1087, 15091, 7423, 510, 8327, 60, 55609, 198, 55715, 3896, 1511, 311, 3645, 279, 10507, 627, 913, 10507, 25, 1796, 58, 8644, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 10507, 430, 279, 10137, 3896, 25283, 627, 913, 12447, 25, 2273, 284, 482, 16, 13, 15, 55609, 198, 38941, 520, 902, 12384, 18417, 13, 2638, 311, 482, 16, 13, 15, 555, 1670, 627, 2520, 8389, 12447, 512, 1779, 46379, 21522, 10507, 555, 308, 1549, 66894, 10622, 11, 719, 64468, 7000, 627, 2520, 12447, 7191, 1109, 220, 16, 13, 15, 512, 1779, 46379, 64468, 682, 10507, 11, 323, 4780, 459, 4384, 1160, 627, 2520, 12447, 6273, 311, 220, 15, 13, 15, 512, 1779, 46379, 21522, 10507, 555, 308, 1549, 66894, 10622, 345, 438, 64468, 10507, 449, 912, 308, 1549, 28347, 449, 1988, 627, 723, 40404, 67303, 25, 30226, 17752, 11, 610, 2526, 11651, 2290, 76747, 60, 55609, 198, 2261, 502, 3187, 311, 1160, 627, 16503, 1817, 72941, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 4061, 430, 2764, 20113, 3073, 627, 1779, 46379, 5498, 29282, 25, 30226, 17752, 11, 610, 2526, 11651, 1796, 58, 8644, 1483, 2484, 60, 55609, 198, 5715, 1160, 315, 10507, 10839, 555, 308, 1549, 66894, 10622, 449, 1988, 627, 48356, 2015, 627, 849, 7548, 904, 10507, 449, 308, 1549, 66894, 10622, 2753, 1109, 477, 6273, 311, 12447, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.example_selector.ngram_overlap.NGramOverlapExampleSelector.html
436db5cbd940-0
langchain.prompts.chat.ChatPromptValue¶ class langchain.prompts.chat.ChatPromptValue(*, messages: List[BaseMessage])[source]¶ Bases: PromptValue Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param messages: List[langchain.schema.BaseMessage] [Required]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ to_messages() → List[BaseMessage][source]¶ Return prompt as messages. to_string() → str[source]¶ Return prompt as string. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 61848, 13044, 27215, 59944, 55715, 1150, 55609, 198, 1058, 8859, 8995, 61848, 13044, 27215, 59944, 55715, 1150, 4163, 11, 6743, 25, 1796, 58, 4066, 2097, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 60601, 1150, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 6743, 25, 1796, 58, 5317, 8995, 31992, 13316, 2097, 60, 510, 8327, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 998, 24321, 368, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 5715, 10137, 439, 6743, 627, 998, 3991, 368, 11651, 610, 76747, 60, 55609, 198, 5715, 10137, 439, 925, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.ChatPromptValue.html
22f8f179bfcd-0
langchain.prompts.chat.BaseMessagePromptTemplate¶ class langchain.prompts.chat.BaseMessagePromptTemplate[source]¶ Bases: Serializable, ABC Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. abstract format_messages(**kwargs: Any) → List[BaseMessage][source]¶ To messages. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ abstract property input_variables: List[str]¶ Input variables for this prompt template. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 61848, 13044, 27215, 13316, 2097, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 27215, 13316, 2097, 55715, 7423, 76747, 60, 55609, 198, 33, 2315, 25, 25901, 11, 19921, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 16647, 3645, 24321, 22551, 9872, 25, 5884, 8, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 1271, 6743, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16647, 3424, 1988, 29282, 25, 1796, 17752, 60, 55609, 198, 2566, 7482, 369, 420, 10137, 3896, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.BaseMessagePromptTemplate.html
221d2b29308d-0
langchain.prompts.example_selector.length_based.LengthBasedExampleSelector¶ class langchain.prompts.example_selector.length_based.LengthBasedExampleSelector(*, examples: ~typing.List[dict], example_prompt: ~langchain.prompts.prompt.PromptTemplate, get_text_length: ~typing.Callable[[str], int] = <function _get_length_based>, max_length: int = 2048, example_text_lengths: ~typing.List[int] = [])[source]¶ Bases: BaseExampleSelector, BaseModel Select examples based on length. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param example_prompt: langchain.prompts.prompt.PromptTemplate [Required]¶ Prompt template used to format the examples. param examples: List[dict] [Required]¶ A list of the examples that the prompt template expects. param get_text_length: Callable[[str], int] = <function _get_length_based>¶ Function to measure prompt length. Defaults to word count. param max_length: int = 2048¶ Max length for the prompt, beyond which examples are cut. add_example(example: Dict[str, str]) → None[source]¶ Add new example to list. validator calculate_example_text_lengths  »  example_text_lengths[source]¶ Calculate text lengths if they don’t exist. select_examples(input_variables: Dict[str, str]) → List[dict][source]¶ Select which examples to use based on the input lengths.
[ 5317, 8995, 61848, 13044, 7880, 29990, 1996, 67779, 6976, 29815, 13617, 6001, 55609, 198, 1058, 8859, 8995, 61848, 13044, 7880, 29990, 1996, 67779, 6976, 29815, 13617, 6001, 4163, 11, 10507, 25, 4056, 90902, 5937, 58, 8644, 1145, 3187, 62521, 25, 4056, 5317, 8995, 61848, 13044, 66499, 1087, 15091, 7423, 11, 636, 4424, 5228, 25, 4056, 90902, 28115, 481, 15873, 496, 1145, 528, 60, 284, 366, 1723, 721, 456, 5228, 67779, 8226, 1973, 5228, 25, 528, 284, 220, 7854, 23, 11, 3187, 4424, 55516, 25, 4056, 90902, 5937, 19155, 60, 284, 510, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 13617, 6001, 11, 65705, 198, 3461, 10507, 3196, 389, 3160, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 3187, 62521, 25, 8859, 8995, 61848, 13044, 66499, 1087, 15091, 7423, 510, 8327, 60, 55609, 198, 55715, 3896, 1511, 311, 3645, 279, 10507, 627, 913, 10507, 25, 1796, 58, 8644, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 10507, 430, 279, 10137, 3896, 25283, 627, 913, 636, 4424, 5228, 25, 54223, 15873, 496, 1145, 528, 60, 284, 366, 1723, 721, 456, 5228, 67779, 29, 55609, 198, 5263, 311, 6767, 10137, 3160, 13, 37090, 311, 3492, 1797, 627, 913, 1973, 5228, 25, 528, 284, 220, 7854, 23, 55609, 198, 6102, 3160, 369, 279, 10137, 11, 7953, 902, 10507, 527, 4018, 627, 723, 40404, 67303, 25, 30226, 17752, 11, 610, 2526, 11651, 2290, 76747, 60, 55609, 198, 2261, 502, 3187, 311, 1160, 627, 16503, 11294, 40404, 4424, 55516, 4194, 8345, 4194, 3187, 4424, 55516, 76747, 60, 55609, 198, 48966, 1495, 29416, 422, 814, 1541, 1431, 3073, 627, 1779, 46379, 5498, 29282, 25, 30226, 17752, 11, 610, 2526, 11651, 1796, 58, 8644, 1483, 2484, 60, 55609, 198, 3461, 902, 10507, 311, 1005, 3196, 389, 279, 1988, 29416, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.example_selector.length_based.LengthBasedExampleSelector.html
9027056dff4a-0
langchain.prompts.loading.load_prompt¶ langchain.prompts.loading.load_prompt(path: Union[str, Path]) → BasePromptTemplate[source]¶ Unified method for loading a prompt from LangChainHub or local fs.
[ 5317, 8995, 61848, 13044, 25908, 5214, 62521, 55609, 198, 5317, 8995, 61848, 13044, 25908, 5214, 62521, 5698, 25, 9323, 17752, 11, 8092, 2526, 11651, 5464, 55715, 7423, 76747, 60, 55609, 198, 86479, 1749, 369, 8441, 264, 10137, 505, 23272, 19368, 19876, 477, 2254, 8789, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.loading.load_prompt.html
e460fcc9125b-0
langchain.prompts.example_selector.ngram_overlap.ngram_overlap_score¶ langchain.prompts.example_selector.ngram_overlap.ngram_overlap_score(source: List[str], example: List[str]) → float[source]¶ Compute ngram overlap score of source and example as sentence_bleu score. Use sentence_bleu with method1 smoothing function and auto reweighting. Return float value between 0.0 and 1.0 inclusive. https://www.nltk.org/_modules/nltk/translate/bleu_score.html https://aclanthology.org/P02-1040.pdf
[ 5317, 8995, 61848, 13044, 7880, 29990, 1276, 1549, 66894, 1276, 1549, 66894, 10622, 55609, 198, 5317, 8995, 61848, 13044, 7880, 29990, 1276, 1549, 66894, 1276, 1549, 66894, 10622, 12719, 25, 1796, 17752, 1145, 3187, 25, 1796, 17752, 2526, 11651, 2273, 76747, 60, 55609, 198, 47354, 308, 1549, 28347, 5573, 315, 2592, 323, 3187, 439, 11914, 71813, 84, 5573, 627, 10464, 11914, 71813, 84, 449, 1749, 16, 63061, 734, 323, 3313, 312, 4870, 287, 627, 5715, 2273, 907, 1990, 220, 15, 13, 15, 323, 220, 16, 13, 15, 29408, 627, 2485, 1129, 2185, 1276, 44771, 2726, 20205, 11786, 9809, 44771, 14, 14372, 14, 901, 84, 10622, 2628, 198, 2485, 1129, 48836, 32329, 2508, 2726, 16744, 2437, 12, 6849, 15, 16378 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.example_selector.ngram_overlap.ngram_overlap_score.html
e0d00275d662-0
langchain.prompts.chat.BaseChatPromptTemplate¶ class langchain.prompts.chat.BaseChatPromptTemplate(*, input_variables: List[str], output_parser: Optional[BaseOutputParser] = None, partial_variables: Mapping[str, Union[str, Callable[[], str]]] = None)[source]¶ Bases: BasePromptTemplate, ABC Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param input_variables: List[str] [Required]¶ A list of the names of the variables the prompt template expects. param output_parser: Optional[BaseOutputParser] = None¶ How to parse the output of calling an LLM on this formatted prompt. param partial_variables: Mapping[str, Union[str, Callable[[], str]]] [Optional]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of prompt. format(**kwargs: Any) → str[source]¶ Format the prompt with the inputs. Parameters kwargs – Any arguments to be passed to the prompt template. Returns A formatted string. Example: prompt.format(variable1="foo") abstract format_messages(**kwargs: Any) → List[BaseMessage][source]¶ Format kwargs into a list of messages. format_prompt(**kwargs: Any) → PromptValue[source]¶ Create Chat Messages. partial(**kwargs: Union[str, Callable[[], str]]) → BasePromptTemplate¶ Return a partial of the prompt template. save(file_path: Union[Path, str]) → None¶ Save the prompt. Parameters file_path – Path to directory to save prompt to. Example: .. code-block:: python prompt.save(file_path=”path/prompt.yaml”) to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶
[ 5317, 8995, 61848, 13044, 27215, 13316, 16047, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 27215, 13316, 16047, 55715, 7423, 4163, 11, 1988, 29282, 25, 1796, 17752, 1145, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 11, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 55715, 7423, 11, 19921, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1988, 29282, 25, 1796, 17752, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 5144, 315, 279, 7482, 279, 10137, 3896, 25283, 627, 913, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 55609, 198, 4438, 311, 4820, 279, 2612, 315, 8260, 459, 445, 11237, 389, 420, 24001, 10137, 627, 913, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 510, 15669, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 10137, 627, 2293, 22551, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 4152, 279, 10137, 449, 279, 11374, 627, 9905, 198, 9872, 1389, 5884, 6105, 311, 387, 5946, 311, 279, 10137, 3896, 627, 16851, 198, 32, 24001, 925, 627, 13617, 512, 41681, 8180, 46129, 16, 429, 8134, 1158, 16647, 3645, 24321, 22551, 9872, 25, 5884, 8, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 4152, 16901, 1139, 264, 1160, 315, 6743, 627, 2293, 62521, 22551, 9872, 25, 5884, 8, 11651, 60601, 1150, 76747, 60, 55609, 198, 4110, 13149, 27827, 627, 38520, 22551, 9872, 25, 9323, 17752, 11, 54223, 58, 13292, 610, 30716, 11651, 5464, 55715, 7423, 55609, 198, 5715, 264, 7276, 315, 279, 10137, 3896, 627, 6766, 4971, 2703, 25, 9323, 58, 1858, 11, 610, 2526, 11651, 2290, 55609, 198, 8960, 279, 10137, 627, 9905, 198, 1213, 2703, 1389, 8092, 311, 6352, 311, 3665, 10137, 311, 627, 13617, 512, 497, 2082, 9612, 487, 10344, 198, 41681, 5799, 4971, 2703, 45221, 2398, 4420, 15091, 34506, 863, 340, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.BaseChatPromptTemplate.html
e0d00275d662-1
to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ validator validate_variable_names  »  all fields¶ Validate variable names do not include restricted names. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object Configuration for this pydantic object. arbitrary_types_allowed = True¶
[ 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16503, 9788, 14977, 9366, 4194, 8345, 4194, 682, 5151, 55609, 198, 18409, 3977, 5144, 656, 539, 2997, 22486, 5144, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 7843, 369, 420, 4611, 67, 8322, 1665, 627, 277, 88951, 9962, 43255, 284, 3082, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.BaseChatPromptTemplate.html
a3e01013c534-0
langchain.prompts.base.StringPromptValue¶ class langchain.prompts.base.StringPromptValue(*, text: str)[source]¶ Bases: PromptValue Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param text: str [Required]¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ to_messages() → List[BaseMessage][source]¶ Return prompt as messages. to_string() → str[source]¶ Return prompt as string. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 61848, 13044, 9105, 6567, 55715, 1150, 55609, 198, 1058, 8859, 8995, 61848, 13044, 9105, 6567, 55715, 1150, 4163, 11, 1495, 25, 610, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 60601, 1150, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1495, 25, 610, 510, 8327, 60, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 998, 24321, 368, 11651, 1796, 58, 4066, 2097, 1483, 2484, 60, 55609, 198, 5715, 10137, 439, 6743, 627, 998, 3991, 368, 11651, 610, 76747, 60, 55609, 198, 5715, 10137, 439, 925, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.base.StringPromptValue.html
f5e862d4a376-0
langchain.prompts.few_shot_with_templates.FewShotPromptWithTemplates¶ class langchain.prompts.few_shot_with_templates.FewShotPromptWithTemplates(*, input_variables: List[str], output_parser: Optional[BaseOutputParser] = None, partial_variables: Mapping[str, Union[str, Callable[[], str]]] = None, examples: Optional[List[dict]] = None, example_selector: Optional[BaseExampleSelector] = None, example_prompt: PromptTemplate, suffix: StringPromptTemplate, example_separator: str = '\n\n', prefix: Optional[StringPromptTemplate] = None, template_format: str = 'f-string', validate_template: bool = True)[source]¶ Bases: StringPromptTemplate Prompt template that contains few shot examples. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param example_prompt: langchain.prompts.prompt.PromptTemplate [Required]¶ PromptTemplate used to format an individual example. param example_selector: Optional[langchain.prompts.example_selector.base.BaseExampleSelector] = None¶ ExampleSelector to choose the examples to format into the prompt. Either this or examples should be provided. param example_separator: str = '\n\n'¶ String separator used to join the prefix, the examples, and suffix. param examples: Optional[List[dict]] = None¶ Examples to format into the prompt. Either this or example_selector should be provided. param input_variables: List[str] [Required]¶ A list of the names of the variables the prompt template expects. param output_parser: Optional[BaseOutputParser] = None¶ How to parse the output of calling an LLM on this formatted prompt. param partial_variables: Mapping[str, Union[str, Callable[[], str]]] [Optional]¶
[ 5317, 8995, 61848, 13044, 840, 365, 82326, 6753, 50626, 1006, 365, 37502, 55715, 2409, 52295, 55609, 198, 1058, 8859, 8995, 61848, 13044, 840, 365, 82326, 6753, 50626, 1006, 365, 37502, 55715, 2409, 52295, 4163, 11, 1988, 29282, 25, 1796, 17752, 1145, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 11, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 284, 2290, 11, 10507, 25, 12536, 53094, 58, 8644, 5163, 284, 2290, 11, 3187, 29990, 25, 12536, 58, 4066, 13617, 6001, 60, 284, 2290, 11, 3187, 62521, 25, 60601, 7423, 11, 21166, 25, 935, 55715, 7423, 11, 3187, 59304, 25, 610, 284, 5307, 77, 1734, 518, 9436, 25, 12536, 19005, 55715, 7423, 60, 284, 2290, 11, 3896, 9132, 25, 610, 284, 364, 69, 31981, 518, 9788, 8864, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 935, 55715, 7423, 198, 55715, 3896, 430, 5727, 2478, 6689, 10507, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 3187, 62521, 25, 8859, 8995, 61848, 13044, 66499, 1087, 15091, 7423, 510, 8327, 60, 55609, 198, 55715, 7423, 1511, 311, 3645, 459, 3927, 3187, 627, 913, 3187, 29990, 25, 12536, 58, 5317, 8995, 61848, 13044, 7880, 29990, 9105, 13316, 13617, 6001, 60, 284, 2290, 55609, 198, 13617, 6001, 311, 5268, 279, 10507, 311, 3645, 1139, 279, 10137, 627, 50344, 420, 477, 10507, 1288, 387, 3984, 627, 913, 3187, 59304, 25, 610, 284, 5307, 77, 1734, 6, 55609, 198, 707, 25829, 1511, 311, 5249, 279, 9436, 11, 279, 10507, 11, 323, 21166, 627, 913, 10507, 25, 12536, 53094, 58, 8644, 5163, 284, 2290, 55609, 198, 41481, 311, 3645, 1139, 279, 10137, 627, 50344, 420, 477, 3187, 29990, 1288, 387, 3984, 627, 913, 1988, 29282, 25, 1796, 17752, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 5144, 315, 279, 7482, 279, 10137, 3896, 25283, 627, 913, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 55609, 198, 4438, 311, 4820, 279, 2612, 315, 8260, 459, 445, 11237, 389, 420, 24001, 10137, 627, 913, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 510, 15669, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot_with_templates.FewShotPromptWithTemplates.html
f5e862d4a376-1
param prefix: Optional[langchain.prompts.base.StringPromptTemplate] = None¶ A PromptTemplate to put before the examples. param suffix: langchain.prompts.base.StringPromptTemplate [Required]¶ A PromptTemplate to put after the examples. param template_format: str = 'f-string'¶ The format of the prompt template. Options are: ‘f-string’, ‘jinja2’. param validate_template: bool = True¶ Whether or not to try validating the template. validator check_examples_and_selector  »  all fields[source]¶ Check that one and only one of examples/example_selector are provided. dict(**kwargs: Any) → Dict[source]¶ Return a dictionary of the prompt. format(**kwargs: Any) → str[source]¶ Format the prompt with the inputs. Parameters kwargs – Any arguments to be passed to the prompt template. Returns A formatted string. Example: prompt.format(variable1="foo") format_prompt(**kwargs: Any) → PromptValue¶ Create Chat Messages. partial(**kwargs: Union[str, Callable[[], str]]) → BasePromptTemplate¶ Return a partial of the prompt template. save(file_path: Union[Path, str]) → None¶ Save the prompt. Parameters file_path – Path to directory to save prompt to. Example: .. code-block:: python prompt.save(file_path=”path/prompt.yaml”) validator template_is_valid  »  all fields[source]¶ Check that prefix, suffix and input variables are consistent. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ validator validate_variable_names  »  all fields¶ Validate variable names do not include restricted names. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the
[ 913, 9436, 25, 12536, 58, 5317, 8995, 61848, 13044, 9105, 6567, 55715, 7423, 60, 284, 2290, 55609, 198, 32, 60601, 7423, 311, 2231, 1603, 279, 10507, 627, 913, 21166, 25, 8859, 8995, 61848, 13044, 9105, 6567, 55715, 7423, 510, 8327, 60, 55609, 198, 32, 60601, 7423, 311, 2231, 1306, 279, 10507, 627, 913, 3896, 9132, 25, 610, 284, 364, 69, 31981, 6, 55609, 198, 791, 3645, 315, 279, 10137, 3896, 13, 14908, 527, 25, 3451, 69, 31981, 20182, 3451, 73, 42520, 17, 529, 627, 913, 9788, 8864, 25, 1845, 284, 3082, 55609, 198, 25729, 477, 539, 311, 1456, 69772, 279, 3896, 627, 16503, 1817, 46379, 8543, 29990, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 4061, 430, 832, 323, 1193, 832, 315, 10507, 66282, 29990, 527, 3984, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 76747, 60, 55609, 198, 5715, 264, 11240, 315, 279, 10137, 627, 2293, 22551, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 4152, 279, 10137, 449, 279, 11374, 627, 9905, 198, 9872, 1389, 5884, 6105, 311, 387, 5946, 311, 279, 10137, 3896, 627, 16851, 198, 32, 24001, 925, 627, 13617, 512, 41681, 8180, 46129, 16, 429, 8134, 1158, 2293, 62521, 22551, 9872, 25, 5884, 8, 11651, 60601, 1150, 55609, 198, 4110, 13149, 27827, 627, 38520, 22551, 9872, 25, 9323, 17752, 11, 54223, 58, 13292, 610, 30716, 11651, 5464, 55715, 7423, 55609, 198, 5715, 264, 7276, 315, 279, 10137, 3896, 627, 6766, 4971, 2703, 25, 9323, 58, 1858, 11, 610, 2526, 11651, 2290, 55609, 198, 8960, 279, 10137, 627, 9905, 198, 1213, 2703, 1389, 8092, 311, 6352, 311, 3665, 10137, 311, 627, 13617, 512, 497, 2082, 9612, 487, 10344, 198, 41681, 5799, 4971, 2703, 45221, 2398, 4420, 15091, 34506, 863, 340, 16503, 3896, 7037, 8501, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 4061, 430, 9436, 11, 21166, 323, 1988, 7482, 527, 13263, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16503, 9788, 14977, 9366, 4194, 8345, 4194, 682, 5151, 55609, 198, 18409, 3977, 5144, 656, 539, 2997, 22486, 5144, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot_with_templates.FewShotPromptWithTemplates.html
f5e862d4a376-2
property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config[source]¶ Bases: object Configuration for this pydantic object. arbitrary_types_allowed = True¶ extra = 'forbid'¶
[ 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 76747, 60, 55609, 198, 33, 2315, 25, 1665, 198, 7843, 369, 420, 4611, 67, 8322, 1665, 627, 277, 88951, 9962, 43255, 284, 3082, 55609, 198, 15824, 284, 364, 2000, 21301, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot_with_templates.FewShotPromptWithTemplates.html
7bbe400ebcc9-0
langchain.prompts.few_shot.FewShotPromptTemplate¶ class langchain.prompts.few_shot.FewShotPromptTemplate(*, input_variables: List[str], output_parser: Optional[BaseOutputParser] = None, partial_variables: Mapping[str, Union[str, Callable[[], str]]] = None, examples: Optional[List[dict]] = None, example_selector: Optional[BaseExampleSelector] = None, example_prompt: PromptTemplate, suffix: str, example_separator: str = '\n\n', prefix: str = '', template_format: str = 'f-string', validate_template: bool = True)[source]¶ Bases: StringPromptTemplate Prompt template that contains few shot examples. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param example_prompt: langchain.prompts.prompt.PromptTemplate [Required]¶ PromptTemplate used to format an individual example. param example_selector: Optional[langchain.prompts.example_selector.base.BaseExampleSelector] = None¶ ExampleSelector to choose the examples to format into the prompt. Either this or examples should be provided. param example_separator: str = '\n\n'¶ String separator used to join the prefix, the examples, and suffix. param examples: Optional[List[dict]] = None¶ Examples to format into the prompt. Either this or example_selector should be provided. param input_variables: List[str] [Required]¶ A list of the names of the variables the prompt template expects. param output_parser: Optional[BaseOutputParser] = None¶ How to parse the output of calling an LLM on this formatted prompt. param partial_variables: Mapping[str, Union[str, Callable[[], str]]] [Optional]¶ param prefix: str = ''¶
[ 5317, 8995, 61848, 13044, 840, 365, 82326, 1006, 365, 37502, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 840, 365, 82326, 1006, 365, 37502, 55715, 7423, 4163, 11, 1988, 29282, 25, 1796, 17752, 1145, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 11, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 284, 2290, 11, 10507, 25, 12536, 53094, 58, 8644, 5163, 284, 2290, 11, 3187, 29990, 25, 12536, 58, 4066, 13617, 6001, 60, 284, 2290, 11, 3187, 62521, 25, 60601, 7423, 11, 21166, 25, 610, 11, 3187, 59304, 25, 610, 284, 5307, 77, 1734, 518, 9436, 25, 610, 284, 9158, 3896, 9132, 25, 610, 284, 364, 69, 31981, 518, 9788, 8864, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 935, 55715, 7423, 198, 55715, 3896, 430, 5727, 2478, 6689, 10507, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 3187, 62521, 25, 8859, 8995, 61848, 13044, 66499, 1087, 15091, 7423, 510, 8327, 60, 55609, 198, 55715, 7423, 1511, 311, 3645, 459, 3927, 3187, 627, 913, 3187, 29990, 25, 12536, 58, 5317, 8995, 61848, 13044, 7880, 29990, 9105, 13316, 13617, 6001, 60, 284, 2290, 55609, 198, 13617, 6001, 311, 5268, 279, 10507, 311, 3645, 1139, 279, 10137, 627, 50344, 420, 477, 10507, 1288, 387, 3984, 627, 913, 3187, 59304, 25, 610, 284, 5307, 77, 1734, 6, 55609, 198, 707, 25829, 1511, 311, 5249, 279, 9436, 11, 279, 10507, 11, 323, 21166, 627, 913, 10507, 25, 12536, 53094, 58, 8644, 5163, 284, 2290, 55609, 198, 41481, 311, 3645, 1139, 279, 10137, 627, 50344, 420, 477, 3187, 29990, 1288, 387, 3984, 627, 913, 1988, 29282, 25, 1796, 17752, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 5144, 315, 279, 7482, 279, 10137, 3896, 25283, 627, 913, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 55609, 198, 4438, 311, 4820, 279, 2612, 315, 8260, 459, 445, 11237, 389, 420, 24001, 10137, 627, 913, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 510, 15669, 60, 55609, 198, 913, 9436, 25, 610, 284, 3436, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot.FewShotPromptTemplate.html
7bbe400ebcc9-1
param prefix: str = ''¶ A prompt template string to put before the examples. param suffix: str [Required]¶ A prompt template string to put after the examples. param template_format: str = 'f-string'¶ The format of the prompt template. Options are: ‘f-string’, ‘jinja2’. param validate_template: bool = True¶ Whether or not to try validating the template. validator check_examples_and_selector  »  all fields[source]¶ Check that one and only one of examples/example_selector are provided. dict(**kwargs: Any) → Dict[source]¶ Return a dictionary of the prompt. format(**kwargs: Any) → str[source]¶ Format the prompt with the inputs. Parameters kwargs – Any arguments to be passed to the prompt template. Returns A formatted string. Example: prompt.format(variable1="foo") format_prompt(**kwargs: Any) → PromptValue¶ Create Chat Messages. partial(**kwargs: Union[str, Callable[[], str]]) → BasePromptTemplate¶ Return a partial of the prompt template. save(file_path: Union[Path, str]) → None¶ Save the prompt. Parameters file_path – Path to directory to save prompt to. Example: .. code-block:: python prompt.save(file_path=”path/prompt.yaml”) validator template_is_valid  »  all fields[source]¶ Check that prefix, suffix and input variables are consistent. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ validator validate_variable_names  »  all fields¶ Validate variable names do not include restricted names. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor.
[ 913, 9436, 25, 610, 284, 3436, 55609, 198, 32, 10137, 3896, 925, 311, 2231, 1603, 279, 10507, 627, 913, 21166, 25, 610, 510, 8327, 60, 55609, 198, 32, 10137, 3896, 925, 311, 2231, 1306, 279, 10507, 627, 913, 3896, 9132, 25, 610, 284, 364, 69, 31981, 6, 55609, 198, 791, 3645, 315, 279, 10137, 3896, 13, 14908, 527, 25, 3451, 69, 31981, 20182, 3451, 73, 42520, 17, 529, 627, 913, 9788, 8864, 25, 1845, 284, 3082, 55609, 198, 25729, 477, 539, 311, 1456, 69772, 279, 3896, 627, 16503, 1817, 46379, 8543, 29990, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 4061, 430, 832, 323, 1193, 832, 315, 10507, 66282, 29990, 527, 3984, 627, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 76747, 60, 55609, 198, 5715, 264, 11240, 315, 279, 10137, 627, 2293, 22551, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 4152, 279, 10137, 449, 279, 11374, 627, 9905, 198, 9872, 1389, 5884, 6105, 311, 387, 5946, 311, 279, 10137, 3896, 627, 16851, 198, 32, 24001, 925, 627, 13617, 512, 41681, 8180, 46129, 16, 429, 8134, 1158, 2293, 62521, 22551, 9872, 25, 5884, 8, 11651, 60601, 1150, 55609, 198, 4110, 13149, 27827, 627, 38520, 22551, 9872, 25, 9323, 17752, 11, 54223, 58, 13292, 610, 30716, 11651, 5464, 55715, 7423, 55609, 198, 5715, 264, 7276, 315, 279, 10137, 3896, 627, 6766, 4971, 2703, 25, 9323, 58, 1858, 11, 610, 2526, 11651, 2290, 55609, 198, 8960, 279, 10137, 627, 9905, 198, 1213, 2703, 1389, 8092, 311, 6352, 311, 3665, 10137, 311, 627, 13617, 512, 497, 2082, 9612, 487, 10344, 198, 41681, 5799, 4971, 2703, 45221, 2398, 4420, 15091, 34506, 863, 340, 16503, 3896, 7037, 8501, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 4061, 430, 9436, 11, 21166, 323, 1988, 7482, 527, 13263, 627, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16503, 9788, 14977, 9366, 4194, 8345, 4194, 682, 5151, 55609, 198, 18409, 3977, 5144, 656, 539, 2997, 22486, 5144, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot.FewShotPromptTemplate.html
7bbe400ebcc9-2
serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config[source]¶ Bases: object Configuration for this pydantic object. arbitrary_types_allowed = True¶ extra = 'forbid'¶
[ 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 76747, 60, 55609, 198, 33, 2315, 25, 1665, 198, 7843, 369, 420, 4611, 67, 8322, 1665, 627, 277, 88951, 9962, 43255, 284, 3082, 55609, 198, 15824, 284, 364, 2000, 21301, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.few_shot.FewShotPromptTemplate.html
7f211b82a8e4-0
langchain.prompts.loading.load_prompt_from_config¶ langchain.prompts.loading.load_prompt_from_config(config: dict) → BasePromptTemplate[source]¶ Load prompt from Config Dict.
[ 5317, 8995, 61848, 13044, 25908, 5214, 62521, 5791, 5445, 55609, 198, 5317, 8995, 61848, 13044, 25908, 5214, 62521, 5791, 5445, 8928, 25, 6587, 8, 11651, 5464, 55715, 7423, 76747, 60, 55609, 198, 6003, 10137, 505, 5649, 30226, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.loading.load_prompt_from_config.html
5c6902124345-0
langchain.prompts.base.check_valid_template¶ langchain.prompts.base.check_valid_template(template: str, template_format: str, input_variables: List[str]) → None[source]¶ Check that template string is valid.
[ 5317, 8995, 61848, 13044, 9105, 9271, 8501, 8864, 55609, 198, 5317, 8995, 61848, 13044, 9105, 9271, 8501, 8864, 31063, 25, 610, 11, 3896, 9132, 25, 610, 11, 1988, 29282, 25, 1796, 17752, 2526, 11651, 2290, 76747, 60, 55609, 198, 4061, 430, 3896, 925, 374, 2764, 13 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.base.check_valid_template.html
9938a988c250-0
langchain.prompts.pipeline.PipelinePromptTemplate¶ class langchain.prompts.pipeline.PipelinePromptTemplate(*, input_variables: List[str], output_parser: Optional[BaseOutputParser] = None, partial_variables: Mapping[str, Union[str, Callable[[], str]]] = None, final_prompt: BasePromptTemplate, pipeline_prompts: List[Tuple[str, BasePromptTemplate]])[source]¶ Bases: BasePromptTemplate A prompt template for composing multiple prompts together. This can be useful when you want to reuse parts of prompts. A PipelinePrompt consists of two main parts: final_prompt: This is the final prompt that is returned pipeline_prompts: This is a list of tuples, consistingof a string (name) and a Prompt Template. Each PromptTemplate will be formatted and then passed to future prompt templates as a variable with the same name as name Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param final_prompt: langchain.prompts.base.BasePromptTemplate [Required]¶ param input_variables: List[str] [Required]¶ A list of the names of the variables the prompt template expects. param output_parser: Optional[BaseOutputParser] = None¶ How to parse the output of calling an LLM on this formatted prompt. param partial_variables: Mapping[str, Union[str, Callable[[], str]]] [Optional]¶ param pipeline_prompts: List[Tuple[str, langchain.prompts.base.BasePromptTemplate]] [Required]¶ dict(**kwargs: Any) → Dict¶ Return dictionary representation of prompt. format(**kwargs: Any) → str[source]¶ Format the prompt with the inputs. Parameters kwargs – Any arguments to be passed to the prompt template. Returns A formatted string. Example:
[ 5317, 8995, 61848, 13044, 58833, 1087, 8966, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 58833, 1087, 8966, 55715, 7423, 4163, 11, 1988, 29282, 25, 1796, 17752, 1145, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 11, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 284, 2290, 11, 1620, 62521, 25, 5464, 55715, 7423, 11, 15660, 48977, 13044, 25, 1796, 20961, 6189, 17752, 11, 5464, 55715, 7423, 30716, 58, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 55715, 7423, 198, 32, 10137, 3896, 369, 76978, 5361, 52032, 3871, 627, 2028, 649, 387, 5505, 994, 499, 1390, 311, 27068, 5596, 315, 52032, 627, 32, 42007, 55715, 17610, 315, 1403, 1925, 5596, 512, 12085, 62521, 25, 1115, 374, 279, 1620, 10137, 430, 374, 6052, 198, 52358, 48977, 13044, 25, 1115, 374, 264, 1160, 315, 46325, 11, 31706, 1073, 264, 925, 320, 609, 8, 323, 264, 60601, 14692, 627, 4959, 60601, 7423, 690, 387, 24001, 323, 1243, 5946, 198, 998, 3938, 10137, 20506, 439, 264, 3977, 449, 198, 1820, 1890, 836, 439, 836, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1620, 62521, 25, 8859, 8995, 61848, 13044, 9105, 13316, 55715, 7423, 510, 8327, 60, 55609, 198, 913, 1988, 29282, 25, 1796, 17752, 60, 510, 8327, 60, 55609, 198, 32, 1160, 315, 279, 5144, 315, 279, 7482, 279, 10137, 3896, 25283, 627, 913, 2612, 19024, 25, 12536, 58, 4066, 5207, 6707, 60, 284, 2290, 55609, 198, 4438, 311, 4820, 279, 2612, 315, 8260, 459, 445, 11237, 389, 420, 24001, 10137, 627, 913, 7276, 29282, 25, 39546, 17752, 11, 9323, 17752, 11, 54223, 58, 13292, 610, 5163, 60, 510, 15669, 60, 55609, 198, 913, 15660, 48977, 13044, 25, 1796, 20961, 6189, 17752, 11, 8859, 8995, 61848, 13044, 9105, 13316, 55715, 7423, 5163, 510, 8327, 60, 55609, 198, 8644, 22551, 9872, 25, 5884, 8, 11651, 30226, 55609, 198, 5715, 11240, 13340, 315, 10137, 627, 2293, 22551, 9872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 4152, 279, 10137, 449, 279, 11374, 627, 9905, 198, 9872, 1389, 5884, 6105, 311, 387, 5946, 311, 279, 10137, 3896, 627, 16851, 198, 32, 24001, 925, 627, 13617, 25 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.pipeline.PipelinePromptTemplate.html
9938a988c250-1
Returns A formatted string. Example: prompt.format(variable1="foo") format_prompt(**kwargs: Any) → PromptValue[source]¶ Create Chat Messages. validator get_input_variables  »  all fields[source]¶ Get input variables. partial(**kwargs: Union[str, Callable[[], str]]) → BasePromptTemplate¶ Return a partial of the prompt template. save(file_path: Union[Path, str]) → None¶ Save the prompt. Parameters file_path – Path to directory to save prompt to. Example: .. code-block:: python prompt.save(file_path=”path/prompt.yaml”) to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ validator validate_variable_names  »  all fields¶ Validate variable names do not include restricted names. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object Configuration for this pydantic object. arbitrary_types_allowed = True¶
[ 16851, 198, 32, 24001, 925, 627, 13617, 512, 41681, 8180, 46129, 16, 429, 8134, 1158, 2293, 62521, 22551, 9872, 25, 5884, 8, 11651, 60601, 1150, 76747, 60, 55609, 198, 4110, 13149, 27827, 627, 16503, 636, 6022, 29282, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 1991, 1988, 7482, 627, 38520, 22551, 9872, 25, 9323, 17752, 11, 54223, 58, 13292, 610, 30716, 11651, 5464, 55715, 7423, 55609, 198, 5715, 264, 7276, 315, 279, 10137, 3896, 627, 6766, 4971, 2703, 25, 9323, 58, 1858, 11, 610, 2526, 11651, 2290, 55609, 198, 8960, 279, 10137, 627, 9905, 198, 1213, 2703, 1389, 8092, 311, 6352, 311, 3665, 10137, 311, 627, 13617, 512, 497, 2082, 9612, 487, 10344, 198, 41681, 5799, 4971, 2703, 45221, 2398, 4420, 15091, 34506, 863, 340, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 16503, 9788, 14977, 9366, 4194, 8345, 4194, 682, 5151, 55609, 198, 18409, 3977, 5144, 656, 539, 2997, 22486, 5144, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 7843, 369, 420, 4611, 67, 8322, 1665, 627, 277, 88951, 9962, 43255, 284, 3082, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.pipeline.PipelinePromptTemplate.html
fae94db8a7ae-0
langchain.prompts.chat.SystemMessagePromptTemplate¶ class langchain.prompts.chat.SystemMessagePromptTemplate(*, prompt: StringPromptTemplate, additional_kwargs: dict = None)[source]¶ Bases: BaseStringMessagePromptTemplate Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param additional_kwargs: dict [Optional]¶ param prompt: langchain.prompts.base.StringPromptTemplate [Required]¶ format(**kwargs: Any) → BaseMessage[source]¶ To a BaseMessage. format_messages(**kwargs: Any) → List[BaseMessage]¶ To messages. classmethod from_template(template: str, template_format: str = 'f-string', **kwargs: Any) → MessagePromptTemplateT¶ classmethod from_template_file(template_file: Union[str, Path], input_variables: List[str], **kwargs: Any) → MessagePromptTemplateT¶ to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implemented() → SerializedNotImplemented¶ property input_variables: List[str]¶ Input variables for this prompt template. property lc_attributes: Dict¶ Return a list of attribute names that should be included in the serialized kwargs. These attributes must be accepted by the constructor. property lc_namespace: List[str]¶ Return the namespace of the langchain object. eg. [“langchain”, “llms”, “openai”] property lc_secrets: Dict[str, str]¶ Return a map of constructor argument names to secret ids. eg. {“openai_api_key”: “OPENAI_API_KEY”} property lc_serializable: bool¶ Return whether or not the class is serializable. model Config¶ Bases: object extra = 'ignore'¶
[ 5317, 8995, 61848, 13044, 27215, 17031, 2097, 55715, 7423, 55609, 198, 1058, 8859, 8995, 61848, 13044, 27215, 17031, 2097, 55715, 7423, 4163, 11, 10137, 25, 935, 55715, 7423, 11, 5217, 37335, 25, 6587, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 707, 2097, 55715, 7423, 198, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5217, 37335, 25, 6587, 510, 15669, 60, 55609, 198, 913, 10137, 25, 8859, 8995, 61848, 13044, 9105, 6567, 55715, 7423, 510, 8327, 60, 55609, 198, 2293, 22551, 9872, 25, 5884, 8, 11651, 5464, 2097, 76747, 60, 55609, 198, 1271, 264, 5464, 2097, 627, 2293, 24321, 22551, 9872, 25, 5884, 8, 11651, 1796, 58, 4066, 2097, 60, 55609, 198, 1271, 6743, 627, 27853, 505, 8864, 31063, 25, 610, 11, 3896, 9132, 25, 610, 284, 364, 69, 31981, 518, 3146, 9872, 25, 5884, 8, 11651, 4961, 55715, 7423, 51, 55609, 198, 27853, 505, 8864, 2517, 31063, 2517, 25, 9323, 17752, 11, 8092, 1145, 1988, 29282, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 4961, 55715, 7423, 51, 55609, 198, 998, 9643, 368, 11651, 9323, 58, 78621, 13591, 11, 92572, 2688, 18804, 60, 55609, 198, 998, 9643, 8072, 18377, 14565, 368, 11651, 92572, 2688, 18804, 55609, 198, 3784, 1988, 29282, 25, 1796, 17752, 60, 55609, 198, 2566, 7482, 369, 420, 10137, 3896, 627, 3784, 37313, 18741, 25, 30226, 55609, 198, 5715, 264, 1160, 315, 7180, 5144, 430, 1288, 387, 5343, 304, 279, 198, 76377, 16901, 13, 4314, 8365, 2011, 387, 11928, 555, 279, 198, 22602, 627, 3784, 37313, 42671, 25, 1796, 17752, 60, 55609, 198, 5715, 279, 4573, 315, 279, 8859, 8995, 1665, 627, 797, 13, 510, 2118, 5317, 8995, 9520, 1054, 657, 1026, 9520, 1054, 2569, 2192, 863, 933, 3784, 37313, 3537, 53810, 25, 30226, 17752, 11, 610, 60, 55609, 198, 5715, 264, 2472, 315, 4797, 5811, 5144, 311, 6367, 14483, 627, 797, 13, 314, 2118, 2569, 2192, 11959, 3173, 57633, 1054, 32033, 15836, 11669, 6738, 863, 534, 3784, 37313, 26684, 8499, 25, 1845, 55609, 198, 5715, 3508, 477, 539, 279, 538, 374, 6275, 8499, 627, 2590, 5649, 55609, 198, 33, 2315, 25, 1665, 198, 15824, 284, 364, 13431, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/prompts/langchain.prompts.chat.SystemMessagePromptTemplate.html