forked from RasaHQ/rasa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
2,354 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Organization and project keys are displayed in the right sidebar of the project homepage | ||
sonar.organization=rasahq | ||
sonar.projectKey=RasaHQ_rasa | ||
sonar.host.url=https://sonarcloud.io/project/overview?id=RasaHQ_rasa | ||
|
||
sonar.python.coverage.reportPaths=./tests_coverage/coverage.xml | ||
|
||
# relative paths to source directories. More details and properties are described | ||
sonar.tests=./tests/ | ||
sonar.verbose=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,7 @@ excluded_words: | |
- knowledgebase | ||
- knowledgebasebot | ||
- linenos | ||
- llm | ||
- luis | ||
- matmul | ||
- mattermost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update wording in Rasa Pro installation page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Skip executing the pipeline when the user message is of the form /intent or /intent + entities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove tensorflow-addons from dependencies as it is now deprecated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `rasa_events` to the list of anonymizable structlog keys and rename structlog keys. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Introduce a validation step in `rasa data validate` and `rasa train` commands to identify non-existent paths and empty domains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add building multi-platform Docker image (amd64/arm64) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Switch struct log to `FilteringBoundLogger` in order to retain log level set in the config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Rich responses containing buttons with parentheses characters are now correctly parsed. | ||
Previously any characters found between the first identified pair of `()` in response button took precedence. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Added metadata as an additional argument as an additional parameter to an | ||
`Action`s `run` method. | ||
|
||
Added an additional default action called `action_send_text` which allows | ||
a policy to respond with a text. The text is passed to the action using the | ||
metadata, e.g. `metadata={"message": {"text": "Hello"}}`. | ||
|
||
Added LLM utility functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Updated docs on sending Conversation Events to Multiple DBs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Corrected [action server api](https://rasa.com/docs/rasa/pages/action-server-api/) sample in docs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
id: large-language-models | ||
sidebar_label: LLMs in Rasa | ||
title: Using LLMs with Rasa | ||
className: hide | ||
abstract: | ||
--- | ||
|
||
import RasaLabsLabel from "@theme/RasaLabsLabel"; | ||
import RasaLabsBanner from "@theme/RasaLabsBanner"; | ||
|
||
<RasaLabsLabel /> | ||
|
||
<RasaLabsBanner version="3.7.0b1" /> | ||
|
||
As part of a beta release, we have released multiple components | ||
which make use of the latest generation of Large Language Models (LLMs). | ||
This document offers an overview of what you can do with them. | ||
We encourage you to experiment with these components and share your findings with us. | ||
We are working on some larger changes to the platform that leverage LLMs natively. | ||
Please reach out to us if you'd like to learn more about upcoming changes. | ||
|
||
|
||
## LLMs can do more than just NLU | ||
|
||
The recent advances in large language models (LLMs) have opened up new | ||
possibilities for conversational AI. LLMs are pretrained models that can be | ||
used to perform a variety of tasks, including intent classification, | ||
dialogue handling, and natural language generation (NLG). The components described | ||
here all use in-context learning. In other words, instructions and examples are | ||
provided in a prompt which are sent to a general-purpose LLM. They do not require | ||
fine-tuning of large models. | ||
|
||
### Plug & Play LLMs of your choice | ||
|
||
Just like our NLU pipeline, the LLM components here can be configured to use different | ||
LLMs. There is no one-size-fits-all best model, and new models are being released every | ||
week. We encourage you to try out different models and evaluate their performance on | ||
different languages in terms of fluency, accuracy, and latency. | ||
|
||
### An adjustable risk profile | ||
|
||
The potential and risks of LLMs vary per use case. For customer-facing use cases, | ||
you may not ever want to send generated text to your users. Rasa gives you full | ||
control over where and when you want to make use of LLMs. You can use LLMs for NLU and | ||
dialogue, and still only send messages that were authored by a human. | ||
You can also allow an LLM to rephrase your existing messages to account for context. | ||
|
||
It's essential that your system provides full | ||
control over these processes. Understanding how LLMs and other components | ||
behave and have the power to override any decision. | ||
|
||
## Where to go from here | ||
|
||
This section of the documentation guides you through the diverse ways you can | ||
integrate LLMs into Rasa. We will delve into the following topics: | ||
|
||
1. [Setting up LLMs](./llm-setup.mdx) | ||
2. [Intentless Policy](./llm-intentless.mdx) | ||
4. [LLM Intent Classification](./llm-intent.mdx) | ||
5. [Response Rephrasing](./llm-nlg.mdx) | ||
|
||
Each link will direct you to a detailed guide on the respective topic, offering | ||
further depth and information about using LLMs with Rasa. By the end of this | ||
series, you'll be equipped to effectively use LLMs to augment your Rasa | ||
applications. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.