Unnamed: 0
stringlengths
1
178
link
stringlengths
31
163
text
stringlengths
18
32.8k
295
https://python.langchain.com/docs/integrations/providers/replicate
ProvidersMoreReplicateOn this pageReplicateThis page covers how to run models on Replicate within LangChain.Installation and Setup​Create a Replicate account. Get your API key and set it as an environment variable (REPLICATE_API_TOKEN)Install the Replicate python client with pip install replicateCalling a model​Find a ...
296
https://python.langchain.com/docs/integrations/providers/roam
ProvidersMoreRoamOn this pageRoamROAM is a note-taking tool for networked thought, designed to create a personal knowledge base.Installation and Setup​There isn't any special setup for it.Document Loader​See a usage example.from langchain.document_loaders import RoamLoaderPreviousReplicateNextRocksetInstallation and Se...
297
https://python.langchain.com/docs/integrations/providers/rockset
ProvidersMoreRocksetOn this pageRocksetRockset is a real-time analytics database service for serving low latency, high concurrency analytical queries at scale. It builds a Converged Index™ on structured and semi-structured data with an efficient store for vector embeddings. Its support for running SQL on schemaless dat...
298
https://python.langchain.com/docs/integrations/providers/runhouse
ProvidersMoreRunhouseOn this pageRunhouseThis 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 runhouseIf you'd like to use on-demand cluster, check your cloud creden...
299
https://python.langchain.com/docs/integrations/providers/rwkv
ProvidersMoreRWKV-4On this pageRWKV-4This page covers how to use the RWKV-4 wrapper within LangChain. It is broken into two parts: installation and setup, and then usage with an example.Installation and Setup​Install the Python package with pip install rwkvInstall the tokenizer Python package with pip install tokenizer...
300
https://python.langchain.com/docs/integrations/providers/scann
ProvidersGoogleOn this pageGoogleAll functionality related to Google Cloud PlatformLLMs​Vertex AI​Access PaLM LLMs like text-bison and code-bison via Google Cloud.from langchain.llms import VertexAIModel Garden​Access PaLM and hundreds of OSS models via Vertex AI Model Garden.from langchain.llms import VertexAIModelGar...
301
https://python.langchain.com/docs/integrations/providers/searchapi
ProvidersMoreSearchApiOn this pageSearchApiThis page covers how to use the SearchApi Google Search API within LangChain. SearchApi is a real-time SERP API for easy SERP scraping.Setup​Go to https://www.searchapi.io/ to sign up for a free accountGet the api key and set it as an environment variable (SEARCHAPI_API_KEY)Wr...
302
https://python.langchain.com/docs/integrations/providers/searx
ProvidersMoreSearxNG Search APIOn this pageSearxNG Search APIThis 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 and Setup​While it is possible to utilize the wrapper in conjunction...
303
https://python.langchain.com/docs/integrations/providers/serpapi
ProvidersMoreSerpAPIOn this pageSerpAPIThis 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 google-search-resultsGet a SerpAPI api key an...
304
https://python.langchain.com/docs/integrations/providers/shaleprotocol
ProvidersMoreShale ProtocolOn this pageShale ProtocolShale Protocol provides production-ready inference APIs for open LLMs. It's a Plug & Play API as it's hosted on a highly scalable GPU cloud infrastructure. Our free tier supports up to 1K daily requests per key as we want to eliminate the barrier for anyone to start ...
305
https://python.langchain.com/docs/integrations/providers/singlestoredb
ProvidersMoreSingleStoreDBOn this pageSingleStoreDBSingleStoreDB is a high-performance distributed SQL database that supports deployment both in the cloud and on-premises. It provides vector storage, and vector functions including dot_product and euclidean_distance, thereby supporting AI applications that require text ...
306
https://python.langchain.com/docs/integrations/providers/sklearn
ProvidersMorescikit-learnOn this pagescikit-learnscikit-learn is an open source collection of machine learning algorithms, including some implementations of the k nearest neighbors. SKLearnVectorStore wraps this implementation and adds the possibility to persist the vector store in json, bson (binary json) or Apache Pa...
307
https://python.langchain.com/docs/integrations/providers/slack
ProvidersMoreSlackOn this pageSlackSlack is an instant messaging program.Installation and Setup​There isn't any special setup for it.Document Loader​See a usage example.from langchain.document_loaders import SlackDirectoryLoaderPreviousscikit-learnNextspaCyInstallation and SetupDocument Loader
308
https://python.langchain.com/docs/integrations/providers/spacy
ProvidersMorespaCyOn this pagespaCyspaCy is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython.Installation and Setup​pip install spacyText Splitter​See a usage example.from langchain.text_splitter import SpacyTextSplitterText Embedding Model...
309
https://python.langchain.com/docs/integrations/providers/spreedly
ProvidersMoreSpreedlyOn this pageSpreedlySpreedly is a service that allows you to securely store credit cards and use them to transact against any number of payment gateways and third party APIs. It does this by simultaneously providing a card tokenization/vault service as well as a gateway and receiver integration ser...
310
https://python.langchain.com/docs/integrations/providers/starrocks
ProvidersMoreStarRocksOn this pageStarRocksStarRocks is a High-Performance Analytical Database. StarRocks is a next-gen sub-second MPP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics and ad-hoc query.Usually StarRocks is categorized into OLAP, and it has showed excellen...
311
https://python.langchain.com/docs/integrations/providers/stochasticai
ProvidersMoreStochasticAIOn this pageStochasticAIThis 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 stochasticxGet an StochasticAI api key and ...
312
https://python.langchain.com/docs/integrations/providers/stripe
ProvidersMoreStripeOn this pageStripeStripe is an Irish-American financial services and software as a service (SaaS) company. It offers payment-processing software and application programming interfaces for e-commerce websites and mobile applications.Installation and Setup​See setup instructions.Document Loader​See a u...
313
https://python.langchain.com/docs/integrations/providers/supabase
ProvidersMoreSupabase (Postgres)On this pageSupabase (Postgres)Supabase is an open source Firebase alternative. Supabase is built on top of PostgreSQL, which offers strong SQL querying capabilities and enables a simple interface with already-existing tools and frameworks.PostgreSQL also known as Postgres, is a free and...
314
https://python.langchain.com/docs/integrations/providers/symblai_nebula
ProvidersMoreNebulaOn this pageNebulaThis page covers how to use Nebula, Symbl.ai's LLM, ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific Nebula wrappers.Installation and Setup​Get an Nebula API Key and set as environment variable NEBULA_API_KEYPlease see ...
315
https://python.langchain.com/docs/integrations/providers/tair
ProvidersMoreTairOn this pageTairThis page covers how to use the Tair ecosystem within LangChain.Installation and Setup​Install Tair Python SDK with pip install tair.Wrappers​VectorStore​There exists a wrapper around TairVector, allowing you to use it as a vectorstore, whether for semantic search or example selection.T...
316
https://python.langchain.com/docs/integrations/providers/telegram
ProvidersMoreTelegramOn this pageTelegramTelegram Messenger is a globally accessible freemium, cross-platform, encrypted, cloud-based and centralized instant messaging service. The application also provides optional end-to-end encrypted chats and video calling, VoIP, file sharing and several other features.Installation...
317
https://python.langchain.com/docs/integrations/providers/tencentvectordb
ProvidersMoreTencentVectorDBOn this pageTencentVectorDBThis page covers how to use the TencentVectorDB ecosystem within LangChain.VectorStore​There exists a wrapper around TencentVectorDB, allowing you to use it as a vectorstore, whether for semantic search or example selection.To import this vectorstore:from langchain...
318
https://python.langchain.com/docs/integrations/providers/tensorflow_datasets
ProvidersMoreTensorFlow DatasetsOn this pageTensorFlow DatasetsTensorFlow Datasets is a collection of datasets ready to use, with TensorFlow or other Python ML frameworks, such as Jax. All datasets are exposed as tf.data.Datasets, enabling easy-to-use and high-performance input pipelines. To get started see the guide a...
319
https://python.langchain.com/docs/integrations/providers/tigris
ProvidersMoreTigrisOn this pageTigrisTigris is an open source Serverless NoSQL Database and Search Platform designed to simplify building high-performance vector search applications. Tigris eliminates the infrastructure complexity of managing, operating, and synchronizing multiple tools, allowing you to focus on buildi...
320
https://python.langchain.com/docs/integrations/providers/tomarkdown
ProvidersMore2MarkdownOn this page2Markdown2markdown service transforms website content into structured markdown files.Installation and Setup​We need the API key. See instructions how to get it.Document Loader​See a usage example.from langchain.document_loaders import ToMarkdownLoaderPreviousTigrisNextTrelloInstallatio...
321
https://python.langchain.com/docs/integrations/providers/trello
ProvidersMoreTrelloOn this pageTrelloTrello is a web-based project management and collaboration tool that allows individuals and teams to organize and track their tasks and projects. It provides a visual interface known as a "board" where users can create lists and cards to represent their tasks and activities. The Tre...
322
https://python.langchain.com/docs/integrations/providers/trulens
ProvidersMoreTruLensOn this pageTruLensThis page covers how to use TruLens to evaluate and track LLM apps built on langchain.What is TruLens?​TruLens is an opensource package that provides instrumentation and evaluation tools for large language model (LLM) based applications.Quick start​Once you've created your LLM cha...
323
https://python.langchain.com/docs/integrations/providers/twitter
ProvidersMoreTwitterOn this pageTwitterTwitter is an online social media and social networking service.Installation and Setup​pip install tweepyWe must initialize the loader with the Twitter API token, and we need to set up the Twitter username.Document Loader​See a usage example.from langchain.document_loaders import ...
324
https://python.langchain.com/docs/integrations/providers/typesense
ProvidersMoreTypesenseOn this pageTypesenseTypesense is an open source, in-memory search engine, that you can either self-host or run on Typesense Cloud. Typesense focuses on performance by storing the entire index in RAM (with a backup on disk) and also focuses on providing an out-of-the-box developer experience by si...
325
https://python.langchain.com/docs/integrations/providers/unstructured
ProvidersMoreUnstructuredOn this pageUnstructuredThe unstructured package from Unstructured.IO extracts clean text from raw source documents like PDFs and Word documents. This page covers how to use the unstructured ecosystem within LangChain.Installation and Setup​If you are using a loader that runs locally, use the f...
326
https://python.langchain.com/docs/integrations/providers/usearch
ProvidersMoreUSearchOn this pageUSearchUSearch is a Smaller & Faster Single-File Vector Search Engine.USearch's base functionality is identical to FAISS, and the interface should look familiar if you have ever investigated Approximate Nearest Neighbors search. USearch and FAISS both employ HNSW algorithm, but they diff...
327
https://python.langchain.com/docs/integrations/providers/vearch
ProvidersMoreVearchVearchVearch is a scalable distributed system for efficient similarity search of deep learning vectors.Installation and SetupVearch Python SDK enables vearch to use locally. Vearch python sdk can be installed easily by pip install vearch.VectorstoreVearch also can used as vectorstore. Most detalis in...
328
https://python.langchain.com/docs/integrations/providers/vectara/
ProvidersMoreVectaraOn this pageVectaraVectara is a GenAI platform for developers. It provides a simple API to build Grounded Generation (aka Retrieval-augmented-generation or RAG) applications.Vectara Overview:Vectara is developer-first API platform for building GenAI applicationsTo use Vectara - first sign up and cre...
329
https://python.langchain.com/docs/integrations/providers/vectara/vectara_chat
ProvidersMoreVectaraChat Over Documents with VectaraOn this pageChat Over Documents with VectaraThis notebook is based on the chat_vector_db notebook, but using Vectara as the vector database.import osfrom langchain.vectorstores import Vectarafrom langchain.vectorstores.vectara import VectaraRetrieverfrom langchain.llm...
330
https://python.langchain.com/docs/integrations/providers/vectara/vectara_text_generation
ProvidersMoreVectaraVectara Text GenerationOn this pageVectara Text GenerationThis notebook is based on text generation notebook and adapted to Vectara.Prepare Data​First, we prepare the data. For this example, we fetch a documentation site that consists of markdown files hosted on Github and split them into small enou...
331
https://python.langchain.com/docs/integrations/providers/vespa
ProvidersMoreVespaOn this pageVespaVespa is a fully featured search engine and vector database. It supports vector search (ANN), lexical search, and search in structured data, all in the same query.Installation and Setup​pip install pyvespaRetriever​See a usage example.from langchain.retrievers import VespaRetrieverPre...
332
https://python.langchain.com/docs/integrations/providers/wandb_tracing
ProvidersMoreWandB TracingWandB TracingThere are two recommended ways to trace your LangChains:Setting the LANGCHAIN_WANDB_TRACING environment variable to "true".Using a context manager with tracing_enabled() to trace a particular block of code.Note if the environment variable is set, all code will be traced, regardles...
333
https://python.langchain.com/docs/integrations/providers/wandb_tracking
ProvidersMoreWeights & BiasesWeights & BiasesThis 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 see...
334
https://python.langchain.com/docs/integrations/providers/weather
ProvidersMoreWeatherOn this pageWeatherOpenWeatherMap is an open source weather service provider.Installation and Setup​pip install pyowmWe must set up the OpenWeatherMap API token.Document Loader​See a usage example.from langchain.document_loaders import WeatherDataLoaderPreviousWeights & BiasesNextWeaviateInstallatio...
335
https://python.langchain.com/docs/integrations/providers/weaviate
ProvidersMoreWeaviateOn this pageWeaviateWeaviate is an open-source vector database. It allows you to store data objects and vector embeddings from your favorite ML models, and scale seamlessly into billions of data objects.What is Weaviate?Weaviate is an open-source ​database of the type ​vector search engine.Weaviate...
336
https://python.langchain.com/docs/integrations/providers/whatsapp
ProvidersMoreWhatsAppOn this pageWhatsAppWhatsApp (also called WhatsApp Messenger) is a freeware, cross-platform, centralized instant messaging (IM) and voice-over-IP (VoIP) service. It allows users to send text and voice messages, make voice and video calls, and share images, documents, user locations, and other conte...
337
https://python.langchain.com/docs/integrations/providers/whylabs_profiling
ProvidersMoreWhyLabsOn this pageWhyLabsWhyLabs is an observability platform designed to monitor data pipelines and ML applications for data quality regressions, data drift, and model performance degradation. Built on top of an open-source package called whylogs, the platform enables Data Scientists and Engineers to:Set...
338
https://python.langchain.com/docs/integrations/providers/wikipedia
ProvidersMoreWikipediaOn this pageWikipediaWikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read reference work in history.I...
339
https://python.langchain.com/docs/integrations/providers/wolfram_alpha
ProvidersMoreWolfram AlphaOn this pageWolfram AlphaWolframAlpha is an answer engine developed by Wolfram Research. It answers factual queries by computing answers from externally sourced data.This page covers how to use the Wolfram Alpha API within LangChain.Installation and Setup​Install requirements with pip install ...
340
https://python.langchain.com/docs/integrations/providers/writer
ProvidersMoreWriterOn this pageWriterThis 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 variable (WRITER_API_KEY)Wrappers​LLM​The...
341
https://python.langchain.com/docs/integrations/providers/xata
ProvidersMoreXataOn this pageXataXata is a serverless data platform, based on PostgreSQL. It provides a Python SDK for interacting with your database, and a UI for managing your data. Xata has a native vector type, which can be added to any table, and supports similarity search. LangChain inserts vectors directly to Xa...
342
https://python.langchain.com/docs/integrations/providers/xinference
ProvidersMoreXorbits Inference (Xinference)On this pageXorbits Inference (Xinference)This page demonstrates how to use Xinference with LangChain.Xinference is a powerful and versatile library designed to serve LLMs, speech recognition models, and multimodal models, even on your laptop. With Xorbits Inference, you can e...
343
https://python.langchain.com/docs/integrations/providers/yeagerai
ProvidersMoreYeager.aiOn this pageYeager.aiThis page covers how to use Yeager.ai to generate LangChain tools and agents.What is Yeager.ai?​Yeager.ai is an ecosystem designed to simplify the process of creating AI agents and tools. It features yAgents, a No-code LangChain Agent Builder, which enables users to build, tes...
344
https://python.langchain.com/docs/integrations/providers/youtube
ProvidersMoreYouTubeOn this pageYouTubeYouTube is an online video sharing and social media platform by Google. We download the YouTube transcripts and video information.Installation and Setup​pip install youtube-transcript-apipip install pytubeSee a usage example.Document Loader​See a usage example.from langchain.docum...
345
https://python.langchain.com/docs/integrations/providers/zep
ProvidersMoreZepOn this pageZepZep - A long-term memory store for LLM applications.Zep stores, summarizes, embeds, indexes, and enriches conversational AI chat histories, and exposes them via simple, low-latency APIs.Long-term memory persistence, with access to historical messages irrespective of your summarization str...
346
https://python.langchain.com/docs/integrations/providers/zilliz
ProvidersMoreZillizOn this pageZillizZilliz Cloud is a fully managed service on cloud for LF AI Milvus®,Installation and Setup​Install the Python SDK:pip install pymilvusVectorstore​A wrapper around Zilliz indexes allows you to use it as a vectorstore, whether for semantic search or example selection.from langchain.vec...
347
https://python.langchain.com/docs/integrations/components
ComponentsComponents🗃️ LLMs66 items🗃️ Chat models21 items🗃️ Document loaders133 items🗃️ Document transformers8 items🗃️ Text embedding models36 items🗃️ Vector stores58 items🗃️ Retrievers29 items🗃️ Tools41 items🗃️ Agents and toolkits26 items🗃️ Memory14 items🗃️ Callbacks10 items🗃️ Chat loaders11 itemsPreviousZ...
348
https://python.langchain.com/docs/integrations/llms/
ComponentsLLMsOn this pageLLMsFeatures (natively supported)​All LLMs implement the Runnable interface, which comes with default implementations of all methods, ie. ainvoke, batch, abatch, stream, astream. This gives all LLMs basic support for async, streaming and batch, which by default is implemented as below:Async su...
349
https://python.langchain.com/docs/integrations/llms/
ComponentsLLMsOn this pageLLMsFeatures (natively supported)​All LLMs implement the Runnable interface, which comes with default implementations of all methods, ie. ainvoke, batch, abatch, stream, astream. This gives all LLMs basic support for async, streaming and batch, which by default is implemented as below:Async su...
350
https://python.langchain.com/docs/integrations/llms/ai21
ComponentsLLMsAI21AI21AI21 Studio provides API access to Jurassic-2 large language models.This example goes over how to use LangChain to interact with AI21 models.# install the package:pip install ai21# get AI21_API_KEY. Use https://studio.ai21.com/account/accountfrom getpass import getpassAI21_API_KEY = getpass() ...
351
https://python.langchain.com/docs/integrations/llms/aleph_alpha
ComponentsLLMsAleph AlphaAleph AlphaThe Luminous series is a family of large language models.This example goes over how to use LangChain to interact with Aleph Alpha models# Install the packagepip install aleph-alpha-client# create a new token: https://docs.aleph-alpha.com/docs/account/#create-a-new-tokenfrom getpass i...
352
https://python.langchain.com/docs/integrations/llms/amazon_api_gateway
ComponentsLLMsAmazon API GatewayOn this pageAmazon API GatewayAmazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. APIs act as the "front door" for applications to access data, business logic, or functionality from your back...
353
https://python.langchain.com/docs/integrations/llms/anyscale
ComponentsLLMsAnyscaleAnyscaleAnyscale is a fully-managed Ray platform, on which you can build, deploy, and manage scalable AI and Python applicationsThis example goes over how to use LangChain to interact with Anyscale service. It will send the requests to Anyscale Service endpoint, which is concatenate ANYSCALE_SERVI...
354
https://python.langchain.com/docs/integrations/llms/arcee
ComponentsLLMsArceeOn this pageArceeThis notebook demonstrates how to use the Arcee class for generating text using Arcee's Domain Adapted Language Models (DALMs).Setup​Before using Arcee, make sure the Arcee API key is set as ARCEE_API_KEY environment variable. You can also pass the api key as a named parameter.from l...
355
https://python.langchain.com/docs/integrations/llms/azure_ml
ComponentsLLMsAzure MLOn this pageAzure MLAzure ML is a platform used to build, train, and deploy machine learning models. Users can explore the types of models to deploy in the Model Catalog, which provides Azure Foundation Models and OpenAI Models. Azure Foundation Models include various open-source models and popula...
356
https://python.langchain.com/docs/integrations/llms/azure_openai
ComponentsLLMsAzure OpenAIOn this pageAzure OpenAIThis notebook goes over how to use Langchain with Azure OpenAI.The Azure OpenAI API is compatible with OpenAI's API. The openai Python package makes it easy to use both OpenAI and Azure OpenAI. You can call Azure OpenAI the same way you call OpenAI with the exceptions...
357
https://python.langchain.com/docs/integrations/llms/baidu_qianfan_endpoint
ComponentsLLMsBaidu QianfanOn this pageBaidu QianfanBaidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open source models, but also provides various ...
358
https://python.langchain.com/docs/integrations/llms/banana
ComponentsLLMsBananaBananaBanana is focused on building the machine learning infrastructure.This example goes over how to use LangChain to interact with Banana models# Install the package https://docs.banana.dev/banana-docs/core-concepts/sdks/pythonpip install banana-dev# get new tokens: https://app.banana.dev/# We ne...
359
https://python.langchain.com/docs/integrations/llms/baseten
ComponentsLLMsBasetenBasetenBaseten provides all the infrastructure you need to deploy and serve ML models performantly, scalably, and cost-efficiently.This example demonstrates using Langchain with models deployed on Baseten.SetupTo run this notebook, you'll need a Baseten account and an API key.You'll also need to in...
360
https://python.langchain.com/docs/integrations/llms/beam
ComponentsLLMsBeamBeamCalls the Beam API wrapper to deploy and make subsequent calls to an instance of the gpt2 LLM in a cloud deployment. Requires installation of the Beam library and registration of Beam Client ID and Client Secret. By calling the wrapper an instance of the model is created and run, with returned tex...
361
https://python.langchain.com/docs/integrations/llms/bedrock
ComponentsLLMsBedrockOn this pageBedrockAmazon Bedrock is a fully managed service that makes FMs from leading AI startups and Amazon available via an API, so you can choose from a wide range of FMs to find the model that is best suited for your use case%pip install boto3from langchain.llms import Bedrockllm = Bedrock( ...
362
https://python.langchain.com/docs/integrations/llms/bittensor
ComponentsLLMsBittensorOn this pageBittensorBittensor is a mining network, similar to Bitcoin, that includes built-in incentives designed to encourage miners to contribute compute + knowledge.NIBittensorLLM is developed by Neural Internet, powered by Bittensor.This LLM showcases true potential of decentralized AI by gi...
363
https://python.langchain.com/docs/integrations/llms/cerebriumai
ComponentsLLMsCerebriumAIOn this pageCerebriumAICerebrium is an AWS Sagemaker alternative. It also provides API access to several LLM models.This notebook goes over how to use Langchain with CerebriumAI.Install cerebrium​The cerebrium package is required to use the CerebriumAI API. Install cerebrium using pip3 install ...
364
https://python.langchain.com/docs/integrations/llms/chatglm
ComponentsLLMsChatGLMChatGLMChatGLM-6B is an open bilingual language model based on General Language Model (GLM) framework, with 6.2 billion parameters. With the quantization technique, users can deploy locally on consumer-grade graphics cards (only 6GB of GPU memory is required at the INT4 quantization level). ChatGLM...
365
https://python.langchain.com/docs/integrations/llms/clarifai
ComponentsLLMsClarifaiClarifaiClarifai is an AI Platform that provides the full AI lifecycle ranging from data exploration, data labeling, model training, evaluation, and inference.This example goes over how to use LangChain to interact with Clarifai models. To use Clarifai, you must have an account and a Personal Acce...
366
https://python.langchain.com/docs/integrations/llms/cohere
ComponentsLLMsCohereCohereCohere is a Canadian startup that provides natural language processing models that help companies improve human-machine interactions.This example goes over how to use LangChain to interact with Cohere models.# Install the packagepip install cohere# get a new token: https://dashboard.cohere.ai/...
367
https://python.langchain.com/docs/integrations/llms/ctransformers
ComponentsLLMsC TransformersC TransformersThe C Transformers library provides Python bindings for GGML models.This example goes over how to use LangChain to interact with C Transformers models.Install%pip install ctransformersLoad Modelfrom langchain.llms import CTransformersllm = CTransformers(model="marella/gpt-2-ggm...
368
https://python.langchain.com/docs/integrations/llms/ctranslate2
ComponentsLLMsCTranslate2On this pageCTranslate2CTranslate2 is a C++ and Python library for efficient inference with Transformer models.The project implements a custom runtime that applies many performance optimization techniques such as weights quantization, layers fusion, batch reordering, etc., to accelerate and red...
369
https://python.langchain.com/docs/integrations/llms/databricks
ComponentsLLMsDatabricksOn this pageDatabricksThe Databricks Lakehouse Platform unifies data, analytics, and AI on one platform.This example notebook shows how to wrap Databricks endpoints as LLMs in LangChain. It supports two endpoint types:Serving endpoint, recommended for production and development,Cluster driver pr...
370
https://python.langchain.com/docs/integrations/llms/deepinfra
ComponentsLLMsDeepInfraOn this pageDeepInfraDeepInfra provides several LLMs.This notebook goes over how to use Langchain with DeepInfra.Imports​import osfrom langchain.llms import DeepInfrafrom langchain.prompts import PromptTemplatefrom langchain.chains import LLMChainSet the Environment API Key​Make sure to get your ...
371
https://python.langchain.com/docs/integrations/llms/deepsparse
ComponentsLLMsDeepSparseOn this pageDeepSparseThis page covers how to use the DeepSparse inference runtime within LangChain. It is broken into two parts: installation and setup, and then examples of DeepSparse usage.Installation and Setup​Install the Python package with pip install deepsparseChoose a SparseZoo model or...
372
https://python.langchain.com/docs/integrations/llms/edenai
ComponentsLLMsEden AIOn this pageEden AIEden AI is revolutionizing the AI landscape by uniting the best AI providers, empowering users to unlock limitless possibilities and tap into the true potential of artificial intelligence. With an all-in-one comprehensive and hassle-free platform, it allows users to deploy AI fea...
373
https://python.langchain.com/docs/integrations/llms/fireworks
ComponentsLLMsFireworksFireworksFireworks accelerates product development on generative AI by creating an innovative AI experiment and production platform. This example goes over how to use LangChain to interact with Fireworks models.from langchain.llms.fireworks import Fireworksfrom langchain.prompts import PromptTemp...
374
https://python.langchain.com/docs/integrations/llms/forefrontai
ComponentsLLMsForefrontAIOn this pageForefrontAIThe Forefront platform gives you the ability to fine-tune and use open source large language models.This notebook goes over how to use Langchain with ForefrontAI.Imports​import osfrom langchain.llms import ForefrontAIfrom langchain.prompts import PromptTemplatefrom langch...
375
https://python.langchain.com/docs/integrations/llms/google_vertex_ai_palm
ComponentsLLMsGCP Vertex AIOn this pageGCP Vertex AINote: This is separate from the Google PaLM integration, it exposes Vertex AI PaLM API on Google Cloud. Setting up​By default, Google Cloud does not use customer data to train its foundation models as part of Google Cloud's AI/ML Privacy Commitment. More details about...
376
https://python.langchain.com/docs/integrations/llms/gooseai
ComponentsLLMsGooseAIOn this pageGooseAIGooseAI is a fully managed NLP-as-a-Service, delivered via API. GooseAI provides access to these models.This notebook goes over how to use Langchain with GooseAI.Install openai​The openai package is required to use the GooseAI API. Install openai using pip3 install openai.$ pip3 ...
377
https://python.langchain.com/docs/integrations/llms/gpt4all
ComponentsLLMsGPT4AllOn this pageGPT4AllGitHub:nomic-ai/gpt4all an ecosystem of open-source chatbots trained on a massive collections of clean assistant data including code, stories and dialogue.This example goes over how to use LangChain to interact with GPT4All models.%pip install gpt4all > /dev/null Note: you may...
378
https://python.langchain.com/docs/integrations/llms/gradient
ComponentsLLMsGradientOn this pageGradientGradient allows to fine tune and get completions on LLMs with a simple web API.This notebook goes over how to use Langchain with Gradient.Imports​import osimport requestsfrom langchain.llms import GradientLLMfrom langchain.prompts import PromptTemplatefrom langchain.chains impo...
379
https://python.langchain.com/docs/integrations/llms/huggingface_hub
ComponentsLLMsHugging Face HubOn this pageHugging Face HubThe Hugging Face Hub is a platform with over 120k models, 20k datasets, and 50k demo apps (Spaces), all open source and publicly available, in an online platform where people can easily collaborate and build ML together.This example showcases how to connect to t...
380
https://python.langchain.com/docs/integrations/llms/huggingface_pipelines
ComponentsLLMsHugging Face Local PipelinesOn this pageHugging Face Local PipelinesHugging Face models can be run locally through the HuggingFacePipeline class.The Hugging Face Model Hub hosts over 120k models, 20k datasets, and 50k demo apps (Spaces), all open source and publicly available, in an online platform where ...
381
https://python.langchain.com/docs/integrations/llms/huggingface_textgen_inference
ComponentsLLMsHuggingface TextGen InferenceOn this pageHuggingface TextGen InferenceText Generation Inference is a Rust, Python and gRPC server for text generation inference. Used in production at HuggingFace to power LLMs api-inference widgets.This notebooks goes over how to use a self hosted LLM using Text Generation...
382
https://python.langchain.com/docs/integrations/llms/javelin
ComponentsLLMsJavelin AI Gateway TutorialOn this pageJavelin AI Gateway TutorialThis Jupyter Notebook will explore how to interact with the Javelin AI Gateway using the Python SDK. The Javelin AI Gateway facilitates the utilization of large language models (LLMs) like OpenAI, Cohere, Anthropic, and others by providing ...
383
https://python.langchain.com/docs/integrations/llms/jsonformer_experimental
ComponentsLLMsJSONFormerOn this pageJSONFormerJSONFormer is a library that wraps local HuggingFace pipeline models for structured decoding of a subset of the JSON Schema.It works by filling in the structure tokens and then sampling the content tokens from the model.Warning - this module is still experimentalpip install...
384
https://python.langchain.com/docs/integrations/llms/koboldai
ComponentsLLMsKoboldAI APIKoboldAI APIKoboldAI is a "a browser-based front-end for AI-assisted writing with multiple local & remote AI models...". It has a public and local API that is able to be used in langchain.This example goes over how to use LangChain with that API.Documentation can be found in the browser adding...
385
https://python.langchain.com/docs/integrations/llms/llamacpp
ComponentsLLMsLlama.cppOn this pageLlama.cppllama-cpp-python is a Python binding for llama.cpp. It supports inference for many LLMs, which can be accessed on HuggingFace.This notebook goes over how to run llama-cpp-python within LangChain.Note: new versions of llama-cpp-python use GGUF model files (see here).This is a ...
386
https://python.langchain.com/docs/integrations/llms/llm_caching
ComponentsLLMsLLM Caching integrationsOn this pageLLM Caching integrationsThis notebook covers how to cache results of individual LLM calls using different caches.import langchainfrom langchain.llms import OpenAI# To make the caching really obvious, lets use a slower model.llm = OpenAI(model_name="text-davinci-002", n=...
387
https://python.langchain.com/docs/integrations/llms/manifest
ComponentsLLMsManifestOn this pageManifestThis notebook goes over how to use Manifest and LangChain.For more detailed information on manifest, and how to use it with local hugginface models like in this example, see https://github.com/HazyResearch/manifestAnother example of using Manifest with Langchain.pip install man...
388
https://python.langchain.com/docs/integrations/llms/minimax
ComponentsLLMsMinimaxMinimaxMinimax is a Chinese startup that provides natural language processing models for companies and individuals.This example demonstrates using Langchain to interact with Minimax.SetupTo run this notebook, you'll need a Minimax account, an API key, and a Group IDSingle model callfrom langchain.l...
389
https://python.langchain.com/docs/integrations/llms/modal
ComponentsLLMsModalModalThe Modal cloud platform provides convenient, on-demand access to serverless cloud compute from Python scripts on your local computer. Use modal to run your own custom LLM models instead of depending on LLM APIs.This example goes over how to use LangChain to interact with a modal HTTPS web endpo...
390
https://python.langchain.com/docs/integrations/llms/mosaicml
ComponentsLLMsMosaicMLMosaicMLMosaicML offers a managed inference service. You can either use a variety of open source models, or deploy your own.This example goes over how to use LangChain to interact with MosaicML Inference for text completion.# sign up for an account: https://forms.mosaicml.com/demo?utm_source=langc...
391
https://python.langchain.com/docs/integrations/llms/nlpcloud
ComponentsLLMsNLP CloudNLP CloudThe NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text ge...
392
https://python.langchain.com/docs/integrations/llms/octoai
ComponentsLLMsOctoAIOn this pageOctoAIOctoML is a service with efficient compute. It enables users to integrate their choice of AI models into applications. The OctoAI compute service helps you run, tune, and scale AI applications.This example goes over how to use LangChain to interact with OctoAI LLM endpointsSetup​To...
393
https://python.langchain.com/docs/integrations/llms/ollama
ComponentsLLMsOllamaOn this pageOllamaOllama allows you to run open-source large language models, such as Llama 2, locally.Ollama bundles model weights, configuration, and data into a single package, defined by a Modelfile. It optimizes setup and configuration details, including GPU usage.For a complete list of support...
394
https://python.langchain.com/docs/integrations/llms/opaqueprompts
ComponentsLLMsOpaquePromptsOpaquePromptsOpaquePrompts is a service that enables applications to leverage the power of language models without compromising user privacy. Designed for composability and ease of integration into existing applications and services, OpaquePrompts is consumable via a simple Python library as ...