id stringlengths 14 16 | text stringlengths 45 2.05k | source stringlengths 53 111 |
|---|---|---|
a2170e7e03b4-0 | .md
.pdf
Deployments
Contents
Streamlit
Gradio (on Hugging Face)
Beam
Vercel
SteamShip
Deployments#
So you’ve made a really cool chain - now what? How do you deploy it and make it easily sharable with the world?
This section covers several options for that.
Note that these are meant as quick deployment options for pr... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\deployments.html" |
a2170e7e03b4-1 | This includes: production ready endpoints, horizontal scaling across dependencies, persistant storage of app state, multi-tenancy support, etc.
previous
LangChain Gallery
next
Tracing
Contents
Streamlit
Gradio (on Hugging Face)
Beam
Vercel
SteamShip
By Harrison Chase
© Copyright 2023, Harrison Chase.
... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\deployments.html" |
2ecca0879b16-0 | .rst
.pdf
LangChain Ecosystem
LangChain Ecosystem#
Guides for how other companies/products can be used with LangChain
AI21 Labs
AtlasDB
Banana
CerebriumAI
Chroma
Cohere
DeepInfra
Deep Lake
ForefrontAI
Google Search Wrapper
Google Serper Wrapper
GooseAI
Graphsignal
Hazy Research
Helicone
Hugging Face
Milvus
Modal
NLPClo... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem.html" |
82bf12d17741-0 | .rst
.pdf
LangChain Gallery
Contents
Open Source
Misc. Colab Notebooks
Proprietary
LangChain Gallery#
Lots of people have built some pretty awesome stuff with LangChain.
This is a collection of our favorites.
If you see any other demos that you think we should highlight, be sure to let us know!
Open Source#
HowDoI.ai... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\gallery.html" |
82bf12d17741-1 | Record sounds of anything (birds, wind, fire, train station) and chat with it.
ChatGPT LangChain
This simple application demonstrates a conversational agent implemented with OpenAI GPT-3.5 and LangChain. When necessary, it leverages tools for complex math, searching the internet, and accessing news and weather.
GPT Mat... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\gallery.html" |
82bf12d17741-2 | Daimon
A chat-based AI personal assistant with long-term memory about you.
AI Assisted SQL Query Generator
An app to write SQL using natural language, and execute against real DB.
Clerkie
Stack Tracing QA Bot to help debug complex stack tracing (especially the ones that go multi-function/file deep).
Sales Email Writer
... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\gallery.html" |
e258fc25e9a3-0 | Index
_
| A
| B
| C
| D
| E
| F
| G
| H
| I
| J
| K
| L
| M
| N
| O
| P
| Q
| R
| S
| T
| U
| V
| W
_
__call__() (langchain.llms.AI21 method)
(langchain.llms.AlephAlpha method)
(langchain.llms.Anthropic method)
(langchain.llms.AzureOpenAI method)
(langchain.llms.Banana method)
(langchain.llms.Cer... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-1 | add() (langchain.docstore.InMemoryDocstore method)
add_documents() (langchain.vectorstores.VectorStore method)
add_embeddings() (langchain.vectorstores.FAISS method)
add_example() (langchain.prompts.example_selector.LengthBasedExampleSelector method)
(langchain.prompts.example_selector.SemanticSimilarityExampleSelector... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-2 | (langchain.llms.PromptLayerOpenAI method)
(langchain.llms.PromptLayerOpenAIChat method)
(langchain.llms.SagemakerEndpoint method)
(langchain.llms.SelfHostedHuggingFaceLLM method)
(langchain.llms.SelfHostedPipeline method)
(langchain.llms.StochasticAI method)
(langchain.llms.Writer method)
agenerate_prompt() (langchain.... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-3 | (langchain.agents.SelfAskWithSearchChain attribute)
ai_prefix (langchain.agents.ConversationalAgent attribute)
aiosession (langchain.serpapi.SerpAPIWrapper attribute)
aleph_alpha_api_key (langchain.llms.AlephAlpha attribute)
allowed_tools (langchain.agents.Agent attribute)
(langchain.agents.ZeroShotAgent attribute)
ans... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-4 | best_of (langchain.llms.AlephAlpha attribute)
(langchain.llms.AzureOpenAI attribute)
C
callback_manager (langchain.agents.MRKLChain attribute)
(langchain.agents.ReActChain attribute)
(langchain.agents.SelfAskWithSearchChain attribute)
chain (langchain.chains.ConstitutionalChain attribute)
chains (langchain.chains.Seque... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-5 | (langchain.llms.HuggingFaceHub class method)
(langchain.llms.HuggingFacePipeline class method)
(langchain.llms.Modal class method)
(langchain.llms.NLPCloud class method)
(langchain.llms.OpenAI class method)
(langchain.llms.OpenAIChat class method)
(langchain.llms.Petals class method)
(langchain.llms.PromptLayerOpenAI c... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-6 | (langchain.llms.Modal method)
(langchain.llms.NLPCloud method)
(langchain.llms.OpenAI method)
(langchain.llms.OpenAIChat method)
(langchain.llms.Petals method)
(langchain.llms.PromptLayerOpenAI method)
(langchain.llms.PromptLayerOpenAIChat method)
(langchain.llms.SagemakerEndpoint method)
(langchain.llms.SelfHostedHugg... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-7 | create_sql_agent() (in module langchain.agents)
create_vectorstore_agent() (in module langchain.agents)
create_vectorstore_router_agent() (in module langchain.agents)
credentials_profile_name (langchain.embeddings.SagemakerEndpointEmbeddings attribute)
(langchain.llms.SagemakerEndpoint attribute)
critique_chain (langch... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-8 | (langchain.llms.PromptLayerOpenAI method)
(langchain.llms.PromptLayerOpenAIChat method)
(langchain.llms.SagemakerEndpoint method)
(langchain.llms.SelfHostedHuggingFaceLLM method)
(langchain.llms.SelfHostedPipeline method)
(langchain.llms.StochasticAI method)
(langchain.llms.Writer method)
(langchain.prompts.BasePromptT... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-9 | embed_instruction (langchain.embeddings.HuggingFaceInstructEmbeddings attribute)
(langchain.embeddings.SelfHostedHuggingFaceInstructEmbeddings attribute)
embed_query() (langchain.chains.HypotheticalDocumentEmbedder method)
(langchain.embeddings.CohereEmbeddings method)
(langchain.embeddings.FakeEmbeddings method)
(lang... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-10 | (langchain.prompts.FewShotPromptWithTemplates attribute)
example_selector (langchain.prompts.FewShotPromptTemplate attribute)
(langchain.prompts.FewShotPromptWithTemplates attribute)
example_separator (langchain.prompts.FewShotPromptTemplate attribute)
(langchain.prompts.FewShotPromptWithTemplates attribute)
examples (... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-11 | from_documents() (langchain.vectorstores.AtlasDB class method)
(langchain.vectorstores.Chroma class method)
(langchain.vectorstores.Qdrant class method)
(langchain.vectorstores.VectorStore class method)
from_embeddings() (langchain.vectorstores.FAISS class method)
from_examples() (langchain.prompts.example_selector.Max... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-12 | (langchain.llms.SelfHostedPipeline class method)
from_string() (langchain.chains.LLMChain class method)
from_template() (langchain.prompts.PromptTemplate class method)
from_texts() (langchain.vectorstores.AtlasDB class method)
(langchain.vectorstores.Chroma class method)
(langchain.vectorstores.DeepLake class method)
(... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-13 | (langchain.llms.OpenAIChat method)
(langchain.llms.Petals method)
(langchain.llms.PromptLayerOpenAI method)
(langchain.llms.PromptLayerOpenAIChat method)
(langchain.llms.SagemakerEndpoint method)
(langchain.llms.SelfHostedHuggingFaceLLM method)
(langchain.llms.SelfHostedPipeline method)
(langchain.llms.StochasticAI met... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-14 | get_answer_expr (langchain.chains.PALChain attribute)
get_full_inputs() (langchain.agents.Agent method)
get_num_tokens() (langchain.llms.AI21 method)
(langchain.llms.AlephAlpha method)
(langchain.llms.Anthropic method)
(langchain.llms.AzureOpenAI method)
(langchain.llms.Banana method)
(langchain.llms.CerebriumAI method... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-15 | (langchain.llms.DeepInfra method)
(langchain.llms.ForefrontAI method)
(langchain.llms.GooseAI method)
(langchain.llms.HuggingFaceEndpoint method)
(langchain.llms.HuggingFaceHub method)
(langchain.llms.HuggingFacePipeline method)
(langchain.llms.Modal method)
(langchain.llms.NLPCloud method)
(langchain.llms.OpenAI metho... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-16 | I
i (langchain.agents.ReActTextWorldAgent attribute)
inference_fn (langchain.embeddings.SelfHostedEmbeddings attribute)
(langchain.embeddings.SelfHostedHuggingFaceEmbeddings attribute)
(langchain.llms.SelfHostedHuggingFaceLLM attribute)
(langchain.llms.SelfHostedPipeline attribute)
inference_kwargs (langchain.embedding... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-17 | (langchain.llms.GooseAI method)
(langchain.llms.HuggingFaceEndpoint method)
(langchain.llms.HuggingFaceHub method)
(langchain.llms.HuggingFacePipeline method)
(langchain.llms.Modal method)
(langchain.llms.NLPCloud method)
(langchain.llms.OpenAI method)
(langchain.llms.OpenAIChat method)
(langchain.llms.Petals method)
(... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-18 | module
LatexTextSplitter (class in langchain.text_splitter)
length (langchain.llms.ForefrontAI attribute)
(langchain.llms.Writer attribute)
length_no_input (langchain.llms.NLPCloud attribute)
length_penalty (langchain.llms.NLPCloud attribute)
length_pentaly (langchain.llms.Writer attribute)
list_assertions_prompt (lang... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-19 | locals (langchain.python.PythonREPL attribute)
log_probs (langchain.llms.AlephAlpha attribute)
logit_bias (langchain.llms.AlephAlpha attribute)
(langchain.llms.AzureOpenAI attribute)
(langchain.llms.GooseAI attribute)
logitBias (langchain.llms.AI21 attribute)
logprobs (langchain.llms.Writer attribute)
M
MarkdownTextSpl... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-20 | max_tokens_for_prompt() (langchain.llms.AzureOpenAI method)
(langchain.llms.OpenAI method)
(langchain.llms.PromptLayerOpenAI method)
max_tokens_limit (langchain.chains.RetrievalQAWithSourcesChain attribute)
(langchain.chains.VectorDBQAWithSourcesChain attribute)
max_tokens_to_sample (langchain.llms.Anthropic attribute)... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-21 | (langchain.llms.Writer attribute)
model_key (langchain.llms.Banana attribute)
model_kwargs (langchain.embeddings.HuggingFaceHubEmbeddings attribute)
(langchain.embeddings.SagemakerEndpointEmbeddings attribute)
(langchain.llms.AzureOpenAI attribute)
(langchain.llms.Banana attribute)
(langchain.llms.CerebriumAI attribute... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-22 | (langchain.embeddings.SelfHostedHuggingFaceInstructEmbeddings attribute)
(langchain.llms.SelfHostedHuggingFaceLLM attribute)
(langchain.llms.SelfHostedPipeline attribute)
model_url (langchain.embeddings.TensorflowHubEmbeddings attribute)
modelname_to_contextsize() (langchain.llms.AzureOpenAI method)
(langchain.llms.Ope... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-23 | output_parser (langchain.prompts.BasePromptTemplate attribute)
output_variables (langchain.chains.TransformChain attribute)
P
p (langchain.llms.Cohere attribute)
params (langchain.serpapi.SerpAPIWrapper attribute)
(langchain.utilities.searx_search.SearxSearchWrapper attribute)
partial() (langchain.prompts.BasePromptTem... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-24 | Prompt (in module langchain.prompts)
prompt (langchain.chains.ConversationChain attribute)
(langchain.chains.LLMBashChain attribute)
(langchain.chains.LLMChain attribute)
(langchain.chains.LLMMathChain attribute)
(langchain.chains.PALChain attribute)
(langchain.chains.SQLDatabaseChain attribute)
python_globals (langcha... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-25 | (langchain.llms.NLPCloud attribute)
(langchain.llms.Writer attribute)
repo_id (langchain.embeddings.HuggingFaceHubEmbeddings attribute)
(langchain.llms.HuggingFaceHub attribute)
request_timeout (langchain.llms.AzureOpenAI attribute)
requests_wrapper (langchain.chains.APIChain attribute)
(langchain.chains.LLMRequestsCha... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-26 | S
save() (langchain.agents.Agent method)
(langchain.agents.AgentExecutor method)
(langchain.llms.AI21 method)
(langchain.llms.AlephAlpha method)
(langchain.llms.Anthropic method)
(langchain.llms.AzureOpenAI method)
(langchain.llms.Banana method)
(langchain.llms.CerebriumAI method)
(langchain.llms.Cohere method)
(langch... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-27 | (langchain.chains.VectorDBQAWithSourcesChain attribute)
search_type (langchain.chains.VectorDBQA attribute)
searx_host (langchain.utilities.searx_search.SearxSearchWrapper attribute)
SearxResults (class in langchain.utilities.searx_search)
select_examples() (langchain.prompts.example_selector.LengthBasedExampleSelector... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-28 | split_documents() (langchain.text_splitter.TextSplitter method)
split_text() (langchain.text_splitter.CharacterTextSplitter method)
(langchain.text_splitter.NLTKTextSplitter method)
(langchain.text_splitter.RecursiveCharacterTextSplitter method)
(langchain.text_splitter.SpacyTextSplitter method)
(langchain.text_splitte... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-29 | (langchain.llms.GooseAI attribute)
(langchain.llms.NLPCloud attribute)
(langchain.llms.Petals attribute)
(langchain.llms.Writer attribute)
template (langchain.prompts.PromptTemplate attribute)
template_format (langchain.prompts.FewShotPromptTemplate attribute)
(langchain.prompts.FewShotPromptWithTemplates attribute)
(l... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-30 | (langchain.llms.AzureOpenAI attribute)
(langchain.llms.ForefrontAI attribute)
(langchain.llms.GooseAI attribute)
(langchain.llms.NLPCloud attribute)
(langchain.llms.Petals attribute)
(langchain.llms.Writer attribute)
topP (langchain.llms.AI21 attribute)
transform (langchain.chains.TransformChain attribute)
truncate (la... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
e258fc25e9a3-31 | (langchain.llms.SelfHostedHuggingFaceLLM class method)
(langchain.llms.SelfHostedPipeline class method)
(langchain.llms.StochasticAI class method)
(langchain.llms.Writer class method)
use_multiplicative_presence_penalty (langchain.llms.AlephAlpha attribute)
V
validate_template (langchain.prompts.FewShotPromptTemplate a... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\genindex.html" |
94e0a4a77593-0 | .md
.pdf
Glossary
Contents
Chain of Thought Prompting
Action Plan Generation
ReAct Prompting
Self-ask
Prompt Chaining
Memetic Proxy
Self Consistency
Inception
MemPrompt
Glossary#
This is a collection of terminology commonly used when developing LLM applications.
It contains reference to external papers or sources whe... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\glossary.html" |
94e0a4a77593-1 | Language Model Cascades
ICE Primer Book
Socratic Models
Memetic Proxy#
Encouraging the LLM to respond in a certain way framing the discussion in a context that the model knows of and that will result in that type of response. For example, as a conversation between a student and a teacher.
Resources:
Paper
Self Consiste... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\glossary.html" |
31af2197d9d5-0 | .rst
.pdf
Welcome to LangChain
Contents
Getting Started
Modules
Use Cases
Reference Docs
LangChain Ecosystem
Additional Resources
Welcome to LangChain#
Large language models (LLMs) are emerging as a transformative technology, enabling
developers to build applications that they previously could not.
But using these LL... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\index.html" |
31af2197d9d5-1 | Chains: Chains go beyond just a single LLM call, and are sequences of calls (whether to an LLM or a different utility). LangChain provides a standard interface for chains, lots of integrations with other tools, and end-to-end chains for common applications.
Indexes: Language models are often more powerful when combined... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\index.html" |
31af2197d9d5-2 | Question Answering: Answering questions over specific documents, only utilizing the information in those documents to construct an answer. A type of Data Augmented Generation.
Summarization: Summarizing longer documents into shorter, more condensed chunks of information. A type of Data Augmented Generation.
Querying Ta... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\index.html" |
31af2197d9d5-3 | Deployments: A collection of instructions, code snippets, and template repositories for deploying LangChain apps.
Discord: Join us on our Discord to discuss all things LangChain!
Tracing: A guide on using tracing in LangChain to visualize the execution of chains and agents.
Production Support: As you move your LangChai... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\index.html" |
0642fff36d8b-0 | .rst
.pdf
API References
API References#
All of LangChain’s reference documentation, in one place.
Full documentation on all methods, classes, and APIs in LangChain.
Prompts
Utilities
Chains
Agents
previous
Integrations
next
LangChain Ecosystem
By Harrison Chase
© Copyright 2023, Harrison Chase.
Las... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\reference.html" |
1527fe60bf39-0 | Search
Error
Please activate JavaScript to enable the search functionality.
Ctrl+K
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Mar 24, 2023. | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\search.html" |
a97b0ec6cbba-0 | .md
.pdf
Tracing
Contents
Tracing Walkthrough
Changing Sessions
Tracing#
By enabling tracing in your LangChain runs, you’ll be able to more effectively visualize, step through, and debug your chains and agents.
First, you should install tracing and set up your environment properly.
You can use either a locally hosted... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\tracing.html" |
a97b0ec6cbba-1 | Changing Sessions#
To initially record traces to a session other than "default", you can set the LANGCHAIN_SESSION environment variable to the name of the session you want to record to:
import os
os.environ["LANGCHAIN_HANDLER"] = "langchain"
os.environ["LANGCHAIN_SESSION"] = "my_session" # Make sure this session actual... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\tracing.html" |
ef7fcd2557f3-0 | .md
.pdf
AI21 Labs
Contents
Installation and Setup
Wrappers
LLM
AI21 Labs#
This page covers how to use the AI21 ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific AI21 wrappers.
Installation and Setup#
Get an AI21 api key and set it as an environment varia... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\ai21.html" |
f447ed1d8dc9-0 | .md
.pdf
AtlasDB
Contents
Installation and Setup
Wrappers
VectorStore
AtlasDB#
This page covers how to use Nomic’s Atlas ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Atlas wrappers.
Installation and Setup#
Install the Python package with pip install ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\atlas.html" |
4ccdc4327b4a-0 | .md
.pdf
Banana
Contents
Installation and Setup
Define your Banana Template
Build the Banana app
Wrappers
LLM
Banana#
This page covers how to use the Banana ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Banana wrappers.
Installation and Setup#
Install... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\bananadev.html" |
4ccdc4327b4a-1 | bad_words_ids=[[tokenizer.encode(' ', add_prefix_space=True)[0]]]
)
result = tokenizer.decode(output[0], skip_special_tokens=True)
# Return the results as a dictionary
result = {'output': result}
return result
You can find a full example of a Banana app here.
Wrappers#
LLM#
There exists an Banan... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\bananadev.html" |
81ec5fc38196-0 | .md
.pdf
CerebriumAI
Contents
Installation and Setup
Wrappers
LLM
CerebriumAI#
This page covers how to use the CerebriumAI ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific CerebriumAI wrappers.
Installation and Setup#
Install with pip install cerebrium
G... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\cerebriumai.html" |
6f52f4fa9548-0 | .md
.pdf
Chroma
Contents
Installation and Setup
Wrappers
VectorStore
Chroma#
This page covers how to use the Chroma ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Chroma wrappers.
Installation and Setup#
Install the Python package with pip install chro... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\chroma.html" |
63306eb49f82-0 | .md
.pdf
Cohere
Contents
Installation and Setup
Wrappers
LLM
Embeddings
Cohere#
This page covers how to use the Cohere ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Cohere wrappers.
Installation and Setup#
Install the Python SDK with pip install coher... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\cohere.html" |
5d12b4a99791-0 | .md
.pdf
DeepInfra
Contents
Installation and Setup
Wrappers
LLM
DeepInfra#
This page covers how to use the DeepInfra ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific DeepInfra wrappers.
Installation and Setup#
Get your DeepInfra api key from this link he... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\deepinfra.html" |
df050bfcd745-0 | .md
.pdf
Deep Lake
Contents
Installation and Setup
Wrappers
VectorStore
Deep Lake#
This page covers how to use the Deep Lake ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Deep Lake wrappers. For more information.
Here is whitepaper and academic paper ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\deeplake.html" |
6602fcf1e94d-0 | .md
.pdf
ForefrontAI
Contents
Installation and Setup
Wrappers
LLM
ForefrontAI#
This page covers how to use the ForefrontAI ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific ForefrontAI wrappers.
Installation and Setup#
Get an ForefrontAI api key and set i... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\forefrontai.html" |
194841d3e888-0 | .md
.pdf
Google Search Wrapper
Contents
Installation and Setup
Wrappers
Utility
Tool
Google Search Wrapper#
This page covers how to use the Google Search API within LangChain.
It is broken into two parts: installation and setup, and then references to the specific Google Search wrapper.
Installation and Setup#
Instal... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\google_search.html" |
aafb854c603d-0 | .md
.pdf
Google Serper Wrapper
Contents
Setup
Wrappers
Utility
Output
Tool
Google Serper Wrapper#
This page covers how to use the Serper Google Search API within LangChain. Serper is a low-cost Google Search API that can be used to add answer box, knowledge graph, and organic results data from Google Search.
It is br... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\google_serper.html" |
aafb854c603d-1 | Intermediate answer: Current champions Carlos Alcaraz, 2022 men's singles champion.
Follow up: Where is Carlos Alcaraz from?
Intermediate answer: El Palmar, Spain
So the final answer is: El Palmar, Spain
> Finished chain.
'El Palmar, Spain'
For a more detailed walkthrough of this wrapper, see this notebook.
Tool#
You c... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\google_serper.html" |
e696fc910a1a-0 | .md
.pdf
GooseAI
Contents
Installation and Setup
Wrappers
LLM
GooseAI#
This page covers how to use the GooseAI ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific GooseAI wrappers.
Installation and Setup#
Install the Python SDK with pip install openai
Get y... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\gooseai.html" |
364341f7b9bd-0 | .md
.pdf
Graphsignal
Contents
Installation and Setup
Tracing and Monitoring
Graphsignal#
This page covers how to use the Graphsignal ecosystem to trace and monitor LangChain.
Installation and Setup#
Install the Python library with pip install graphsignal
Create free Graphsignal account here
Get an API key and set it ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\graphsignal.html" |
a9d4ea40609d-0 | .md
.pdf
Hazy Research
Contents
Installation and Setup
Wrappers
LLM
Hazy Research#
This page covers how to use the Hazy Research ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Hazy Research wrappers.
Installation and Setup#
To use the manifest, install... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\hazy_research.html" |
36166fa83cd6-0 | .md
.pdf
Helicone
Contents
What is Helicone?
Quick start
How to enable Helicone caching
How to use Helicone custom properties
Helicone#
This page covers how to use the Helicone ecosystem within LangChain.
What is Helicone?#
Helicone is an open source observability platform that proxies your OpenAI traffic and provide... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\helicone.html" |
36166fa83cd6-1 | Quick start
How to enable Helicone caching
How to use Helicone custom properties
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Mar 24, 2023. | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\helicone.html" |
fdd61ad2f849-0 | .md
.pdf
Hugging Face
Contents
Installation and Setup
Wrappers
LLM
Embeddings
Tokenizer
Datasets
Hugging Face#
This page covers how to use the Hugging Face ecosystem (including the Hugging Face Hub) within LangChain.
It is broken into two parts: installation and setup, and then references to specific Hugging Face wra... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\huggingface.html" |
fdd61ad2f849-1 | from langchain.embeddings import HuggingFaceHubEmbeddings
For a more detailed walkthrough of this, see this notebook
Tokenizer#
There are several places you can use tokenizers available through the transformers package.
By default, it is used to count tokens for all LLMs.
You can also use it to count tokens when splitt... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\huggingface.html" |
9907e0c8ca0a-0 | .md
.pdf
Milvus
Contents
Installation and Setup
Wrappers
VectorStore
Milvus#
This page covers how to use the Milvus ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Milvus wrappers.
Installation and Setup#
Install the Python SDK with pip install pymilvus... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\milvus.html" |
d23252e59c83-0 | .md
.pdf
Modal
Contents
Installation and Setup
Define your Modal Functions and Webhooks
Wrappers
LLM
Modal#
This page covers how to use the Modal ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Modal wrappers.
Installation and Setup#
Install with pip in... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\modal.html" |
d23252e59c83-1 | @stub.webhook(method="POST")
def get_text(item: Item):
return {"prompt": run_gpt2.call(item.prompt)}
Wrappers#
LLM#
There exists an Modal LLM wrapper, which you can access with
from langchain.llms import Modal
previous
Milvus
next
NLPCloud
Contents
Installation and Setup
Define your Modal Functions and Webhooks... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\modal.html" |
020ca501b4dc-0 | .md
.pdf
NLPCloud
Contents
Installation and Setup
Wrappers
LLM
NLPCloud#
This page covers how to use the NLPCloud ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific NLPCloud wrappers.
Installation and Setup#
Install the Python SDK with pip install nlpcloud... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\nlpcloud.html" |
33c3b2c7fd2f-0 | .md
.pdf
OpenAI
Contents
Installation and Setup
Wrappers
LLM
Embeddings
Tokenizer
Moderation
OpenAI#
This page covers how to use the OpenAI ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific OpenAI wrappers.
Installation and Setup#
Install the Python SDK w... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\openai.html" |
33c3b2c7fd2f-1 | Contents
Installation and Setup
Wrappers
LLM
Embeddings
Tokenizer
Moderation
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Mar 24, 2023. | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\openai.html" |
2fac88057f4e-0 | .md
.pdf
OpenSearch
Contents
Installation and Setup
Wrappers
VectorStore
OpenSearch#
This page covers how to use the OpenSearch ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific OpenSearch wrappers.
Installation and Setup#
Install the Python package with ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\opensearch.html" |
c831da1753d4-0 | .md
.pdf
Petals
Contents
Installation and Setup
Wrappers
LLM
Petals#
This page covers how to use the Petals ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Petals wrappers.
Installation and Setup#
Install with pip install petals
Get a Hugging Face api k... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\petals.html" |
b8dc9992b677-0 | .md
.pdf
PGVector
Contents
Installation
Setup
Wrappers
VectorStore
Usage
PGVector#
This page covers how to use the Postgres PGVector ecosystem within LangChain
It is broken into two parts: installation and setup, and then references to specific PGVector wrappers.
Installation#
Install the Python package with pip inst... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\pgvector.html" |
54d217e8ed43-0 | .md
.pdf
Pinecone
Contents
Installation and Setup
Wrappers
VectorStore
Pinecone#
This page covers how to use the Pinecone ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Pinecone wrappers.
Installation and Setup#
Install the Python SDK with pip install ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\pinecone.html" |
2035fdbf0783-0 | .md
.pdf
PromptLayer
Contents
Installation and Setup
Wrappers
LLM
PromptLayer#
This page covers how to use PromptLayer within LangChain.
It is broken into two parts: installation and setup, and then references to specific PromptLayer wrappers.
Installation and Setup#
If you want to work with PromptLayer:
Install the ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\promptlayer.html" |
2035fdbf0783-1 | you can add pl_tags when instantializing to tag your requests on PromptLayer
you can add return_pl_id when instantializing to return a PromptLayer request id to use while tracking requests.
PromptLayer also provides native wrappers for PromptLayerChatOpenAI and PromptLayerOpenAIChat
previous
Pinecone
next
Qdrant
Conte... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\promptlayer.html" |
f2e113c40bb9-0 | .md
.pdf
Qdrant
Contents
Installation and Setup
Wrappers
VectorStore
Qdrant#
This page covers how to use the Qdrant ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Qdrant wrappers.
Installation and Setup#
Install the Python SDK with pip install qdrant-c... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\qdrant.html" |
902d90b55192-0 | .md
.pdf
Runhouse
Contents
Installation and Setup
Self-hosted LLMs
Self-hosted Embeddings
Runhouse#
This page covers how to use the Runhouse ecosystem within LangChain.
It is broken into three parts: installation and setup, LLMs, and Embeddings.
Installation and Setup#
Install the Python SDK with pip install runhouse... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\runhouse.html" |
d855327a8818-0 | .md
.pdf
SearxNG Search API
Contents
Installation and Setup
Self Hosted Instance:
Wrappers
Utility
Tool
SearxNG Search API#
This page covers how to use the SearxNG search API within LangChain.
It is broken into two parts: installation and setup, and then references to the specific SearxNG API wrapper.
Installation an... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\searx.html" |
d855327a8818-1 | s.run("what is a large language model?")
Tool#
You can also easily load this wrapper as a Tool (to use with an Agent).
You can do this with:
from langchain.agents import load_tools
tools = load_tools(["searx-search"], searx_host="http://localhost:8888")
For more information on tools, see this page
previous
Runhouse
nex... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\searx.html" |
f3cb956dc759-0 | .md
.pdf
SerpAPI
Contents
Installation and Setup
Wrappers
Utility
Tool
SerpAPI#
This page covers how to use the SerpAPI search APIs within LangChain.
It is broken into two parts: installation and setup, and then references to the specific SerpAPI wrapper.
Installation and Setup#
Install requirements with pip install ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\serpapi.html" |
7ccf62c93238-0 | .md
.pdf
StochasticAI
Contents
Installation and Setup
Wrappers
LLM
StochasticAI#
This page covers how to use the StochasticAI ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific StochasticAI wrappers.
Installation and Setup#
Install with pip install stochas... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\stochasticai.html" |
0245cd5c7e94-0 | .md
.pdf
Unstructured
Contents
Installation and Setup
Wrappers
Data Loaders
Unstructured#
This page covers how to use the unstructured
ecosystem within LangChain. The unstructured package from
Unstructured.IO extracts clean text from raw source documents like
PDFs and Word documents.
This page is broken into two part... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\unstructured.html" |
0245cd5c7e94-1 | when that information is available.
previous
StochasticAI
next
Weights & Biases
Contents
Installation and Setup
Wrappers
Data Loaders
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Mar 24, 2023. | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\unstructured.html" |
b11ac71d1dc0-0 | .ipynb
.pdf
Weights & Biases
Weights & Biases#
This notebook goes over how to track your LangChain experiments into one centralized Weights and Biases dashboard. To learn more about prompt engineering and the callback please refer to this Report which explains both alongside the resultant dashboards you can expect to s... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b11ac71d1dc0-1 | notes (str): The notes to log.
visualize (bool): Whether to visualize the run.
complexity_metrics (bool): Whether to log complexity metrics.
stream_logs (bool): Whether to stream callback actions to W&B
Default values for WandbCallbackHandler(...)
visualize: bool = False,
complexity_metrics: bool = False,
s... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b11ac71d1dc0-2 | Tracking run with wandb version 0.14.0Run data is saved locally in /Users/harrisonchase/workplace/langchain/docs/ecosystem/wandb/run-20230318_150408-e47j1914Syncing run llm to Weights & Biases (docs) View project at https://wandb.ai/harrison-chase/langchain_callback_demo View run at https://wandb.ai/harrison-chase/lang... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b11ac71d1dc0-3 | wandb_callback.flush_tracker(llm, name="simple_sequential")
Waiting for W&B process to finish... (success). View run llm at: https://wandb.ai/harrison-chase/langchain_callback_demo/runs/e47j1914Synced 5 W&B file(s), 2 media file(s), 5 artifact file(s) and 0 other file(s)Find logs at: ./wandb/run-20230318_150408-e47j191... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b11ac71d1dc0-4 | ]
synopsis_chain.apply(test_prompts)
wandb_callback.flush_tracker(synopsis_chain, name="agent")
Waiting for W&B process to finish... (success). View run simple_sequential at: https://wandb.ai/harrison-chase/langchain_callback_demo/runs/jyxma7huSynced 4 W&B file(s), 2 media file(s), 6 artifact file(s) and 0 other file(s... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b11ac71d1dc0-5 | Action: Search
Action Input: "Leo DiCaprio girlfriend"
Observation: DiCaprio had a steady girlfriend in Camila Morrone. He had been with the model turned actress for nearly five years, as they were first said to be dating at the end of 2017. And the now 26-year-old Morrone is no stranger to Hollywood.
Thought: I need t... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wandb_tracking.html" |
b5774d10c653-0 | .md
.pdf
Weaviate
Contents
Installation and Setup
Wrappers
VectorStore
Weaviate#
This page covers how to use the Weaviate ecosystem within LangChain.
What is Weaviate?
Weaviate in a nutshell:
Weaviate is an open-source database of the type vector search engine.
Weaviate allows you to store JSON documents in a class... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\weaviate.html" |
b5774d10c653-1 | To import this vectorstore:
from langchain.vectorstores import Weaviate
For a more detailed walkthrough of the Weaviate wrapper, see this notebook
previous
Weights & Biases
next
Wolfram Alpha Wrapper
Contents
Installation and Setup
Wrappers
VectorStore
By Harrison Chase
© Copyright 2023, Harrison Chase.
... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\weaviate.html" |
1c8f2041c939-0 | .md
.pdf
Wolfram Alpha Wrapper
Contents
Installation and Setup
Wrappers
Utility
Tool
Wolfram Alpha Wrapper#
This page covers how to use the Wolfram Alpha API within LangChain.
It is broken into two parts: installation and setup, and then references to specific Wolfram Alpha wrappers.
Installation and Setup#
Install r... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\wolfram_alpha.html" |
0db648b988a7-0 | .md
.pdf
Writer
Contents
Installation and Setup
Wrappers
LLM
Writer#
This page covers how to use the Writer ecosystem within LangChain.
It is broken into two parts: installation and setup, and then references to specific Writer wrappers.
Installation and Setup#
Get an Writer api key and set it as an environment varia... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\ecosystem\\writer.html" |
8b7d7ea2619a-0 | .md
.pdf
Quickstart Guide
Contents
Installation
Environment Setup
Building a Language Model Application
Quickstart Guide#
This tutorial gives you a quick walkthrough about building an end-to-end language model application with LangChain.
Installation#
To get started, install LangChain with the following command:
pip ... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\getting_started\\getting_started.html" |
8b7d7ea2619a-1 | We can now call it on some input!
text = "What would be a good company name for a company that makes colorful socks?"
print(llm(text))
Feetful of Fun
For more details on how to use LLMs within LangChain, see the LLM getting started guide.
Prompt Templates: Manage prompts for LLMs
Calling an LLM is a great first step, b... | ERROR: type should be string, got "https://langchain.readthedocs.io\\en\\latest\\getting_started\\getting_started.html" |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 5