id
stringlengths
14
16
text
stringlengths
29
2.73k
source
stringlengths
49
117
95cd19653f72-0
Source code for langchain.chains.llm_summarization_checker.base """Chain for summarization with self-verification.""" from __future__ import annotations import warnings from pathlib import Path from typing import Any, Dict, List, Optional from pydantic import Extra, root_validator from langchain.base_language import Ba...
https://python.langchain.com/en/latest/_modules/langchain/chains/llm_summarization_checker/base.html
95cd19653f72-1
verbose=verbose, ), LLMChain( llm=llm, prompt=check_assertions_prompt, output_key="checked_assertions", verbose=verbose, ), LLMChain( llm=llm, prompt=revised_summary_prompt, ...
https://python.langchain.com/en/latest/_modules/langchain/chains/llm_summarization_checker/base.html
95cd19653f72-2
input_key: str = "query" #: :meta private: output_key: str = "result" #: :meta private: max_checks: int = 2 """Maximum number of times to check the assertions. Default to double-checking.""" class Config: """Configuration for this pydantic object.""" extra = Extra.forbid arbitr...
https://python.langchain.com/en/latest/_modules/langchain/chains/llm_summarization_checker/base.html
95cd19653f72-3
def _call( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = None, ) -> Dict[str, str]: _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager() all_true = False count = 0 output = None original_input ...
https://python.langchain.com/en/latest/_modules/langchain/chains/llm_summarization_checker/base.html
95cd19653f72-4
create_assertions_prompt, check_assertions_prompt, revised_summary_prompt, are_all_true_prompt, verbose=verbose, ) return cls(sequential_chain=chain, verbose=verbose, **kwargs) By Harrison Chase © Copyright 2023, Harrison Chase. Last up...
https://python.langchain.com/en/latest/_modules/langchain/chains/llm_summarization_checker/base.html
41db6df86c11-0
Source code for langchain.chains.flare.base from __future__ import annotations import re from abc import abstractmethod from typing import Any, Dict, List, Optional, Sequence, Tuple import numpy as np from pydantic import Field from langchain.base_language import BaseLanguageModel from langchain.callbacks.manager impor...
https://python.langchain.com/en/latest/_modules/langchain/chains/flare/base.html
41db6df86c11-1
) ) def _extract_tokens_and_log_probs( self, generations: List[Generation] ) -> Tuple[Sequence[str], Sequence[float]]: tokens = [] log_probs = [] for gen in generations: if gen.generation_info is None: raise ValueError tokens.extend(gen...
https://python.langchain.com/en/latest/_modules/langchain/chains/flare/base.html
41db6df86c11-2
[docs]class FlareChain(Chain): question_generator_chain: QuestionGeneratorChain response_chain: _ResponseChain = Field(default_factory=_OpenAIResponseChain) output_parser: FinishedOutputParser = Field(default_factory=FinishedOutputParser) retriever: BaseRetriever min_prob: float = 0.2 min_token_...
https://python.langchain.com/en/latest/_modules/langchain/chains/flare/base.html
41db6df86c11-3
question_gen_inputs = [ { "user_input": user_input, "current_response": initial_response, "uncertain_span": span, } for span in low_confidence_spans ] callbacks = _run_manager.get_child() question_gen_outputs = s...
https://python.langchain.com/en/latest/_modules/langchain/chains/flare/base.html
41db6df86c11-4
) initial_response = response.strip() + " " + "".join(tokens) if not low_confidence_spans: response = initial_response final_response, finished = self.output_parser.parse(response) if finished: return {self.output_keys[0]: final...
https://python.langchain.com/en/latest/_modules/langchain/chains/flare/base.html
8ceb10998b8e-0
Source code for langchain.chains.conversation.base """Chain that carries on a conversation and calls an LLM.""" from typing import Dict, List from pydantic import Extra, Field, root_validator from langchain.chains.conversation.prompt import PROMPT from langchain.chains.llm import LLMChain from langchain.memory.buffer i...
https://python.langchain.com/en/latest/_modules/langchain/chains/conversation/base.html
8ceb10998b8e-1
f"The input key {input_key} was also found in the memory keys " f"({memory_keys}) - please provide keys that don't overlap." ) prompt_variables = values["prompt"].input_variables expected_keys = memory_keys + [input_key] if set(expected_keys) != set(prompt_variables):...
https://python.langchain.com/en/latest/_modules/langchain/chains/conversation/base.html
fbcf05438a5f-0
.ipynb .pdf Model Comparison Model Comparison# Constructing your language model application will likely involved choosing between many different options of prompts, models, and even chains to use. When doing so, you will want to compare these different options on different inputs in an easy, flexible, and intuitive way...
https://python.langchain.com/en/latest/additional_resources/model_laboratory.html
fbcf05438a5f-1
pink prompt = PromptTemplate(template="What is the capital of {state}?", input_variables=["state"]) model_lab_with_prompt = ModelLaboratory.from_llms(llms, prompt=prompt) model_lab_with_prompt.compare("New York") Input: New York OpenAI Params: {'model': 'text-davinci-002', 'temperature': 0.0, 'max_tokens': 256, 'top_p'...
https://python.langchain.com/en/latest/additional_resources/model_laboratory.html
fbcf05438a5f-2
names = [str(open_ai_llm), str(cohere_llm)] model_lab = ModelLaboratory(chains, names=names) model_lab.compare("What is the hometown of the reigning men's U.S. Open champion?") Input: What is the hometown of the reigning men's U.S. Open champion? OpenAI Params: {'model': 'text-davinci-002', 'temperature': 0.0, 'max_tok...
https://python.langchain.com/en/latest/additional_resources/model_laboratory.html
fbcf05438a5f-3
So the final answer is: Carlos Alcaraz previous Tracing next YouTube By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/additional_resources/model_laboratory.html
54872767e2e2-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...
https://python.langchain.com/en/latest/additional_resources/tracing.html
54872767e2e2-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_TRACING"] = "true" os.environ["LANGCHAIN_SESSION"] = "my_session" # Make sure this session actually ex...
https://python.langchain.com/en/latest/additional_resources/tracing.html
4b654a4bfdd9-0
.md .pdf YouTube Contents ⛓️Official LangChain YouTube channel⛓️ Introduction to LangChain with Harrison Chase, creator of LangChain Videos (sorted by views) YouTube# This is a collection of LangChain videos on YouTube. ⛓️Official LangChain YouTube channel⛓️# Introduction to LangChain with Harrison Chase, creator of ...
https://python.langchain.com/en/latest/additional_resources/youtube.html
4b654a4bfdd9-1
Run BabyAGI with Langchain Agents (with Python Code) by 1littlecoder How to Use Langchain With Zapier | Write and Send Email with GPT-3 | OpenAI API Tutorial by StarMorph AI Use Your Locally Stored Files To Get Response From GPT - OpenAI | Langchain | Python by Shweta Lodha Langchain JS | How to Use GPT-3, GPT-4 to Ref...
https://python.langchain.com/en/latest/additional_resources/youtube.html
4b654a4bfdd9-2
LangChain. Crear aplicaciones Python impulsadas por GPT by Jesús Conde Easiest Way to Use GPT In Your Products | LangChain Basics Tutorial by Rachel Woods BabyAGI + GPT-4 Langchain Agent with Internet Access by tylerwhatsgood Learning LLM Agents. How does it actually work? LangChain, AutoGPT & OpenAI by Arnoldas Kemekl...
https://python.langchain.com/en/latest/additional_resources/youtube.html
4b654a4bfdd9-3
⛓️ QA over documents with Auto vector index selection with Langchain router chains by echohive ⛓️ Build your own custom LLM application with Bubble.io & Langchain (No Code & Beginner friendly) by No Code Blackbox ⛓️ Simple App to Question Your Docs: Leveraging Streamlit, Hugging Face Spaces, LangChain, and Claude! by C...
https://python.langchain.com/en/latest/additional_resources/youtube.html
4b654a4bfdd9-4
⛓️ LangChain In Action: Real-World Use Case With Step-by-Step Tutorial by Rabbitmetrics ⛓️ Summarizing and Querying Multiple Papers with LangChain by Automata Learning Lab ⛓️ Using Langchain (and Replit) through Tana, ask Google/Wikipedia/Wolfram Alpha to fill out a table by Stian Håklev ⛓️ Langchain PDF App (GUI) | Cr...
https://python.langchain.com/en/latest/additional_resources/youtube.html
4b654a4bfdd9-5
Model Comparison Contents ⛓️Official LangChain YouTube channel⛓️ Introduction to LangChain with Harrison Chase, creator of LangChain Videos (sorted by views) By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/additional_resources/youtube.html
ed216830d7b9-0
.md .pdf Installation and Setup Contents Installation and Setup Document Loader Airbyte JSON Airbyte is a data integration platform for ELT pipelines from APIs, databases & files to warehouses & lakes. It has the largest catalog of ELT connectors to data warehouses and databases. Installation and Setup# This instruct...
https://python.langchain.com/en/latest/integrations/airbyte_json.html
aa50c30336ef-0
.md .pdf Diffbot Contents Installation and Setup Document Loader Diffbot# Diffbot is a service to read web pages. Unlike traditional web scraping tools, Diffbot doesn’t require any rules to read the content on a page. It starts with computer vision, which classifies a page into one of 20 possible types. Content is th...
https://python.langchain.com/en/latest/integrations/diffbot.html
afe34655e2d4-0
.ipynb .pdf WhyLabs Integration WhyLabs Integration# Enable observability to detect inputs and LLM issues faster, deliver continuous improvements, and avoid costly incidents. %pip install langkit -q Make sure to set the required API keys and config required to send telemetry to WhyLabs: WhyLabs API Key: https://whylabs...
https://python.langchain.com/en/latest/integrations/whylabs_profiling.html
afe34655e2d4-1
result = llm.generate(["Hello, World!"]) print(result) generations=[[Generation(text="\n\nMy name is John and I'm excited to learn more about programming.", generation_info={'finish_reason': 'stop', 'logprobs': None})]] llm_output={'token_usage': {'total_tokens': 20, 'prompt_tokens': 4, 'completion_tokens': 16}, 'model...
https://python.langchain.com/en/latest/integrations/whylabs_profiling.html
afe34655e2d4-2
whylabs.close() previous Weaviate next Wolfram Alpha Wrapper By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/whylabs_profiling.html
cc4a489d88dd-0
.ipynb .pdf Databricks Contents Installation and Setup Connecting to Databricks Syntax Required Parameters Optional Parameters Examples SQL Chain example SQL Database Agent example Databricks# This notebook covers how to connect to the Databricks runtimes and Databricks SQL using the SQLDatabase wrapper of LangChain....
https://python.langchain.com/en/latest/integrations/databricks.html
cc4a489d88dd-1
warehouse_id: The warehouse ID in the Databricks SQL. cluster_id: The cluster ID in the Databricks Runtime. If running in a Databricks notebook and both ‘warehouse_id’ and ‘cluster_id’ are None, it uses the ID of the cluster the notebook is attached to. engine_args: The arguments to be used when connecting Databricks. ...
https://python.langchain.com/en/latest/integrations/databricks.html
cc4a489d88dd-2
SQL Database Agent example# This example demonstrates the use of the SQL Database Agent for answering questions over a Databricks database. from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit toolkit = SQLDatabaseToolkit(db=db, llm=llm) agent = create_sql_agent( ...
https://python.langchain.com/en/latest/integrations/databricks.html
cc4a489d88dd-3
2016-02-17 17:13:57+00:00 2016-02-17 17:17:55+00:00 0.7 5.0 10103 10023 */ Thought:The trips table has the necessary columns for trip distance and duration. I will write a query to find the longest trip distance and its duration. Action: query_checker_sql_db Action Input: SELECT trip_distance, tpep_dropoff_datetime - t...
https://python.langchain.com/en/latest/integrations/databricks.html
7565f006ff90-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 ...
https://python.langchain.com/en/latest/integrations/atlas.html
bbaba078a8b7-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...
https://python.langchain.com/en/latest/integrations/pgvector.html
9b0656e020c3-0
.md .pdf AWS S3 Directory Contents Installation and Setup Document Loader AWS S3 Directory# Amazon Simple Storage Service (Amazon S3) is an object storage service. AWS S3 Directory AWS S3 Buckets Installation and Setup# pip install boto3 Document Loader# See a usage example for S3DirectoryLoader. See a usage example ...
https://python.langchain.com/en/latest/integrations/aws_s3.html
ba593f2440d7-0
.md .pdf Apify Contents Overview Installation and Setup Wrappers Utility Loader Apify# This page covers how to use Apify within LangChain. Overview# Apify is a cloud platform for web scraping and data extraction, which provides an ecosystem of more than a thousand ready-made apps called Actors for various scraping, c...
https://python.langchain.com/en/latest/integrations/apify.html
773db1284f27-0
.md .pdf scikit-learn Contents Installation and Setup Wrappers VectorStore scikit-learn# This page covers how to use the scikit-learn package within LangChain. It is broken into two parts: installation and setup, and then references to specific scikit-learn wrappers. Installation and Setup# Install the Python package...
https://python.langchain.com/en/latest/integrations/sklearn.html
c5598b5b4033-0
.md .pdf Vectara Contents Installation and Setup VectorStore Vectara# What is Vectara? Vectara Overview: Vectara is developer-first API platform for building conversational search applications To use Vectara - first sign up and create an account. Then create a corpus and an API key for indexing and searching. You can...
https://python.langchain.com/en/latest/integrations/vectara.html
c5598b5b4033-1
Contents Installation and Setup VectorStore By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/vectara.html
20423a1d4ac4-0
.md .pdf Zilliz Contents Installation and Setup Wrappers VectorStore Zilliz# This page covers how to use the Zilliz Cloud ecosystem within LangChain. Zilliz uses the Milvus integration. It is broken into two parts: installation and setup, and then references to specific Milvus wrappers. Installation and Setup# Instal...
https://python.langchain.com/en/latest/integrations/zilliz.html
70556694d467-0
.md .pdf Confluence Contents Installation and Setup Document Loader Confluence# Confluence is a wiki collaboration platform that saves and organizes all of the project-related material. Confluence is a knowledge base that primarily handles content management activities. Installation and Setup# pip install atlassian-p...
https://python.langchain.com/en/latest/integrations/confluence.html
331d89419b05-0
.md .pdf LanceDB Contents Installation and Setup Wrappers VectorStore LanceDB# This page covers how to use LanceDB within LangChain. It is broken into two parts: installation and setup, and then references to specific LanceDB wrappers. Installation and Setup# Install the Python SDK with pip install lancedb Wrappers# ...
https://python.langchain.com/en/latest/integrations/lancedb.html
c910e2ce3183-0
.md .pdf Momento Contents Installation and Setup Wrappers Cache Standard Cache Memory Chat Message History Memory Momento# This page covers how to use the Momento ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific Momento wrappers. Installation and Setup# ...
https://python.langchain.com/en/latest/integrations/momento.html
c910e2ce3183-1
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/momento.html
6fb9a52025d1-0
.md .pdf Redis Contents Installation and Setup Wrappers Cache Standard Cache Semantic Cache VectorStore Retriever Memory Vector Store Retriever Memory Chat Message History Memory Redis# This page covers how to use the Redis ecosystem within LangChain. It is broken into two parts: installation and setup, and then refe...
https://python.langchain.com/en/latest/integrations/redis.html
6fb9a52025d1-1
To import this vectorstore: from langchain.vectorstores import Redis For a more detailed walkthrough of the Redis vectorstore wrapper, see this notebook. Retriever# The Redis vector store retriever wrapper generalizes the vectorstore class to perform low-latency document retrieval. To create the retriever, simply call ...
https://python.langchain.com/en/latest/integrations/redis.html
4982a58c6614-0
.md .pdf Google Search Contents Installation and Setup Wrappers Utility Tool Google Search# 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# Install requirements w...
https://python.langchain.com/en/latest/integrations/google_search.html
5a6487b63dd1-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...
https://python.langchain.com/en/latest/integrations/qdrant.html
507ccdeed210-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 ...
https://python.langchain.com/en/latest/integrations/promptlayer.html
507ccdeed210-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 Prediction Guard next Psych...
https://python.langchain.com/en/latest/integrations/promptlayer.html
789b94849f64-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...
https://python.langchain.com/en/latest/integrations/writer.html
9160d2e708ee-0
.md .pdf Beam Contents Installation and Setup Wrappers LLM Define your Beam app. Deploy your Beam app Call your Beam app Beam# This page covers how to use Beam within LangChain. It is broken into two parts: installation and setup, and then references to specific Beam wrappers. Installation and Setup# Create an accoun...
https://python.langchain.com/en/latest/integrations/beam.html
9160d2e708ee-1
This returns the GPT2 text response to your prompt. response = llm._call("Running machine learning on a remote GPU") An example script which deploys the model and calls it would be: from langchain.llms.beam import Beam import time llm = Beam(model_name="gpt2", name="langchain-gpt2-test", cpu=8, ...
https://python.langchain.com/en/latest/integrations/beam.html
77aa3608c1ac-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...
https://python.langchain.com/en/latest/integrations/milvus.html
1cfc57acc471-0
.md .pdf GPT4All Contents Installation and Setup Usage GPT4All Model File GPT4All# This page covers how to use the GPT4All wrapper within LangChain. The tutorial is divided into two parts: installation and setup, followed by usage with an example. Installation and Setup# Install the Python package with pip install py...
https://python.langchain.com/en/latest/integrations/gpt4all.html
1cfc57acc471-1
previous GooseAI next Graphsignal Contents Installation and Setup Usage GPT4All Model File By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/gpt4all.html
53b96d897bc4-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...
https://python.langchain.com/en/latest/integrations/forefrontai.html
85eac5674636-0
.md .pdf SageMaker Endpoint Contents Installation and Setup LLM Text Embedding Models SageMaker Endpoint# Amazon SageMaker is a system that can build, train, and deploy machine learning (ML) models with fully managed infrastructure, tools, and workflows. We use SageMaker to host our model and expose it as the SageMak...
https://python.langchain.com/en/latest/integrations/sagemaker_endpoint.html
85eac5674636-1
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/sagemaker_endpoint.html
b6e77ee39cff-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...
https://python.langchain.com/en/latest/integrations/chroma.html
dec51bc86725-0
.md .pdf Deep Lake Contents Why Deep Lake? More Resources Installation and Setup Wrappers VectorStore Deep Lake# This page covers how to use the Deep Lake ecosystem within LangChain. Why Deep Lake?# More than just a (multi-modal) vector store. You can later use the dataset to fine-tune your own LLM models. Not only s...
https://python.langchain.com/en/latest/integrations/deeplake.html
4557cf7eb543-0
.ipynb .pdf MLflow MLflow# This notebook goes over how to track your LangChain experiments into your MLflow Server !pip install azureml-mlflow !pip install pandas !pip install textstat !pip install spacy !pip install openai !pip install google-search-results !python -m spacy download en_core_web_sm import os os.environ...
https://python.langchain.com/en/latest/integrations/mlflow_tracking.html
4557cf7eb543-1
test_prompts = [ { "title": "documentary about good video games that push the boundary of game design" }, ] synopsis_chain.apply(test_prompts) mlflow_callback.flush_tracker(synopsis_chain) from langchain.agents import initialize_agent, load_tools from langchain.agents import AgentType # SCENARIO 3 - Age...
https://python.langchain.com/en/latest/integrations/mlflow_tracking.html
4365d8490ba8-0
.md .pdf Anyscale Contents Installation and Setup Wrappers LLM Anyscale# This page covers how to use the Anyscale ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific Anyscale wrappers. Installation and Setup# Get an Anyscale Service URL, route and API key a...
https://python.langchain.com/en/latest/integrations/anyscale.html
dda94df019f0-0
.md .pdf Google Serper Contents Setup Wrappers Utility Output Tool Google Serper# 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 broken into two pa...
https://python.langchain.com/en/latest/integrations/google_serper.html
dda94df019f0-1
Yes. Follow up: Who is the reigning men's U.S. Open champion? 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 detail...
https://python.langchain.com/en/latest/integrations/google_serper.html
9539dde2b159-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...
https://python.langchain.com/en/latest/integrations/stochasticai.html
4cded81060f8-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...
https://python.langchain.com/en/latest/integrations/weaviate.html
4cded81060f8-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 WhyLabs Integration Contents Installation and Setup Wrappers VectorStore By Harrison Chase © Copyright 2023, Harrison Chase. ...
https://python.langchain.com/en/latest/integrations/weaviate.html
4a80067854cf-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...
https://python.langchain.com/en/latest/integrations/helicone.html
4a80067854cf-1
Quick start How to enable Helicone caching How to use Helicone custom properties By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/helicone.html
3f8427c33ec7-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...
https://python.langchain.com/en/latest/integrations/unstructured.html
3f8427c33ec7-1
UnstructuredAPIFileIOLoader. That will process your document using the hosted Unstructured API. Note that currently (as of 1 May 2023) the Unstructured API is open, but it will soon require an API. The Unstructured documentation page will have instructions on how to generate an API key once they’re available. Check out...
https://python.langchain.com/en/latest/integrations/unstructured.html
dace9aa96f30-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 ...
https://python.langchain.com/en/latest/integrations/opensearch.html
28b67bd50ff5-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...
https://python.langchain.com/en/latest/integrations/wolfram_alpha.html
8a9c6bd9cfd0-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...
https://python.langchain.com/en/latest/integrations/cohere.html
4a3b2fc0e789-0
.md .pdf Aleph Alpha Contents Installation and Setup LLM Text Embedding Models Aleph Alpha# Aleph Alpha was founded in 2019 with the mission to research and build the foundational technology for an era of strong AI. The team of international scientists, engineers, and innovators researches, develops, and deploys tran...
https://python.langchain.com/en/latest/integrations/aleph_alpha.html
3ba20e934946-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...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
3ba20e934946-1
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, stream_logs: bool = False, NOTE: For...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
3ba20e934946-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...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
3ba20e934946-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...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
3ba20e934946-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...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
3ba20e934946-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...
https://python.langchain.com/en/latest/integrations/wandb_tracking.html
85803132dd1e-0
.md .pdf Blackboard Contents Installation and Setup Document Loader Blackboard# Blackboard Learn (previously the Blackboard Learning Management System) is a web-based virtual learning environment and learning management system developed by Blackboard Inc. The software features course management, customizable open arc...
https://python.langchain.com/en/latest/integrations/blackboard.html
8f446bbe23ba-0
.md .pdf Docugami Contents Docugami What is Docugami? Quick start Advantages vs Other Chunking Techniques Docugami# This page covers how to use Docugami within LangChain. What is Docugami?# Docugami converts business documents into a Document XML Knowledge Graph, generating forests of XML semantic trees representing ...
https://python.langchain.com/en/latest/integrations/docugami.html
8f446bbe23ba-1
Advantages vs Other Chunking Techniques# Appropriate chunking of your documents is critical for retrieval from documents. Many chunking techniques exist, including simple ones that rely on whitespace and recursive chunk splitting based on character length. Docugami offers a different approach: Intelligent Chunking: Doc...
https://python.langchain.com/en/latest/integrations/docugami.html
8f446bbe23ba-2
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/docugami.html
3c19961892d3-0
.md .pdf DeepInfra Contents Installation and Setup Available Models 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 ...
https://python.langchain.com/en/latest/integrations/deepinfra.html
47f4e6b8218e-0
.md .pdf Azure OpenAI Contents Installation and Setup LLM Text Embedding Models Chat Models Azure OpenAI# Microsoft Azure, often referred to as Azure is a cloud computing platform run by Microsoft, which offers access, management, and development of applications and services through global data centers. It provides a...
https://python.langchain.com/en/latest/integrations/azure_openai.html
b8000cc567e7-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...
https://python.langchain.com/en/latest/integrations/ai21.html
99d1ad032cf8-0
.md .pdf Psychic Contents Psychic What is Psychic? Quick start Advantages vs Other Document Loaders Psychic# This page covers how to use Psychic within LangChain. What is Psychic?# Psychic is a platform for integrating with your customer’s SaaS tools like Notion, Zendesk, Confluence, and Google Drive via OAuth and sy...
https://python.langchain.com/en/latest/integrations/psychic.html
99d1ad032cf8-1
By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on May 29, 2023.
https://python.langchain.com/en/latest/integrations/psychic.html
70a730a85ea1-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...
https://python.langchain.com/en/latest/integrations/nlpcloud.html
7435d2975691-0
.md .pdf AnalyticDB Contents VectorStore AnalyticDB# This page covers how to use the AnalyticDB ecosystem within LangChain. VectorStore# There exists a wrapper around AnalyticDB, allowing you to use it as a vectorstore, whether for semantic search or example selection. To import this vectorstore: from langchain.vecto...
https://python.langchain.com/en/latest/integrations/analyticdb.html
d17eb571928d-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...
https://python.langchain.com/en/latest/integrations/bananadev.html
d17eb571928d-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...
https://python.langchain.com/en/latest/integrations/bananadev.html
66820a6a0ebb-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...
https://python.langchain.com/en/latest/integrations/huggingface.html
66820a6a0ebb-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...
https://python.langchain.com/en/latest/integrations/huggingface.html
016e8d9d3a06-0
.ipynb .pdf Rebuff: Prompt Injection Detection with LangChain Contents Use in a chain Rebuff: Prompt Injection Detection with LangChain# Rebuff: The self-hardening prompt injection detector Homepage Playground Docs GitHub Repository # !pip3 install rebuff openai -U REBUFF_API_KEY="" # Use playground.rebuff.ai to get...
https://python.langchain.com/en/latest/integrations/rebuff.html