Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
14
16
text
stringlengths
20
3.26k
source
stringlengths
65
181
c7f8bf914708-0
langchain_postgres 0.0.6¶ langchain_postgres.chat_message_histories¶ Client for persisting chat message history in a Postgres database. This client provides support for both sync and async via psycopg 3. Classes¶ chat_message_histories.PostgresChatMessageHistory(...) Client for persisting chat message history in a Post...
https://api.python.langchain.com/en/latest/postgres_api_reference.html
84a96703aa28-0
langchain_ai21 0.1.6¶ langchain_ai21.ai21_base¶ Classes¶ ai21_base.AI21Base Create a new model by parsing and validating input data from keyword arguments. langchain_ai21.chat¶ Classes¶ chat.chat_adapter.ChatAdapter() Provides a common interface for the different Chat models available in AI21. chat.chat_adapter.J2ChatA...
https://api.python.langchain.com/en/latest/ai21_api_reference.html
6402da86d7bd-0
langchain_exa 0.1.0¶ langchain_exa.retrievers¶ Classes¶ retrievers.ExaSearchRetriever Exa Search retriever. langchain_exa.tools¶ Tool for the Exa Search API. Classes¶ tools.ExaFindSimilarResults Tool that queries the Metaphor Search API and gets back json. tools.ExaSearchResults Tool that queries the Metaphor Search AP...
https://api.python.langchain.com/en/latest/exa_api_reference.html
769b8b2ed736-0
langchain_text_splitters 0.2.1¶ langchain_text_splitters.base¶ Classes¶ base.Language(value) Enum of the programming languages. base.TextSplitter(chunk_size, chunk_overlap, ...) Interface for splitting text into chunks. base.TokenTextSplitter([encoding_name, ...]) Splitting text to tokens using model tokenizer. base.To...
https://api.python.langchain.com/en/latest/text_splitters_api_reference.html
769b8b2ed736-1
Line type as typed dict. markdown.MarkdownHeaderTextSplitter(...[, ...]) Splitting markdown files based on specified headers. markdown.MarkdownTextSplitter(**kwargs) Attempts to split the text along Markdown-formatted headings. langchain_text_splitters.nltk¶ Classes¶ nltk.NLTKTextSplitter([separator, language]) Splitti...
https://api.python.langchain.com/en/latest/text_splitters_api_reference.html
ac4984d7bea5-0
langchain_fireworks 0.1.3¶ langchain_fireworks.chat_models¶ Fireworks chat wrapper. Classes¶ chat_models.ChatFireworks Fireworks Chat large language models API. langchain_fireworks.embeddings¶ Classes¶ embeddings.FireworksEmbeddings FireworksEmbeddings embedding model. langchain_fireworks.llms¶ Wrapper around Fireworks...
https://api.python.langchain.com/en/latest/fireworks_api_reference.html
bcc038c1af01-0
langchain_cohere 0.1.6¶ langchain_cohere.chat_models¶ Classes¶ chat_models.ChatCohere Implements the BaseChatModel (and BaseLanguageModel) interface with Cohere's large language models. Functions¶ chat_models.get_cohere_chat_request(messages, *) Get the request for the Cohere chat API. chat_models.get_role(message) Get...
https://api.python.langchain.com/en/latest/cohere_api_reference.html
bcc038c1af01-1
Parses a message into agent actions/finish. Functions¶ react_multi_hop.agent.create_cohere_react_agent(...) Create an agent that enables multiple tools to be used in sequence to complete a task. react_multi_hop.parsing.parse_actions(generation) Parse action selections from model output. react_multi_hop.parsing.parse_an...
https://api.python.langchain.com/en/latest/cohere_api_reference.html
bcc038c1af01-2
react_multi_hop.prompt.render_tool_signature(tool) Renders the signature of a tool into prompt content. react_multi_hop.prompt.render_type(type_, ...) Renders a tool's type into prompt content. langchain_cohere.rerank¶ Classes¶ rerank.CohereRerank Document compressor that uses Cohere Rerank API.
https://api.python.langchain.com/en/latest/cohere_api_reference.html
0bffa7774dfd-0
langchain_aws 0.1.6¶ langchain_aws.chat_models¶ Classes¶ chat_models.bedrock.BedrockChat [Deprecated] chat_models.bedrock.ChatBedrock A chat model that uses the Bedrock API. chat_models.bedrock.ChatPromptAdapter() Adapter class to prepare the inputs from Langchain to prompt format that Chat model expects. Functions¶ ch...
https://api.python.langchain.com/en/latest/aws_api_reference.html
0bffa7774dfd-1
graphs.neptune_graph.NeptuneQueryException(...) Exception for the Neptune queries. graphs.neptune_rdf_graph.NeptuneRdfGraph(host) Neptune wrapper for RDF graph operations. langchain_aws.llms¶ Classes¶ llms.bedrock.Bedrock [Deprecated] llms.bedrock.BedrockBase Base class for Bedrock models. llms.bedrock.BedrockLLM Bedro...
https://api.python.langchain.com/en/latest/aws_api_reference.html
0bffa7774dfd-2
Document attribute. retrievers.kendra.DocumentAttributeValue Value of a document attribute. retrievers.kendra.Highlight Information that highlights the keywords in the excerpt. retrievers.kendra.QueryResult Amazon Kendra Query API search result. retrievers.kendra.QueryResultItem Query API result item. retrievers.kendra...
https://api.python.langchain.com/en/latest/aws_api_reference.html
0427ef845670-0
langchain_voyageai 0.1.1¶ langchain_voyageai.embeddings¶ Classes¶ embeddings.VoyageAIEmbeddings VoyageAIEmbeddings embedding model. langchain_voyageai.rerank¶ Classes¶ rerank.VoyageAIRerank Document compressor that uses VoyageAI Rerank API.
https://api.python.langchain.com/en/latest/voyageai_api_reference.html
4c61959f7b68-0
langchain_couchbase 0.0.1¶ langchain_couchbase.vectorstores¶ Couchbase vector stores. Classes¶ vectorstores.CouchbaseVectorStore(cluster, ...) Couchbase vector store.
https://api.python.langchain.com/en/latest/couchbase_api_reference.html
1a3f9b66ffdb-0
langchain_experimental 0.0.60¶ langchain_experimental.agents¶ Agent is a class that uses an LLM to choose a sequence of actions to take. In Chains, a sequence of actions is hardcoded. In Agents, a language model is used as a reasoning engine to determine which actions to take and in which order. Agents select and use T...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-1
Agent for interacting with AutoGPT. autonomous_agents.autogpt.memory.AutoGPTMemory Memory for AutoGPT. autonomous_agents.autogpt.output_parser.AutoGPTAction(...) Action returned by AutoGPTOutputParser. autonomous_agents.autogpt.output_parser.AutoGPTOutputParser Output parser for AutoGPT. autonomous_agents.autogpt.outpu...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-2
autonomous_agents.hugginggpt.task_planner.PlanningOutputParser Parses the output of the planning stage. autonomous_agents.hugginggpt.task_planner.Step(...) A step in the plan. autonomous_agents.hugginggpt.task_planner.TaskPlaningChain Chain to execute tasks. autonomous_agents.hugginggpt.task_planner.TaskPlanner Planner...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-3
Wrapper for Orca-style models. chat_models.llm_wrapper.Vicuna Wrapper for Vicuna-style models. langchain_experimental.comprehend_moderation¶ Comprehend Moderation is used to detect and handle Personally Identifiable Information (PII), toxicity, and prompt safety in text. The Langchain experimental package includes the ...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-4
Configuration for PII moderation filter. comprehend_moderation.base_moderation_config.ModerationPromptSafetyConfig Configuration for Prompt Safety moderation filter. comprehend_moderation.base_moderation_config.ModerationToxicityConfig Configuration for Toxicity moderation filter. comprehend_moderation.base_moderation_...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-5
of causal relationships within a given context. Classes¶ cpal.base.CPALChain Causal program-aided language (CPAL) chain implementation. cpal.base.CausalChain Translate the causal narrative into a stack of operations. cpal.base.InterventionChain Set the hypothetical conditions for the causal model. cpal.base.NarrativeCh...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-6
Base abstract class for reversible anonymizers. data_anonymizer.deanonymizer_mapping.DeanonymizerMapping(...) Deanonymizer mapping. data_anonymizer.presidio.PresidioAnonymizer([...]) Anonymizer using Microsoft Presidio. data_anonymizer.presidio.PresidioAnonymizerBase([...]) Base Anonymizer using Microsoft Presidio. dat...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-7
as determined by paper [Robust and Explainable Identification of Logical Fallacies in Natural Language Arguments](https://arxiv.org/pdf/2212.07425.pdf). It is modeled after Constitutional AI and in the same format, but applying logical fallacies as generalized rules to remove them in output. Classes¶ fallacy_removal.ba...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-8
Map the SimpleNode to the base Node. graph_transformers.llm.map_to_base_relationship(rel) Map the SimpleRelationship to the base Relationship. graph_transformers.llm.optional_enum_field([...]) Utility function to conditionally create a field with an enum constraint. langchain_experimental.llm_bash¶ LLM bash is a chain ...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-9
llms.ollama_functions.OllamaFunctions Function chat model that uses Ollama API. llms.rellm_decoder.RELLM RELLM wrapped LLM using HuggingFace Pipeline API. Functions¶ llms.jsonformer_decoder.import_jsonformer() Lazily import of the jsonformer package. llms.lmformatenforcer_decoder.import_lmformatenforcer() Lazily import...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-10
Plan-and-execute agents are planning tasks with a language model (LLM) and executing them with a separate agent. Classes¶ plan_and_execute.agent_executor.PlanAndExecute Plan and execute a chain of steps. plan_and_execute.executors.base.BaseExecutor Base executor. plan_and_execute.executors.base.ChainExecutor Chain exec...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-11
is a fully managed machine learning service that uses your data to generate item recommendations for your users. Classes¶ recommenders.amazon_personalize.AmazonPersonalize([...]) Amazon Personalize Runtime wrapper for executing real-time operations. recommenders.amazon_personalize_chain.AmazonPersonalizeChain Chain for...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-12
Abstract class to grade the chosen selection or the response of the llm. rl_chain.base.VwPolicy(model_repo, vw_cmd, ...) Vowpal Wabbit policy. rl_chain.metrics.MetricsTrackerAverage(step) Metrics Tracker Average. rl_chain.metrics.MetricsTrackerRollingWindow(...) Metrics Tracker Rolling Window. rl_chain.model_repository...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-13
rl_chain.base.embed_dict_type(item, model) Embed a dictionary item. rl_chain.base.embed_list_type(item, model[, ...]) Embed a list item. rl_chain.base.embed_string_type(item, model) Embed a string or an _Embed object. rl_chain.base.get_based_on_and_to_select_from(inputs) Get the BasedOn and ToSelectFrom from the inputs...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-14
Classes¶ smart_llm.base.SmartLLMChain Chain for applying self-critique using the SmartGPT workflow. langchain_experimental.sql¶ SQL Chain interacts with SQL Database. Classes¶ sql.base.SQLDatabaseChain Chain for interacting with SQL Database. sql.base.SQLDatabaseSequentialChain Chain for querying SQL database that is a...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-15
Tool for running python code in a REPL. Functions¶ tools.python.tool.sanitize_input(query) Sanitize input to the python REPL. langchain_experimental.tot¶ Implementation of a Tree of Thought (ToT) chain based on the paper [Large Language Model Guided Tree-of-Thought](https://arxiv.org/pdf/2305.08291.pdf). The Tree of Th...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
1a3f9b66ffdb-16
Utility that simulates a standalone Python REPL. Classes¶ utilities.python.PythonREPL Simulates a standalone Python REPL. langchain_experimental.video_captioning¶ Classes¶ video_captioning.base.VideoCaptioningChain Video Captioning Chain. video_captioning.models.AudioModel(...) video_captioning.models.BaseModel(...) vi...
https://api.python.langchain.com/en/latest/experimental_api_reference.html
e0dcea695f3e-0
langchain_google_genai 1.0.6¶ langchain_google_genai.chat_models¶ Classes¶ chat_models.ChatGoogleGenerativeAI Google Generative AI Chat models API. chat_models.ChatGoogleGenerativeAIError Custom exception class for errors associated with the Google GenAI API. langchain_google_genai.embeddings¶ Classes¶ embeddings.Googl...
https://api.python.langchain.com/en/latest/google_genai_api_reference.html
1aeb7f07cbc6-0
langchain_google_community 1.0.5¶ langchain_google_community.bigquery¶ Classes¶ bigquery.BigQueryLoader(query[, project, ...]) Load from the Google Cloud Platform BigQuery. langchain_google_community.bigquery_vector_search¶ Vector Store in Google Cloud BigQuery. Classes¶ bigquery_vector_search.BigQueryVectorSearch(...)...
https://api.python.langchain.com/en/latest/google_community_api_reference.html
1aeb7f07cbc6-1
gmail.get_message.GmailGetMessage Tool that gets a message by ID from Gmail. gmail.get_message.SearchArgsSchema Input for GetMessageTool. gmail.get_thread.GetThreadSchema Input for GetMessageTool. gmail.get_thread.GmailGetThread Tool that gets a thread by ID from Gmail. gmail.loader.GMailLoader(creds[, n, raise_error])...
https://api.python.langchain.com/en/latest/google_community_api_reference.html
1aeb7f07cbc6-2
search.GoogleSearchAPIWrapper Wrapper for Google Search API. search.GoogleSearchResults Tool that queries the Google Search API and gets back json. search.GoogleSearchRun Tool that queries the Google search API. langchain_google_community.texttospeech¶ Classes¶ texttospeech.TextToSpeechTool Tool that queries the Google...
https://api.python.langchain.com/en/latest/google_community_api_reference.html
22fa5befd980-0
langchain 0.2.3¶ langchain.agents¶ Agent is a class that uses an LLM to choose a sequence of actions to take. In Chains, a sequence of actions is hardcoded. In Agents, a language model is used as a reasoning engine to determine which actions to take and in which order. Agents select and use Tools and Toolkits for actio...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-1
Toolkit for routing between Vector Stores. agents.agent_toolkits.vectorstore.toolkit.VectorStoreToolkit Toolkit for interacting with a Vector Store. agents.agent_types.AgentType(value) [Deprecated] An enum for agent types. agents.chat.base.ChatAgent [Deprecated] Chat Agent. agents.chat.output_parser.ChatOutputParser Ou...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-2
agents.openai_functions_multi_agent.base.OpenAIMultiFunctionsAgent [Deprecated] An Agent driven by OpenAIs function powered API. agents.output_parsers.json.JSONAgentOutputParser Parses tool invocations and final answers in JSON format. agents.output_parsers.openai_functions.OpenAIFunctionsAgentOutputParser Parses a mes...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-3
agents.schema.AgentScratchPadChatPromptTemplate Chat prompt template for the agent scratchpad. agents.self_ask_with_search.base.SelfAskWithSearchAgent [Deprecated] Agent for the self-ask-with-search paper. agents.self_ask_with_search.base.SelfAskWithSearchChain [Deprecated] [Deprecated] Chain that does self-ask with se...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-4
agents.format_scratchpad.tools.format_to_tool_messages(...) Convert (AgentAction, tool output) tuples into FunctionMessages. agents.format_scratchpad.xml.format_xml(...) Format the intermediate steps as XML. agents.initialize.initialize_agent(tools, llm) [Deprecated] Load an agent executor given tools and LLM. agents.j...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-5
langchain.callbacks¶ Callback handlers allow listening to events in LangChain. Class hierarchy: BaseCallbackHandler --> <name>CallbackHandler # Example: AimCallbackHandler Classes¶ callbacks.streaming_aiter.AsyncIteratorCallbackHandler() Callback handler that returns an async iterator. callbacks.streaming_aiter_final_...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-6
Combining documents by mapping a chain over them, then reranking results. chains.combine_documents.reduce.AsyncCombineDocsProtocol(...) Interface for the combine_docs method. chains.combine_documents.reduce.CombineDocsProtocol(...) Interface for the combine_docs method. chains.combine_documents.reduce.ReduceDocumentsCh...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-7
chains.llm.LLMChain [Deprecated] Chain to run queries against LLMs. chains.llm_checker.base.LLMCheckerChain Chain for question-answering with self-verification. chains.llm_math.base.LLMMathChain Chain that interprets a prompt and executes python code to do math. chains.llm_summarization_checker.base.LLMSummarizationChe...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-8
chains.qa_with_sources.loading.LoadingCallable(...) Interface for loading the combine documents chain. chains.qa_with_sources.retrieval.RetrievalQAWithSourcesChain Question-answering with sources over an index. chains.qa_with_sources.vector_db.VectorDBQAWithSourcesChain Question-answering with sources over a vector dat...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-9
chains.router.multi_retrieval_qa.MultiRetrievalQAChain A multi-route chain that uses an LLM router chain to choose amongst retrieval qa chains. chains.sequential.SequentialChain Chain where the outputs of one chain feed directly into next. chains.sequential.SimpleSequentialChain Simple chain where the outputs of one st...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-10
chains.openai_functions.citation_fuzzy_match.create_citation_fuzzy_match_chain(llm) Create a citation fuzzy match chain. chains.openai_functions.extraction.create_extraction_chain(...) [Deprecated] Creates a chain that extracts information from a passage. chains.openai_functions.extraction.create_extraction_chain_pydan...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-11
chains.query_constructor.base.fix_filter_directive(...) Fix invalid filter directive. chains.query_constructor.base.get_query_constructor_prompt(...) Create query construction prompt. chains.query_constructor.base.load_query_constructor_chain(...) Load a query constructor chain. chains.query_constructor.base.load_query...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-12
Functions¶ chat_models.base.init_chat_model(model, *[, ...]) [Beta] Initialize a ChatModel from the model name and provider. langchain.embeddings¶ Embedding models are wrappers around embedding models from different APIs and services. Embedding models can be LLMs or not. Class hierarchy: Embeddings --> <name>Embedding...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-13
Judging the efficacy of an agent’s tool usage: TrajectoryEvalChain Checking whether an output complies with a set of criteria: CriteriaEvalChain or LabeledCriteriaEvalChain when there is additionally a reference label. Computing semantic difference between a prediction and reference: EmbeddingDistanceEvalChain or betwe...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-14
A parser for the output of the CriteriaEvalChain. evaluation.criteria.eval_chain.LabeledCriteriaEvalChain Criteria evaluation chain that requires references. evaluation.embedding_distance.base.EmbeddingDistance(value) Embedding Distance Metric. evaluation.embedding_distance.base.EmbeddingDistanceEvalChain Use embedding...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-15
Compare the output of two models (or two outputs of the same model). evaluation.schema.StringEvaluator() Grade, tag, or otherwise evaluate predictions relative to their inputs and/or reference labels. evaluation.scoring.eval_chain.LabeledScoreStringEvalChain A chain for scoring the output of a model on a scale of 1-10....
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-16
langchain.indexes¶ Index is used to avoid writing duplicated content into the vectostore and to avoid over-writing content if it’s unchanged. Indexes also : Create knowledge graphs from data. Support indexing workflows from LangChain data loaders to vectorstores. Importantly, Index keeps on working even if the content ...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-17
Redis-backed Entity store. memory.entity.SQLiteEntityStore SQLite-backed Entity store memory.entity.UpstashRedisEntityStore Upstash Redis backed Entity store. memory.readonly.ReadOnlySharedMemory Memory wrapper that is read-only and cannot be changed. memory.simple.SimpleMemory Simple memory for storing context or othe...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-18
output_parsers.pandas_dataframe.PandasDataFrameOutputParser Parse an output using Pandas DataFrame format. output_parsers.regex.RegexParser Parse the output of an LLM call using a regex. output_parsers.regex_dict.RegexDictParser Parse the output of an LLM call into a Dictionary using a regex. output_parsers.retry.Retry...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-19
retrievers.document_compressors.chain_extract.LLMChainExtractor Document compressor that uses an LLM chain to extract the relevant parts of documents. retrievers.document_compressors.chain_extract.NoOutputParser Parse outputs that could return a null string of some sort. retrievers.document_compressors.chain_filter.LLM...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-20
retrievers.self_query.base.SelfQueryRetriever Retriever that uses a vector store and an LLM to generate the vector store queries. retrievers.time_weighted_retriever.TimeWeightedVectorStoreRetriever Retriever that combines embedding similarity with recency in retrieving values. Functions¶ retrievers.document_compressors...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-21
Evaluation LangSmith helps you evaluate Chains and other language model application components using a number of LangChain evaluators. An example of this is shown below, assuming you’ve created a LangSmith dataset called <my_dataset_name>: from langsmith import Client from langchain_community.chat_models import ChatOpe...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-22
def requires_reference(self) -> bool: return True @property def evaluation_name(self) -> str: return "exact_match" def _evaluate_strings(self, prediction, reference=None, input=None, **kwargs) -> dict: return {"score": prediction == reference} evaluation_config = RunEvalConfig( c...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
22fa5befd980-23
Extract items to evaluate from the run object. smith.evaluation.string_run_evaluator.StringExampleMapper Map an example, or row in the dataset, to the inputs of an evaluation. smith.evaluation.string_run_evaluator.StringRunEvaluatorChain Evaluate Run and optional examples. smith.evaluation.string_run_evaluator.StringRu...
https://api.python.langchain.com/en/latest/langchain_api_reference.html
062d95a2b003-0
langchain_google_vertexai 1.0.5¶ langchain_google_vertexai.callbacks¶ Classes¶ callbacks.VertexAICallbackHandler() Callback Handler that tracks VertexAI info. langchain_google_vertexai.chains¶ Functions¶ chains.create_structured_runnable(function, ...) Create a runnable sequence that uses OpenAI functions. chains.get_o...
https://api.python.langchain.com/en/latest/google_vertexai_api_reference.html
062d95a2b003-1
gemma.GemmaLocalKaggle Local gemma chat model loaded from Kaggle. gemma.GemmaVertexAIModelGarden Create a new model by parsing and validating input data from keyword arguments. Functions¶ gemma.gemma_messages_to_prompt(history) Converts a list of messages to a chat prompt for Gemma. langchain_google_vertexai.llms¶ Clas...
https://api.python.langchain.com/en/latest/google_vertexai_api_reference.html
062d95a2b003-2
Given an image and a prompt, edits the image. vision_models.VertexAIImageGeneratorChat Generates an image from a prompt. vision_models.VertexAIVisualQnAChat Chat implementation of a visual QnA model
https://api.python.langchain.com/en/latest/google_vertexai_api_reference.html
4a17f9abbf33-0
langchain_qdrant 0.1.0¶ langchain_qdrant.vectorstores¶ Classes¶ vectorstores.Qdrant(client, collection_name) Qdrant vector store. vectorstores.QdrantException Qdrant related exceptions. Functions¶ vectorstores.sync_call_fallback(method) Decorator to call the synchronous method of the class if the async method is not im...
https://api.python.langchain.com/en/latest/qdrant_api_reference.html
593fbb1d5d80-0
langchain_mistralai 0.1.8¶ langchain_mistralai.chat_models¶ Classes¶ chat_models.ChatMistralAI A chat model that uses the MistralAI API. Functions¶ chat_models.acompletion_with_retry(llm[, ...]) Use tenacity to retry the async completion call. langchain_mistralai.embeddings¶ Classes¶ embeddings.DummyTokenizer() Dummy t...
https://api.python.langchain.com/en/latest/mistralai_api_reference.html
f7355acc28da-0
langchain_upstage 0.1.6¶ langchain_upstage.chat_models¶ Classes¶ chat_models.ChatUpstage ChatUpstage chat model. langchain_upstage.embeddings¶ Classes¶ embeddings.UpstageEmbeddings UpstageEmbeddings embedding model. langchain_upstage.layout_analysis¶ Classes¶ layout_analysis.UpstageLayoutAnalysisLoader(...) Upstage Lay...
https://api.python.langchain.com/en/latest/upstage_api_reference.html
7eba0115d1b6-0
langchain_nvidia_ai_endpoints 0.1.1¶ langchain_nvidia_ai_endpoints.callbacks¶ Callback Handler that prints to std out. Classes¶ callbacks.UsageCallbackHandler() Callback Handler that tracks OpenAI info. Functions¶ callbacks.get_token_cost_for_model(...[, ...]) Get the cost in USD for a given model and number of tokens....
https://api.python.langchain.com/en/latest/nvidia_ai_endpoints_api_reference.html
416aa63f7e0a-0
langchain_weaviate 0.0.2¶
https://api.python.langchain.com/en/latest/weaviate_api_reference.html
5ac1b6cc5af2-0
langchain_community 0.2.4¶ langchain_community.adapters¶ Adapters are used to adapt LangChain models to other APIs. LangChain integrates with many model providers. While LangChain has its own message and model APIs, LangChain has also made it as easy as possible to explore other models by exposing an adapter to adapt L...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-1
Toolkit for interacting with Amadeus which offers APIs for travel. agent_toolkits.azure_ai_services.AzureAiServicesToolkit Toolkit for Azure AI Services. agent_toolkits.azure_cognitive_services.AzureCognitiveServicesToolkit Toolkit for Azure Cognitive Services. agent_toolkits.cassandra_database.toolkit.CassandraDatabas...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-2
Schema for operations that do not require any input. agent_toolkits.github.toolkit.ReadFile Schema for operations that require a file path as input. agent_toolkits.github.toolkit.SearchCode Schema for operations that require a search query as input. agent_toolkits.github.toolkit.SearchIssuesAndPRs Schema for operations...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-3
Requests PUT tool with LLM-instructed extraction of truncated responses. agent_toolkits.openapi.spec.ReducedOpenAPISpec(...) A reduced OpenAPI spec. agent_toolkits.openapi.toolkit.OpenAPIToolkit Toolkit for interacting with an OpenAPI API. agent_toolkits.openapi.toolkit.RequestsToolkit Toolkit for making REST requests....
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-4
agent_toolkits.powerbi.base.create_pbi_agent(llm) Construct a Power BI agent from an LLM and tools. agent_toolkits.powerbi.chat_base.create_pbi_chat_agent(llm) Construct a Power BI agent from a Chat LLM and tools. agent_toolkits.spark_sql.base.create_spark_sql_agent(...) Construct a Spark SQL agent from an LLM and tool...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-5
cache.CassandraSemanticCache([session, ...]) Cache that uses Cassandra as a vector-store backend for semantic (i.e. cache.FullLLMCache(**kwargs) SQLite table for full LLM Cache (all generations). cache.FullMd5LLMCache(**kwargs) SQLite table for full LLM Cache (all generations). cache.GPTCache([init_func]) Cache that us...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-6
Callback Handler that logs into Argilla. callbacks.arize_callback.ArizeCallbackHandler([...]) Callback Handler that logs to Arize. callbacks.arthur_callback.ArthurCallbackHandler(...) Callback Handler that logs to Arthur platform. callbacks.bedrock_anthropic_callback.BedrockAnthropicTokenUsageCallbackHandler() Callback...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-7
callbacks.mlflow_callback.MlflowLogger(**kwargs) Callback Handler that logs metrics and artifacts to mlflow server. callbacks.openai_info.OpenAICallbackHandler() Callback Handler that tracks OpenAI info. callbacks.promptlayer_callback.PromptLayerCallbackHandler([...]) Callback handler for promptlayer. callbacks.sagemak...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-8
callbacks.upstash_ratelimit_callback.UpstashRatelimitError(...) Upstash Ratelimit Error callbacks.upstash_ratelimit_callback.UpstashRatelimitHandler(...) Callback to handle rate limiting based on the number of requests or the number of tokens in the input. callbacks.uptrain_callback.UpTrainCallbackHandler(*) Callback H...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-9
Import tiktoken for counting tokens for OpenAI models. callbacks.labelstudio_callback.get_default_label_configs(mode) Get default Label Studio configs for the given mode. callbacks.llmonitor_callback.identify(user_id) Builds an LLMonitor UserContextManager callbacks.manager.get_bedrock_anthropic_callback() Get the Bedr...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-10
callbacks.utils.hash_string(s) 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 text...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-11
chains.graph_qa.falkordb.FalkorDBQAChain Chain for question-answering against a graph by generating Cypher statements. chains.graph_qa.gremlin.GremlinQAChain Chain for question-answering against a graph by generating gremlin statements. chains.graph_qa.hugegraph.HugeGraphQAChain Chain for question-answering against a g...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-12
Get the response parser. chains.openapi.response_chain.APIResponderOutputParser Parse the response and error tags. chains.pebblo_retrieval.base.PebbloRetrievalQA Retrieval Chain with Identity & Semantic Enforcement for question-answering against a vector database. chains.pebblo_retrieval.models.App Create a new model b...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-13
Create a new model by parsing and validating input data from keyword arguments. Functions¶ chains.ernie_functions.base.convert_python_function_to_ernie_function(...) Convert a Python function to an Ernie function-calling API compatible dict. chains.ernie_functions.base.convert_to_ernie_function(...) Convert a raw funct...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-14
chains.graph_qa.neptune_cypher.trim_query(query) Trim the query to only include Cypher keywords. chains.graph_qa.neptune_cypher.use_simple_prompt(llm) Decides whether to use the simple prompt chains.graph_qa.neptune_sparql.extract_sparql(query) Extract SPARQL code from a text. chains.pebblo_retrieval.enforcement_filter...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-15
Load chat sessions from a list of LangSmith "llm" runs. chat_loaders.slack.SlackChatLoader(path) Load Slack conversations from a dump zip file. chat_loaders.telegram.TelegramChatLoader(path) Load telegram conversations to LangChain chat messages. chat_loaders.whatsapp.WhatsAppChatLoader(path) Load WhatsApp conversation...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-16
chat_message_histories.file.FileChatMessageHistory(...) Chat message history that stores history in a local file. chat_message_histories.firestore.FirestoreChatMessageHistory(...) Chat message history backed by Google Firestore. chat_message_histories.momento.MomentoChatMessageHistory(...) Chat message history cache th...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-17
Chat message history stored in a Xata database. chat_message_histories.zep.SearchScope(value) Scope for the document search. chat_message_histories.zep.SearchType(value) Enumerator of the types of search to perform. chat_message_histories.zep.ZepChatMessageHistory(...) Chat message history that uses Zep as a backend. c...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-18
chat_models.azureml_endpoint.LlamaChatContentFormatter() Deprecated: Kept for backwards compatibility chat_models.azureml_endpoint.LlamaContentFormatter() Content formatter for LLaMA. chat_models.azureml_endpoint.MistralChatContentFormatter() Content formatter for Mistral. chat_models.baichuan.ChatBaichuan Baichuan cha...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-19
[Deprecated] Fireworks Chat models. chat_models.friendli.ChatFriendli Friendli LLM for chat. chat_models.gigachat.GigaChat GigaChat large language models API. chat_models.google_palm.ChatGooglePalm Google PaLM Chat models API. chat_models.google_palm.ChatGooglePalmError Error with the Google PaLM API. chat_models.gpt_r...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-20
Chat model that uses the LiteLLM API. chat_models.litellm.ChatLiteLLMException Error with the LiteLLM I/O library chat_models.litellm_router.ChatLiteLLMRouter LiteLLM Router as LangChain Model. chat_models.llama_edge.LlamaEdgeChatService Chat with LLMs via llama-api-server chat_models.maritalk.ChatMaritalk MariTalk Cha...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-21
PromptLayer and OpenAI Chat large language models API. chat_models.solar.SolarChat [Deprecated] Wrapper around Solar large language models. chat_models.sparkllm.ChatSparkLLM iFlyTek Spark large language model. chat_models.tongyi.ChatTongyi Alibaba Tongyi Qwen chat models API. chat_models.vertexai.ChatVertexAI [Deprecat...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-22
chat_models.fireworks.conditional_decorator(...) Define conditional decorator. chat_models.fireworks.convert_dict_to_message(_dict) Convert a dict response to a message. chat_models.friendli.get_chat_request(messages) Get a request of the Friendli chat API. chat_models.friendli.get_role(message) Get role of the message...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-23
Convert a dict to a message. chat_models.tongyi.convert_message_chunk_to_message(...) Convert a message chunk to a message. chat_models.tongyi.convert_message_to_dict(message) Convert a message to a dict. chat_models.volcengine_maas.convert_dict_to_message(_dict) Convert a dict to a message. chat_models.yandex.acomplet...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-24
Docstore via arbitrary lookup function. docstore.base.AddableMixin() Mixin class that supports adding texts. docstore.base.Docstore() Interface to access to place that stores documents. docstore.in_memory.InMemoryDocstore([_dict]) Simple in memory docstore in the form of a dict. docstore.wikipedia.Wikipedia() Wikipedia...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-25
document_loaders.airbyte.AirbyteCDKLoader(...) Load with an Airbyte source connector implemented using the CDK. document_loaders.airbyte.AirbyteGongLoader(...) Load from Gong using an Airbyte source connector. document_loaders.airbyte.AirbyteHubspotLoader(...) Load from Hubspot using an Airbyte source connector. docume...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-26
document_loaders.astradb.AstraDBLoader(...) [Deprecated] document_loaders.async_html.AsyncHtmlLoader(...) Load HTML asynchronously. document_loaders.athena.AthenaLoader(query, ...) Load documents from AWS Athena. document_loaders.azlyrics.AZLyricsLoader([...]) Load AZLyrics webpages. document_loaders.azure_ai_data.Azur...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-27
document_loaders.blockchain.BlockchainDocumentLoader(...) Load elements from a blockchain smart contract. document_loaders.blockchain.BlockchainType(value) Enumerator of the supported blockchains. document_loaders.brave_search.BraveSearchLoader(...) Load with Brave Search engine. document_loaders.browserbase.Browserbas...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-28
document_loaders.cube_semantic.CubeSemanticLoader(...) Load Cube semantic layer metadata. document_loaders.datadog_logs.DatadogLogsLoader(...) Load Datadog logs. document_loaders.dataframe.BaseDataFrameLoader(...) Initialize with dataframe object. document_loaders.dataframe.DataFrameLoader(...) Load Pandas DataFrame. d...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-29
document_loaders.figma.FigmaFileLoader(...) Load Figma file. document_loaders.firecrawl.FireCrawlLoader(url, *) Load web pages as Documents using FireCrawl. document_loaders.gcs_directory.GCSDirectoryLoader(...) [Deprecated] Load from GCS directory. document_loaders.gcs_file.GCSFileLoader(...) [Deprecated] Load from GC...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-30
Load from Hugging Face Hub datasets. document_loaders.hugging_face_model.HuggingFaceModelLoader(*) Load model information from Hugging Face Hub, including README content. document_loaders.ifixit.IFixitLoader(web_path) Load iFixit repair guides, device wikis and answers. document_loaders.image.UnstructuredImageLoader(.....
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-31
Load the Mastodon 'toots'. document_loaders.max_compute.MaxComputeLoader(...) Load from Alibaba Cloud MaxCompute table. document_loaders.mediawikidump.MWDumpLoader(...) Load MediaWiki dump from an XML file. document_loaders.merge.MergedDataLoader(loaders) Merge documents from a list of loaders document_loaders.mhtml.MH...
https://api.python.langchain.com/en/latest/community_api_reference.html
5ac1b6cc5af2-32
Load a file from Microsoft OneDrive. document_loaders.onenote.OneNoteLoader Load pages from OneNote notebooks. document_loaders.open_city_data.OpenCityDataLoader(...) Load from Open City. document_loaders.oracleadb_loader.OracleAutonomousDatabaseLoader(...) Load from oracle adb document_loaders.oracleai.OracleDocLoader...
https://api.python.langchain.com/en/latest/community_api_reference.html
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
11