id stringlengths 14 15 | text stringlengths 35 2.07k | embedding sequence | source stringlengths 61 154 |
|---|---|---|---|
20e9b0d32d50-0 | API Reference¶
langchain.agents: Agents¶
Interface for agents.
Classes¶
agents.agent.Agent
Class responsible for calling the language model and deciding the action.
agents.agent.AgentExecutor
Consists of an agent using tools.
agents.agent.AgentOutputParser
Create a new model by parsing and validating input data from ke... | [
7227,
17650,
55609,
198,
5317,
8995,
29192,
812,
25,
51354,
55609,
198,
5160,
369,
13307,
627,
20678,
55609,
198,
55975,
45249,
89969,
198,
1999,
8647,
369,
8260,
279,
4221,
1646,
323,
30230,
279,
1957,
627,
55975,
45249,
89969,
26321,
19... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-1 | agents.agent_toolkits.openapi.planner.RequestsPatchToolWithParsing
Create a new model by parsing and validating input data from keyword arguments.
agents.agent_toolkits.openapi.planner.RequestsPostToolWithParsing
Create a new model by parsing and validating input data from keyword arguments.
agents.agent_toolkits.opena... | [
55975,
45249,
23627,
90517,
59920,
8022,
4992,
9856,
82,
44722,
7896,
2409,
69939,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
55975,
45249,
23627,
90517,
59920,
8022,
4992,
9856,
82,
4226,
7896,
2... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-2 | agents.conversational_chat.base.ConversationalChatAgent
An agent designed to hold a conversation in addition to using tools.
agents.conversational_chat.output_parser.ConvoOutputParser
Create a new model by parsing and validating input data from keyword arguments.
agents.mrkl.base.ChainConfig(action_name, ...)
Configura... | [
55975,
2932,
3078,
1697,
36153,
9105,
4906,
3078,
1697,
16047,
17230,
198,
2127,
8479,
6319,
311,
3412,
264,
10652,
304,
5369,
311,
1701,
7526,
627,
55975,
2932,
3078,
1697,
36153,
13718,
19024,
4906,
3415,
5207,
6707,
198,
4110,
264,
502... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-3 | Create a new model by parsing and validating input data from keyword arguments.
agents.structured_chat.output_parser.StructuredChatOutputParser
Create a new model by parsing and validating input data from keyword arguments.
agents.structured_chat.output_parser.StructuredChatOutputParserWithRetries
Create a new model by... | [
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
55975,
13,
52243,
36153,
13718,
19024,
52545,
3149,
16047,
5207,
6707,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-4 | Construct a sql agent from an LLM and tools.
agents.agent_toolkits.sql.base.create_sql_agent(...)
Construct a sql agent from an LLM and tools.
agents.agent_toolkits.vectorstore.base.create_vectorstore_agent(...)
Construct a vectorstore agent from an LLM and tools.
agents.agent_toolkits.vectorstore.base.create_vectorsto... | [
29568,
264,
5822,
8479,
505,
459,
445,
11237,
323,
7526,
627,
55975,
45249,
23627,
90517,
10251,
9105,
2581,
18554,
26814,
73893,
29568,
264,
5822,
8479,
505,
459,
445,
11237,
323,
7526,
627,
55975,
45249,
23627,
90517,
48203,
4412,
9105,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-5 | cache.RedisCache(redis_)
Cache that uses Redis as a backend.
cache.RedisSemanticCache(redis_url, embedding)
Cache that uses Redis as a vector-store backend.
cache.SQLAlchemyCache(engine, cache_schema)
Cache that uses SQAlchemy as a backend.
cache.SQLiteCache([database_path])
Cache that uses SQLite as a backend.
langcha... | [
9544,
83498,
8397,
98776,
24262,
8397,
430,
5829,
35258,
439,
264,
19713,
627,
9544,
83498,
99031,
8397,
98776,
2975,
11,
4194,
95711,
340,
8397,
430,
5829,
35258,
439,
264,
4724,
34352,
19713,
627,
9544,
26151,
68614,
8397,
50074,
11,
41... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-6 | Callback Handler that logs to Infino.
callbacks.manager.AsyncCallbackManager(handlers)
Async callback manager that can be used to handle callbacks from LangChain.
callbacks.manager.AsyncCallbackManagerForChainRun(*, ...)
Async callback manager for chain run.
callbacks.manager.AsyncCallbackManagerForLLMRun(*, ...)
Async... | [
7646,
20549,
430,
18929,
311,
15268,
3394,
627,
69411,
33915,
45219,
7646,
2087,
64311,
9438,
340,
6662,
4927,
6783,
430,
649,
387,
1511,
311,
3790,
27777,
505,
23272,
19368,
627,
69411,
33915,
45219,
7646,
2087,
2520,
19368,
6869,
4163,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-7 | callbacks.streaming_aiter.AsyncIteratorCallbackHandler()
Callback handler that returns an async iterator.
callbacks.streaming_aiter_final_only.AsyncFinalIteratorCallbackHandler(*)
Callback handler that returns an async iterator.
callbacks.streaming_stdout.StreamingStdOutCallbackHandler()
Callback handler for streaming.... | [
69411,
85058,
62,
1339,
261,
45219,
12217,
7646,
3126,
746,
7646,
7158,
430,
4780,
459,
3393,
15441,
627,
69411,
85058,
62,
1339,
261,
21333,
18917,
45219,
19918,
12217,
7646,
3126,
4163,
340,
7646,
7158,
430,
4780,
459,
3393,
15441,
627,... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-8 | callbacks.tracers.schemas.ToolRun
Class for ToolRun.
callbacks.tracers.schemas.TracerSession
TracerSessionV1 schema for the V2 API.
callbacks.tracers.schemas.TracerSessionBase
A creation class for TracerSession.
callbacks.tracers.schemas.TracerSessionV1
TracerSessionV1 schema.
callbacks.tracers.schemas.TracerSessionV1B... | [
69411,
5543,
73797,
516,
32226,
25443,
6869,
198,
1999,
369,
13782,
6869,
627,
69411,
5543,
73797,
516,
32226,
8404,
9779,
5396,
198,
1305,
9779,
5396,
53,
16,
11036,
369,
279,
650,
17,
5446,
627,
69411,
5543,
73797,
516,
32226,
8404,
9... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-9 | Get a callback manager for a chain group in a context manager.
callbacks.manager.tracing_enabled([session_name])
Get the Deprecated LangChainTracer in a context manager.
callbacks.manager.tracing_v2_enabled([...])
Instruct LangChain to log all runs in context to LangSmith.
callbacks.manager.wandb_tracing_enabled([...])... | [
1991,
264,
4927,
6783,
369,
264,
8957,
1912,
304,
264,
2317,
6783,
627,
69411,
33915,
5543,
4628,
18721,
2625,
6045,
1292,
2608,
1991,
279,
85016,
23272,
19368,
1305,
9779,
304,
264,
2317,
6783,
627,
69411,
33915,
5543,
4628,
2325,
17,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-10 | Hash a string using sha1.
callbacks.utils.import_pandas()
Import the pandas python package and raise an error if it is not installed.
callbacks.utils.import_spacy()
Import the spacy python package and raise an error if it is not installed.
callbacks.utils.import_textstat()
Import the textstat python package and raise a... | [
6504,
264,
925,
1701,
16249,
16,
627,
69411,
8576,
35997,
623,
56533,
746,
11772,
279,
19130,
10344,
6462,
323,
4933,
459,
1493,
422,
433,
374,
539,
10487,
627,
69411,
8576,
35997,
10331,
2826,
746,
11772,
279,
993,
2826,
10344,
6462,
3... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-11 | chains.combine_documents.base.BaseCombineDocumentsChain
Base interface for chains combining documents.
chains.combine_documents.map_reduce.CombineDocsProtocol(...)
Interface for the combine_docs method.
chains.combine_documents.map_reduce.MapReduceDocumentsChain
Combining documents by mapping a chain over them, then co... | [
59458,
90390,
77027,
9105,
13316,
82214,
28242,
19368,
198,
4066,
3834,
369,
27271,
35271,
9477,
627,
59458,
90390,
77027,
4875,
65696,
32224,
64207,
21346,
73893,
5160,
369,
279,
16343,
50792,
1749,
627,
59458,
90390,
77027,
4875,
65696,
103... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-12 | chains.graph_qa.kuzu.KuzuQAChain
Chain for question-answering against a graph by generating Cypher statements for Kùzu.
chains.graph_qa.nebulagraph.NebulaGraphQAChain
Chain for question-answering against a graph by generating nGQL statements.
chains.hyde.base.HypotheticalDocumentEmbedder
Generate hypothetical document ... | [
59458,
10996,
9153,
64,
5314,
87425,
11606,
87425,
48622,
19368,
198,
19368,
369,
3488,
12,
598,
86,
4776,
2403,
264,
4876,
555,
24038,
18221,
29182,
12518,
369,
735,
15273,
26738,
627,
59458,
10996,
9153,
64,
23456,
16501,
9398,
2112,
31... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-13 | Create a new model by parsing and validating input data from keyword arguments.
chains.openai_functions.qa_with_structure.AnswerWithSources
An answer to the question being asked, with sources.
chains.pal.base.PALChain
Implements Program-Aided Language Models.
chains.prompt_selector.BasePromptSelector
Create a new model... | [
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
59458,
5949,
2192,
32808,
11608,
64,
6753,
39383,
8794,
3643,
2409,
33300,
198,
2127,
4320,
311,
279,
3488,
1694,
4691,
11,
449,
8336,
627,
59458,
558,
278,... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-14 | Defines interface for IR translation using visitor pattern.
chains.query_constructor.parser.QueryTransformer
chains.query_constructor.schema.AttributeInfo
Information about a data source attribute.
chains.question_answering.__init__.LoadingCallable(...)
Interface for loading the combine documents chain.
chains.retrieva... | [
74916,
3834,
369,
16646,
14807,
1701,
20792,
5497,
627,
59458,
4891,
67310,
26699,
16060,
47458,
198,
59458,
4891,
67310,
31992,
34875,
1767,
198,
15218,
922,
264,
828,
2592,
7180,
627,
59458,
32846,
61901,
86,
4776,
4952,
2381,
19247,
8746... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-15 | Chain for querying SQL database that is a sequential chain.
chains.summarize.__init__.LoadingCallable(...)
Interface for loading the combine documents chain.
chains.transform.TransformChain
Chain transform chain output.
Functions¶
chains.combine_documents.base.format_document(...)
Format a document into a string based ... | [
19368,
369,
82198,
8029,
4729,
430,
374,
264,
52100,
8957,
627,
59458,
13485,
5730,
553,
4952,
2381,
19247,
8746,
41510,
73893,
5160,
369,
8441,
279,
16343,
9477,
8957,
627,
59458,
8297,
46265,
19368,
198,
19368,
5276,
8957,
2612,
627,
26... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-16 | Returns the kwargs for the LLMChain constructor.
chains.prompt_selector.is_chat_model(llm)
Check if the language model is a chat model.
chains.prompt_selector.is_llm(llm)
Check if the language model is a LLM.
chains.qa_with_sources.loading.load_qa_with_sources_chain(llm)
Load question answering with sources chain.
chai... | [
16851,
279,
16901,
369,
279,
445,
11237,
19368,
4797,
627,
59458,
66499,
29990,
2124,
36153,
5156,
36621,
76,
340,
4061,
422,
279,
4221,
1646,
374,
264,
6369,
1646,
627,
59458,
66499,
29990,
2124,
44095,
76,
36621,
76,
340,
4061,
422,
2... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-17 | chat_models.google_palm.ChatGooglePalm
Wrapper around Google's PaLM Chat API.
chat_models.google_palm.ChatGooglePalmError
Error raised when there is an issue with the Google PaLM API.
chat_models.openai.ChatOpenAI
Wrapper around OpenAI Chat large language models.
chat_models.promptlayer_openai.PromptLayerChatOpenAI
Wra... | [
9884,
31892,
5831,
623,
7828,
59944,
14783,
47,
7828,
198,
11803,
2212,
5195,
596,
16056,
11237,
13149,
5446,
627,
9884,
31892,
5831,
623,
7828,
59944,
14783,
47,
7828,
1480,
198,
1480,
9408,
994,
1070,
374,
459,
4360,
449,
279,
5195,
1... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-18 | docstore.wikipedia.Wikipedia()
Wrapper around wikipedia API.
langchain.document_loaders: Document Loaders¶
All different types of document loaders.
Classes¶
document_loaders.acreom.AcreomLoader(path[, ...])
Initialize with path.
document_loaders.airbyte_json.AirbyteJSONLoader(...)
Loader that loads local airbyte json f... | [
5349,
4412,
34466,
1196,
15288,
746,
11803,
2212,
59318,
5446,
627,
5317,
8995,
17926,
12693,
388,
25,
12051,
9069,
388,
55609,
198,
2460,
2204,
4595,
315,
2246,
69674,
627,
20678,
55609,
198,
6190,
12693,
388,
15761,
265,
316,
885,
846,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-19 | A blob is used to represent raw data by either reference or value.
document_loaders.blob_loaders.schema.BlobLoader()
Abstract interface for blob loaders implementation.
document_loaders.blob_loaders.youtube_audio.YoutubeAudioLoader(...)
Load YouTube urls as audio file(s).
document_loaders.blockchain.BlockchainDocumentL... | [
32,
24295,
374,
1511,
311,
4097,
7257,
828,
555,
3060,
5905,
477,
907,
627,
6190,
12693,
388,
97381,
12693,
388,
31992,
1823,
1718,
9360,
746,
16328,
3834,
369,
24295,
69674,
8292,
627,
6190,
12693,
388,
97381,
12693,
388,
20751,
30788,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-20 | Loader that loads Outlook Message files using extract_msg.
document_loaders.email.UnstructuredEmailLoader(...)
Loader that uses unstructured to load email files.
document_loaders.embaas.BaseEmbaasLoader
Create a new model by parsing and validating input data from keyword arguments.
document_loaders.embaas.EmbaasBlobLoa... | [
9360,
430,
21577,
42158,
4961,
3626,
1701,
8819,
6619,
627,
6190,
12693,
388,
10048,
10840,
52243,
4886,
9360,
73893,
9360,
430,
5829,
653,
52243,
311,
2865,
2613,
3626,
627,
6190,
12693,
388,
9485,
4749,
300,
13316,
2321,
4749,
300,
9360... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-21 | Load GitBook data.
document_loaders.github.BaseGitHubLoader
Load issues of a GitHub repository.
document_loaders.github.GitHubIssuesLoader
Create a new model by parsing and validating input data from keyword arguments.
document_loaders.googledrive.GoogleDriveLoader
Loader that loads Google Docs from Google Drive.
docum... | [
6003,
21804,
7280,
828,
627,
6190,
12693,
388,
11267,
13316,
76715,
9360,
198,
6003,
4819,
315,
264,
33195,
12827,
627,
6190,
12693,
388,
11267,
1246,
275,
19876,
86928,
9360,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-22 | Loads a JSON file and references a jq schema provided to load the text into documents.
document_loaders.larksuite.LarkSuiteDocLoader(...)
Loader that loads LarkSuite (FeiShu) document.
document_loaders.markdown.UnstructuredMarkdownLoader(...)
Loader that uses unstructured to load markdown files.
document_loaders.mastod... | [
79617,
264,
4823,
1052,
323,
15407,
264,
45748,
11036,
3984,
311,
2865,
279,
1495,
1139,
9477,
627,
6190,
12693,
388,
929,
7341,
9486,
1236,
847,
29100,
9743,
9360,
73893,
9360,
430,
21577,
445,
847,
29100,
320,
6251,
72,
2059,
84,
8,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-23 | Loader that loads Open city data.
document_loaders.org_mode.UnstructuredOrgModeLoader(...)
Loader that uses unstructured to load Org-Mode files.
document_loaders.parsers.audio.OpenAIWhisperParser()
Transcribe and parse audio files.
document_loaders.parsers.generic.MimeTypeBasedParser(...)
A parser that uses mime-types ... | [
9360,
430,
21577,
5377,
3363,
828,
627,
6190,
12693,
388,
2726,
7450,
10840,
52243,
43537,
3720,
9360,
73893,
9360,
430,
5829,
653,
52243,
311,
2865,
34806,
12,
3720,
3626,
627,
6190,
12693,
388,
76592,
37847,
13250,
15836,
1671,
28470,
6... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-24 | document_loaders.pdf.OnlinePDFLoader(file_path)
Loader that loads online PDFs.
document_loaders.pdf.PDFMinerLoader(file_path)
Loader that uses PDFMiner to load PDF files.
document_loaders.pdf.PDFMinerPDFasHTMLLoader(...)
Loader that uses PDFMiner to load PDF files as HTML content.
document_loaders.pdf.PDFPlumberLoader(... | [
6190,
12693,
388,
16378,
8231,
1074,
24317,
9360,
4971,
2703,
340,
9360,
430,
21577,
2930,
11612,
82,
627,
6190,
12693,
388,
16378,
1087,
5375,
6349,
261,
9360,
4971,
2703,
340,
9360,
430,
5829,
11612,
6349,
261,
311,
2865,
11612,
3626,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-25 | Reddit posts loader.
document_loaders.roam.RoamLoader(path)
Loader that loads Roam files from disk.
document_loaders.rst.UnstructuredRSTLoader(...)
Loader that uses unstructured to load RST files.
document_loaders.rtf.UnstructuredRTFLoader(...)
Loader that uses unstructured to load rtf files.
document_loaders.s3_direct... | [
61574,
8158,
16432,
627,
6190,
12693,
388,
31942,
309,
2056,
78,
309,
9360,
5698,
340,
9360,
430,
21577,
12093,
309,
3626,
505,
13668,
627,
6190,
12693,
388,
1783,
267,
10840,
52243,
49,
790,
9360,
73893,
9360,
430,
5829,
653,
52243,
31... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-26 | Loader that loads HTML to markdown using 2markdown.
document_loaders.toml.TomlLoader(source)
A TOML document loader that inherits from the BaseLoader class.
document_loaders.trello.TrelloLoader(client, ...)
Trello loader.
document_loaders.twitter.TwitterTweetLoader(...)
Twitter tweets loader.
document_loaders.unstructu... | [
9360,
430,
21577,
9492,
311,
51594,
1701,
220,
17,
61173,
627,
6190,
12693,
388,
74594,
75,
844,
316,
75,
9360,
12719,
340,
32,
83565,
43,
2246,
16432,
430,
76582,
505,
279,
5464,
9360,
538,
627,
6190,
12693,
388,
739,
75233,
844,
752... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-27 | Loads a DOCX with docx2txt and chunks at character level.
document_loaders.word_document.UnstructuredWordDocumentLoader(...)
Loader that uses unstructured to load word documents.
document_loaders.xml.UnstructuredXMLLoader(...)
Loader that uses unstructured to load XML files.
document_loaders.youtube.GoogleApiYoutubeLoa... | [
79617,
264,
61455,
55,
449,
4733,
87,
17,
8754,
323,
27855,
520,
3752,
2237,
627,
6190,
12693,
388,
23397,
27326,
10840,
52243,
11116,
7676,
9360,
73893,
9360,
430,
5829,
653,
52243,
311,
2865,
3492,
9477,
627,
6190,
12693,
388,
9205,
1... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-28 | langchain.document_transformers: Document Transformers¶
Transform documents
Classes¶
document_transformers.EmbeddingsRedundantFilter
Filter that drops redundant documents by comparing their embeddings.
Functions¶
document_transformers.get_stateful_documents(...)
Convert a list of documents to a list of documents with s... | [
5317,
8995,
17926,
18956,
388,
25,
12051,
81632,
55609,
198,
9140,
9477,
198,
20678,
55609,
198,
6190,
18956,
388,
58955,
25624,
6161,
1263,
519,
5750,
198,
5750,
430,
21701,
48832,
9477,
555,
27393,
872,
71647,
627,
26272,
55609,
198,
61... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-29 | Wrapper around sentence_transformers embedding models.
embeddings.huggingface_hub.HuggingFaceHubEmbeddings
Wrapper around HuggingFaceHub embedding models.
embeddings.jina.JinaEmbeddings
Create a new model by parsing and validating input data from keyword arguments.
embeddings.llamacpp.LlamaCppEmbeddings
Wrapper around ... | [
11803,
2212,
11914,
18956,
388,
40188,
4211,
627,
12529,
25624,
870,
36368,
1594,
95096,
3924,
36368,
16680,
19876,
26566,
25624,
198,
11803,
2212,
473,
36368,
16680,
19876,
40188,
4211,
627,
12529,
25624,
1190,
2259,
3587,
2259,
26566,
25624... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-30 | Use tenacity to retry the embedding call.
embeddings.google_palm.embed_with_retry(...)
Use tenacity to retry the completion call.
embeddings.minimax.embed_with_retry(...)
Use tenacity to retry the completion call.
embeddings.openai.embed_with_retry(...)
Use tenacity to retry the embedding call.
embeddings.self_hosted_h... | [
10464,
5899,
4107,
311,
23515,
279,
40188,
1650,
627,
12529,
25624,
5831,
623,
7828,
41541,
6753,
63845,
73893,
10464,
5899,
4107,
311,
23515,
279,
9954,
1650,
627,
12529,
25624,
4456,
76209,
41541,
6753,
63845,
73893,
10464,
5899,
4107,
31... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-31 | evaluation.comparison.eval_chain.PairwiseStringResultOutputParser
A parser for the output of the PairwiseStringEvalChain.
evaluation.criteria.eval_chain.CriteriaEvalChain
LLM Chain for evaluating runs against criteria.
evaluation.criteria.eval_chain.CriteriaResultOutputParser
A parser for the output of the CriteriaEval... | [
75114,
916,
36642,
32810,
31683,
1087,
1334,
4583,
707,
2122,
5207,
6707,
198,
32,
6871,
369,
279,
2612,
315,
279,
27086,
4583,
707,
55569,
19368,
627,
75114,
90307,
32810,
31683,
93689,
55569,
19368,
198,
4178,
44,
29625,
369,
38663,
864... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-32 | Get an eval chain for grading a model's response against a map of criteria.
evaluation.run_evaluators.implementations.get_qa_evaluator(llm, *)
Get an eval chain that compares response against ground truth.
evaluation.run_evaluators.implementations.get_trajectory_evaluator(...)
Get an eval chain for grading a model's re... | [
1991,
459,
5720,
8957,
369,
66288,
264,
1646,
596,
2077,
2403,
264,
2472,
315,
13186,
627,
75114,
7789,
22001,
84,
3046,
12322,
2833,
811,
673,
9153,
64,
22001,
46262,
36621,
76,
11,
4194,
39060,
1991,
459,
5720,
8957,
430,
43565,
2077,... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-33 | A character with memory and innate characteristics.
experimental.generative_agents.memory.GenerativeAgentMemory
Create a new model by parsing and validating input data from keyword arguments.
experimental.llms.jsonformer_decoder.JsonFormer
Create a new model by parsing and validating input data from keyword arguments.
... | [
32,
3752,
449,
5044,
323,
65070,
17910,
627,
87803,
1326,
75989,
77447,
37711,
1246,
75989,
17230,
10869,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
87803,
60098,
1026,
4421,
35627,
50943,
13874,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-34 | Create a new model by parsing and validating input data from keyword arguments.
Functions¶
experimental.autonomous_agents.autogpt.output_parser.preprocess_json_input(...)
Preprocesses a string to be parsed as json.
experimental.autonomous_agents.autogpt.prompt_generator.get_prompt(tools)
This function generates a promp... | [
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
26272,
55609,
198,
87803,
32155,
30946,
77447,
32155,
540,
418,
13718,
19024,
6357,
4734,
9643,
6022,
73893,
4808,
4734,
288,
264,
925,
311,
387,
16051,
439,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-35 | Get colored text.
input.print_text(text[, color, end, file])
Print text with highlighting and no end characters.
langchain.llms: LLMs¶
Wrappers on top of large language models APIs.
Classes¶
llms.ai21.AI21
Wrapper around AI21 large language models.
llms.ai21.AI21PenaltyData
Parameters for AI21 penalty data.
llms.aleph_... | [
1991,
28296,
1495,
627,
1379,
2263,
4424,
7383,
38372,
4194,
3506,
11,
4194,
408,
11,
4194,
1213,
2608,
9171,
1495,
449,
39686,
323,
912,
842,
5885,
627,
5317,
8995,
60098,
1026,
25,
445,
11237,
82,
55609,
198,
36314,
28921,
389,
1948,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-36 | llms.beam.Beam
Wrapper around Beam API for gpt2 large language model.
llms.bedrock.Bedrock
LLM provider to invoke Bedrock models.
llms.cerebriumai.CerebriumAI
Wrapper around CerebriumAI large language models.
llms.clarifai.Clarifai
Wrapper around Clarifai's large language models.
llms.cohere.Cohere
Wrapper around Coher... | [
657,
1026,
8809,
309,
1823,
14922,
198,
11803,
2212,
51230,
5446,
369,
342,
418,
17,
3544,
4221,
1646,
627,
657,
1026,
91446,
21161,
1823,
291,
21161,
198,
4178,
44,
9287,
311,
20466,
13394,
21161,
4211,
627,
657,
1026,
522,
486,
65,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-37 | llms.llamacpp.LlamaCpp
Wrapper around the llama.cpp model.
llms.manifest.ManifestWrapper
Wrapper around HazyResearch's Manifest library.
llms.modal.Modal
Wrapper around Modal large language models.
llms.mosaicml.MosaicML
Wrapper around MosaicML's LLM inference service.
llms.nlpcloud.NLPCloud
Wrapper around NLPCloud lar... | [
657,
1026,
60098,
33707,
604,
1236,
81101,
10091,
198,
11803,
2212,
279,
94776,
7356,
1646,
627,
657,
1026,
21697,
7107,
73372,
11803,
198,
11803,
2212,
473,
13933,
28528,
596,
40461,
6875,
627,
657,
1026,
29605,
24002,
278,
198,
11803,
2... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-38 | Wrapper around RWKV language models.
llms.sagemaker_endpoint.ContentHandlerBase()
A handler class to transform input from LLM to a format that SageMaker endpoint expects.
llms.sagemaker_endpoint.LLMContentHandler()
Content handler for LLM class.
llms.sagemaker_endpoint.SagemakerEndpoint
Wrapper around custom Sagemaker ... | [
11803,
2212,
47306,
83807,
4221,
4211,
627,
657,
1026,
516,
15003,
4506,
37799,
12900,
3126,
4066,
746,
32,
7158,
538,
311,
5276,
1988,
505,
445,
11237,
311,
264,
3645,
430,
54384,
34359,
15233,
25283,
627,
657,
1026,
516,
15003,
4506,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-39 | llms.google_palm.generate_with_retry(llm, ...)
Use tenacity to retry the completion call.
llms.loading.load_llm(file)
Load LLM from file.
llms.loading.load_llm_from_config(config)
Load LLM from Config Dict.
llms.openai.completion_with_retry(llm, **kwargs)
Use tenacity to retry the completion call.
llms.openai.update_to... | [
657,
1026,
5831,
623,
7828,
22793,
6753,
63845,
36621,
76,
11,
4194,
32318,
10464,
5899,
4107,
311,
23515,
279,
9954,
1650,
627,
657,
1026,
25908,
5214,
44095,
76,
4971,
340,
6003,
445,
11237,
505,
1052,
627,
657,
1026,
25908,
5214,
440... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-40 | Classes¶
memory.buffer.ConversationBufferMemory
Buffer for storing conversation memory.
memory.buffer.ConversationStringBufferMemory
Buffer for storing conversation memory.
memory.buffer_window.ConversationBufferWindowMemory
Buffer for storing conversation memory.
memory.chat_memory.BaseChatMemory
Create a new model by... | [
20678,
55609,
198,
17717,
25472,
4906,
23124,
4187,
10869,
198,
4187,
369,
28672,
10652,
5044,
627,
17717,
25472,
4906,
23124,
707,
4187,
10869,
198,
4187,
369,
28672,
10652,
5044,
627,
17717,
25472,
12856,
4906,
23124,
4187,
4362,
10869,
1... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-41 | Class for combining multiple memories' data together.
memory.entity.BaseEntityStore
Create a new model by parsing and validating input data from keyword arguments.
memory.entity.ConversationEntityMemory
Entity extractor & summarizer memory.
memory.entity.InMemoryEntityStore
Basic in-memory entity store.
memory.entity.R... | [
1999,
369,
35271,
5361,
19459,
6,
828,
3871,
627,
17717,
9926,
13316,
3106,
6221,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
17717,
9926,
4906,
23124,
3106,
10869,
198,
3106,
68572,
612,
29385,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-42 | output_parsers.enum.EnumOutputParser
Create a new model by parsing and validating input data from keyword arguments.
output_parsers.fix.OutputFixingParser
Wraps a parser and tries to fix parsing errors.
output_parsers.list.CommaSeparatedListOutputParser
Parse out comma separated lists.
output_parsers.list.ListOutputPar... | [
3081,
623,
41588,
71283,
44325,
5207,
6707,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
3081,
623,
41588,
68885,
35346,
27048,
287,
6707,
198,
36314,
2690,
264,
6871,
323,
16696,
311,
5155,
23115,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-43 | output_parsers.structured.StructuredOutputParser
Create a new model by parsing and validating input data from keyword arguments.
Functions¶
output_parsers.json.parse_and_check_json_markdown(...)
Parse a JSON string from a Markdown string and check that it contains the expected keys.
output_parsers.json.parse_json_markd... | [
3081,
623,
41588,
13,
52243,
52545,
3149,
5207,
6707,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
26272,
55609,
198,
3081,
623,
41588,
4421,
4736,
8543,
7348,
9643,
19460,
2996,
73893,
14802,
264,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-44 | Create a new model by parsing and validating input data from keyword arguments.
prompts.example_selector.base.BaseExampleSelector()
Interface for selecting examples to include in prompts.
prompts.example_selector.length_based.LengthBasedExampleSelector
Select examples based on length.
prompts.example_selector.ngram_ove... | [
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
25475,
13044,
7880,
29990,
9105,
13316,
13617,
6001,
746,
5160,
369,
27397,
10507,
311,
2997,
304,
52032,
627,
25475,
13044,
7880,
29990,
1996,
67779,
6976,
2... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-45 | Lightweight wrapper around requests library, with async support.
Classes¶
requests.Requests
Wrapper around requests to handle auth and async.
requests.TextRequestsWrapper
Lightweight wrapper around requests library.
langchain.retrievers: Retrievers¶
Classes¶
retrievers.arxiv.ArxivRetriever
It is effectively a wrapper f... | [
14235,
4870,
13564,
2212,
7540,
6875,
11,
449,
3393,
1862,
627,
20678,
55609,
198,
37342,
9856,
82,
198,
11803,
2212,
7540,
311,
3790,
4259,
323,
3393,
627,
37342,
2021,
36395,
11803,
198,
14235,
4870,
13564,
2212,
7540,
6875,
627,
5317,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-46 | Create a new model by parsing and validating input data from keyword arguments.
retrievers.document_compressors.embeddings_filter.EmbeddingsFilter
Create a new model by parsing and validating input data from keyword arguments.
retrievers.elastic_search_bm25.ElasticSearchBM25Retriever(...)
Wrapper around Elasticsearch u... | [
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
265,
9104,
3078,
17926,
88945,
1105,
41541,
25624,
8901,
58955,
25624,
5750,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-47 | Question-answering with sources over an LlamaIndex graph data structure.
retrievers.llama_index.LlamaIndexRetriever
Question-answering with sources over an LlamaIndex data structure.
retrievers.merger_retriever.MergerRetriever(...)
This class merges the results of multiple retrievers.
retrievers.metal.MetalRetriever(cl... | [
14924,
12,
598,
86,
4776,
449,
8336,
927,
459,
445,
81101,
1581,
4876,
828,
6070,
627,
265,
9104,
3078,
60098,
3105,
3644,
1236,
81101,
1581,
12289,
462,
2099,
198,
14924,
12,
598,
86,
4776,
449,
8336,
927,
459,
445,
81101,
1581,
828,... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-48 | retrievers.self_query.pinecone.PineconeTranslator()
Logic for converting internal query language elements to valid filters.
retrievers.self_query.qdrant.QdrantTranslator(...)
Logic for converting internal query language elements to valid filters.
retrievers.self_query.weaviate.WeaviateTranslator()
Logic for converting ... | [
265,
9104,
3078,
28248,
5857,
558,
483,
59182,
1087,
483,
59182,
52753,
746,
27849,
369,
34537,
5419,
3319,
4221,
5540,
311,
2764,
13711,
627,
265,
9104,
3078,
28248,
5857,
11608,
3696,
519,
10208,
3696,
519,
52753,
73893,
27849,
369,
345... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-49 | retrievers.milvus.MilvusRetreiver(*args, ...)
Deprecated MilvusRetreiver.
retrievers.pinecone_hybrid_search.create_index(...)
Create a Pinecone index from a list of contexts.
retrievers.pinecone_hybrid_search.hash_text(text)
Hash a text using SHA256.
retrievers.self_query.myscale.DEFAULT_COMPOSER(op_name)
Default compo... | [
265,
9104,
3078,
749,
321,
85,
355,
1345,
321,
85,
355,
12289,
265,
1553,
4163,
2164,
11,
4194,
32318,
52444,
10357,
85,
355,
12289,
265,
1553,
627,
265,
9104,
3078,
558,
483,
59182,
1552,
94490,
10947,
2581,
3644,
73893,
4110,
264,
4... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-50 | schema.FunctionMessage
Create a new model by parsing and validating input data from keyword arguments.
schema.Generation
Output of a single generation.
schema.HumanMessage
Type of message that is spoken by the human.
schema.LLMResult
Class that contains all relevant information for an LLM Result.
schema.NoOpOutputParse... | [
17801,
31647,
2097,
198,
4110,
264,
502,
1646,
555,
23115,
323,
69772,
1988,
828,
505,
16570,
6105,
627,
17801,
67616,
198,
5207,
315,
264,
3254,
9659,
627,
17801,
3924,
7282,
2097,
198,
941,
315,
1984,
430,
374,
22066,
555,
279,
3823,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
20e9b0d32d50-51 | text_splitter.LineType
Line type as typed dict.
text_splitter.MarkdownTextSplitter(**kwargs)
Attempts to split the text along Markdown-formatted headings.
text_splitter.NLTKTextSplitter([separator])
Implementation of splitting text that looks at sentences using NLTK.
text_splitter.PythonCodeTextSplitter(**kwargs)
Attem... | [
1342,
17489,
466,
16825,
941,
198,
2519,
955,
439,
33069,
6587,
627,
1342,
17489,
466,
76988,
2996,
1199,
20805,
466,
22551,
9872,
340,
82617,
311,
6859,
279,
1495,
3235,
74292,
8627,
12400,
70552,
627,
1342,
17489,
466,
2112,
43,
16155,
... | https://langchain.readthedocs.io/en/latest/api_reference.html |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
msxgpt
Description
This dataset, "msxgpt," is designed for training the GPT-3.5-turbo/ GPT-4 based language model for a task. The data consists of JSON lines, each representing an individual example for the model.
The dataset has been created with an emphasis on encoding, which is pivotal to the functionality of Memory Features, Security, and API Endpoints. It is designed to process and store documents from various data sources continuously, using incoming webhooks to the upsert and delete endpoints.
Potential applications of this dataset could range from natural language understanding tasks to more specialized uses. For instance, tools like Zapier or Make can help configure the webhooks based on events or schedule, enabling sophisticated automation and workflow configuration capabilities.
Data Structure
Each line in the train.jsonl file is a JSON object with the following structure:
{
"input": "string",
"target": "string"
}
Usage
import json
with open('train.jsonl', 'r') as f:
for line in f:
obj = json.loads(line)
print(obj['input'], obj['target'])
License
This dataset is made available under the Creative Commons CC0 4.0 Universal (CC0 4.0) Public Domain Dedication. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
The above example states that anyone can use the dataset for any purpose without needing to ask for permission, which maximizes the dataset's usability.
- Downloads last month
- 11