2022-11-04 15:02:21 +00:00
# Glossary
This is a collection of terminology commonly used when developing LLM applications.
2023-01-05 05:39:50 +00:00
It contains reference to external papers or sources where the concept was first introduced,
2022-11-04 15:02:21 +00:00
as well as to places in LangChain where the concept is used.
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Chain of Thought Prompting
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
A prompting technique used to encourage the model to generate a series of intermediate reasoning steps.
2022-11-04 15:02:21 +00:00
A less formal way to induce this behavior is to include “Let’ s think step-by-step” in the prompt.
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Chain-of-Thought Paper ](https://arxiv.org/pdf/2201.11903.pdf )
- [Step-by-Step Paper ](https://arxiv.org/abs/2112.00114 )
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Action Plan Generation
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
A prompt usage that uses a language model to generate actions to take.
2022-11-04 15:02:21 +00:00
The results of these actions can then be fed back into the language model to generate a subsequent action.
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [WebGPT Paper ](https://arxiv.org/pdf/2112.09332.pdf )
- [SayCan Paper ](https://say-can.github.io/assets/palm_saycan.pdf )
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## ReAct Prompting
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
A prompting technique that combines Chain-of-Thought prompting with action plan generation.
This induces the to model to think about what action to take, then take it.
2022-11-04 15:02:21 +00:00
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Paper ](https://arxiv.org/pdf/2210.03629.pdf )
2023-03-27 02:49:46 +00:00
- [LangChain Example ](modules/agents/agents/examples/react.ipynb )
2022-11-04 15:02:21 +00:00
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Self-ask
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
A prompting method that builds on top of chain-of-thought prompting.
In this method, the model explicitly asks itself follow-up questions, which are then answered by an external search engine.
2022-11-04 15:02:21 +00:00
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Paper ](https://ofir.io/self-ask.pdf )
2023-03-27 02:49:46 +00:00
- [LangChain Example ](modules/agents/agents/examples/self_ask_with_search.ipynb )
2022-11-04 15:02:21 +00:00
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Prompt Chaining
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
Combining multiple LLM calls together, with the output of one-step being the input to the next.
Resources:
2022-11-04 15:02:21 +00:00
2022-11-05 15:44:37 +00:00
- [PromptChainer Paper ](https://arxiv.org/pdf/2203.06566.pdf )
- [Language Model Cascades ](https://arxiv.org/abs/2207.10342 )
- [ICE Primer Book ](https://primer.ought.org/ )
2022-11-06 22:10:26 +00:00
- [Socratic Models ](https://socraticmodels.github.io/ )
2022-11-04 15:02:21 +00:00
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Memetic Proxy
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
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.
2022-11-04 15:02:21 +00:00
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Paper ](https://arxiv.org/pdf/2102.07350.pdf )
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Self Consistency
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
A decoding strategy that samples a diverse set of reasoning paths and then selects the most consistent answer.
Is most effective when combined with Chain-of-thought prompting.
2022-11-04 15:02:21 +00:00
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Paper ](https://arxiv.org/pdf/2203.11171.pdf )
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## Inception
2022-11-04 15:02:21 +00:00
2023-01-05 05:39:50 +00:00
Also called “First Person Instruction”.
Encouraging the model to think a certain way by including the start of the model’ s response in the prompt.
2022-11-04 15:02:21 +00:00
Resources:
2023-01-05 05:39:50 +00:00
2022-11-04 15:02:21 +00:00
- [Example ](https://twitter.com/goodside/status/1583262455207460865?s=20&t=8Hz7XBnK1OF8siQrxxCIGQ )
2022-12-09 20:40:24 +00:00
Docs refactor (#480)
Big docs refactor! Motivation is to make it easier for people to find
resources they are looking for. To accomplish this, there are now three
main sections:
- Getting Started: steps for getting started, walking through most core
functionality
- Modules: these are different modules of functionality that langchain
provides. Each part here has a "getting started", "how to", "key
concepts" and "reference" section (except in a few select cases where it
didnt easily fit).
- Use Cases: this is to separate use cases (like summarization, question
answering, evaluation, etc) from the modules, and provide a different
entry point to the code base.
There is also a full reference section, as well as extra resources
(glossary, gallery, etc)
Co-authored-by: Shreya Rajpal <ShreyaR@users.noreply.github.com>
2023-01-02 16:24:09 +00:00
## MemPrompt
2022-12-09 20:40:24 +00:00
MemPrompt maintains a memory of errors and user feedback, and uses them to prevent repetition of mistakes.
Resources:
2023-01-05 05:39:50 +00:00
2022-12-09 20:40:24 +00:00
- [Paper ](https://memprompt.com/ )