### Install Rasa Pro and Core Dependencies Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Install `uv` and then use it to install `rasa-pro` from the specified package index, along with other project dependencies. ```bash pip install uv uv pip install rasa-pro --extra-index-url=https://europe-west3-python.pkg.dev/rasa-releases/rasa-pro-python/simple/ ``` -------------------------------- ### Start Rasa Action Server with make Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Use the `make rasa-actions` command as a shortcut to start the Rasa action server, enabling custom actions defined in the `actions` directory. ```commandline make rasa-actions ``` -------------------------------- ### Install Qdrant Data Ingestion Dependencies Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Install Python dependencies required for uploading data to Qdrant, typically from `qdrant-requirements.txt`. ```bash pip install uv uv pip install -r qdrant-requirements.txt ``` -------------------------------- ### Start Rasa Action Server (Full Command) Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md The full `rasa run actions` command to start the Rasa action server. ```commandline rasa run actions ``` -------------------------------- ### Setup Local Qdrant Docker Instance Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Pull and run a Qdrant Docker container, mapping ports and mounting a volume for persistent storage, for use with extractive search. ```docker docker pull qdrant/qdrant docker run -p 6333:6333 -p 6334:6334 \ -v $(pwd)/qdrant_storage:/qdrant/storage:z \ qdrant/qdrant ``` -------------------------------- ### Run Duckling Server with Docker Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Start a Duckling server instance using Docker, mapping port 8000 to allow the bot to use it for entity extraction. This is an alternative to `make run-duckling`. ```docker docker run -p 8000:8000 rasa/duckling ``` -------------------------------- ### Configure Custom Information Retriever Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Example YAML configuration for `config.yml` to specify a custom information retriever component, such as `Qdrant_Store`, within the Rasa policies. ```yaml policies: - name: FlowPolicy - name: EnterpriseSearchPolicy vector_store: type: "addons.qdrant.Qdrant_Store" ``` -------------------------------- ### Setup recurrent payment Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Sets up recurring payments which can either be a direct debit or a standing order. ```APIDOC Skill Group: Transactions Flow Name: Setup recurrent payment Description: Sets up recurring payments which can either be a direct debit or a standing order. Flow File: data/flows/setup_recurrent_payment.yml Domain File: domain/flows/setup_recurrent_payment.yml ``` -------------------------------- ### Interact with Rasa Bot via CLI Shell Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Start a command-line interface shell to interact with the trained Rasa assistant, with debug output enabled. ```commandline rasa shell --debug ``` -------------------------------- ### Manage Open Telemetry Collector Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Start the Open Telemetry collector as a Docker container (`otel-collector`) to collect and export traces and metrics. An optional health check command is also provided, along with a command to print collector logs for troubleshooting. ```commandline make run-otel-collector ``` ```commandline make otel-collector-health-check ``` ```commandline make print-otel-collector-logs ``` -------------------------------- ### Navigate to Project Directory Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Change the current working directory to the cloned Rasa Calm demo repository. ```bash cd rasa-calm-demo ``` -------------------------------- ### Interact with Rasa Bot via Inspector GUI Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Launch the Rasa Inspector GUI for a visual, debug-enabled interaction with the trained assistant. ```commandline rasa inspect --debug ``` -------------------------------- ### Train Rasa Bot with make Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Use the `make rasa-train` command as a shortcut to train the Rasa model using the default configuration. ```commandline make rasa-train ``` -------------------------------- ### Configure Environment Variables Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Create a `.env` file in the project root to store sensitive keys and URLs required by the bot, such as Rasa Pro license, OpenAI API key, and Duckling server URL. ```bash RASA_PRO_LICENSE= OPENAI_API_KEY= RASA_DUCKLING_HTTP_URL= ``` -------------------------------- ### Train Rasa Bot with Qdrant for Enterprise Search Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Train the Rasa model using an alternative configuration that integrates Qdrant for enterprise search and extractive search capabilities. ```commandline make rasa-train-qdrant ``` -------------------------------- ### Correct Order Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md This entry is incomplete in the provided text. ```APIDOC Skill Group: Ordering Pizza Flow Name: Correct Order Description: This entry is incomplete in the provided text. Flow File: N/A Domain File: N/A ``` -------------------------------- ### Train Rasa Bot for Multistep Command Generation Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Train the Rasa model using an alternative configuration optimized for multistep command generation. ```commandline make rasa-train-multistep ``` -------------------------------- ### Train Rasa Bot (Full Command) Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md The full `rasa train` command specifying the configuration, domain, and data paths for training the Rasa model. ```commandline rasa train -c config/config.yml -d domain --data data ``` -------------------------------- ### Ingest Data to Qdrant Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Run the Python script to load data from the SQUAD dataset into the Qdrant instance for extractive search. ```python python scripts/load-data-to-qdrant.py ``` -------------------------------- ### Run E2E Tests for Repeat Command Feature Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute end-to-end tests specifically designed for the Repeat Command feature. Ensure the `RASA_PRO_BETA_REPEAT_COMMAND` environment variable is set to `true` to enable the feature before running these tests. ```commandline make test-repeat-command ``` -------------------------------- ### Run a Single E2E Test for Rasa Demo Bot Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute a specific individual end-to-end test. This requires setting an environment variable `target` with the test path before running `make rasa-test-one`, or directly providing the path to `rasa test`. ```commandline export target=e2e_tests/path/to/a/target/test.yml make rasa-test-one ``` ```commandline rasa test e2e e2e/tests/path/to/a/target/test.yml ``` -------------------------------- ### Order Pizza Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Allows users to order a pizza. ```APIDOC Skill Group: Ordering Pizza Flow Name: Order Pizza Description: Allows users to order a pizza. Flow File: data/flows/order_pizza.yml Domain File: domain/flows/order_pizza.yml ``` -------------------------------- ### Set Open Telemetry Resource Attributes Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Configure Open Telemetry resource attributes to map traces and metrics to the Rasa Pro version, Git branch, and commit hash. This can be done using a `make` command or by manually setting the `OTEL_RESOURCE_ATTRIBUTES` environment variable. ```commandline make set-otel-resource-attributes ``` ```commandline export OTEL_RESOURCE_ATTRIBUTES=key1=value,key2=value2,key-n=value-n ``` -------------------------------- ### Fill pizza order details Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md User is asked to fill out pizza order details. ```APIDOC Skill Group: Ordering Pizza Flow Name: Fill pizza order details Description: User is asked to fill out pizza order details. Flow File: data/flows/order_pizza.yml Domain File: domain/flows/order_pizza.yml ``` -------------------------------- ### Run a Single E2E Test with Assertions Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute a specific end-to-end test that includes assertions by providing its full path to the `rasa test` command within the `e2e_tests_with_assertions` directory. ```commandline rasa test e2e e2e_tests_with_assertions/tests/path/to/a/target/test.yml ``` -------------------------------- ### Run E2E Tests for Multistep Command Generation Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute end-to-end tests specifically relevant to multistep command generation. This can be achieved using either `make rasa-test-multistep` or `rasa test e2e e2e_tests/multistep`. ```commandline make rasa-test-multistep ``` ```commandline run rasa test e2e e2e_tests/multistep ``` -------------------------------- ### Run All E2E Tests with Assertions Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md After enabling E2E assertions, execute all end-to-end tests that include assertion checks using the `rasa test` command with the `e2e_tests_with_assertions` path. ```commandline rasa test e2e e2e_tests_with_assertions ``` -------------------------------- ### Enable E2E Assertions for Rasa Pro Beta Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md To enable the E2E assertions feature for Rasa Pro Beta, set the `RASA_PRO_BETA_E2E_ASSERTIONS` environment variable to `true` in your testing environment. ```commandline export RASA_PRO_BETA_E2E_ASSERTIONS=true ``` -------------------------------- ### Use membership points Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md User asks to use membership or loyalty points. ```APIDOC Skill Group: Ordering Pizza Flow Name: Use membership points Description: User asks to use membership or loyalty points. Flow File: data/flows/order_pizza.yml Domain File: domain/flows/order_pizza.yml ``` -------------------------------- ### Configure LLMCommandGenerator in Rasa Pipeline Source: https://github.com/rasahq/rasa-calm-demo/blob/main/data/prompts/PROMPT_README.md This YAML configuration snippet demonstrates how to include the `LLMCommandGenerator` component in a Rasa `config.yml` file. It specifies the component's name and the path to the Jinja2 prompt file that the Large Language Model will use for command generation. ```YAML name: LLMCommandGenerator prompt: path_to_prompt_file.jinja2 ``` -------------------------------- ### Set Python Version with pyenv Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Configure the local Python environment to use version 3.10.12, typically with pyenv or another version management tool. ```bash pyenv local 3.10.12 ``` -------------------------------- ### Verify account Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Verify an account for higher transfer limits. ```APIDOC Skill Group: Transactions Flow Name: Verify account Description: Verify an account for higher transfer limits. Flow File: data/flows/verify_account.yml Domain File: domain/flows/verify_account.yml ``` -------------------------------- ### Run All E2E Tests for Rasa Demo Bot Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute all end-to-end tests for the Rasa demo bot, categorized by CALM functionalities. This can be done using either the `make rasa-test` command or the `rasa test e2e e2e_tests` CLI command. ```commandline make rasa-test ``` ```commandline rasa test e2e e2e_tests ``` -------------------------------- ### Run Specific E2E Test Categories (Passing, Failing, Flaky) Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Run specific categories of end-to-end tests, such as only passing, only failing, or only flaky tests. Both `make` commands and direct `rasa test` CLI commands are provided for flexibility. ```commandline make rasa-test-passing make rasa-test-failing make rasa-test-flaky ``` ```commandline run rasa test e2e e2e_tests/passing run rasa test e2e e2e_tests/failing run rasa test e2e e2e_tests/flaky ``` -------------------------------- ### Replace card Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Replace the user's card. ```APIDOC Skill Group: Transactions Flow Name: Replace card Description: Replace the user's card. Flow File: data/flows/replace_card.yml Domain File: domain/flows/replace_card.yml ``` -------------------------------- ### Add new contact Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Adds a new contact to the user's list. ```APIDOC Skill Group: Contacts Flow Name: Add new contact Description: Adds a new contact to the user's list. Flow File: data/flows/add_contact.yml Domain File: domain/flows/add_contact.yml ``` -------------------------------- ### Check account balance Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Allows users to check their current account balance. ```APIDOC Skill Group: Transactions Flow Name: Check account balance Description: Allows users to check their current account balance. Flow File: data/flows/check_balance.yml Domain File: domain/flows/check_balance.yml ``` -------------------------------- ### List transactions Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md List the last user's transactions. ```APIDOC Skill Group: Transactions Flow Name: List transactions Description: List the last user's transactions. Flow File: data/flows/transaction_search.yml Domain File: domain/flows/transaction_search.yml ``` -------------------------------- ### List contacts Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md List all of user's saved contacts. ```APIDOC Skill Group: Contacts Flow Name: List contacts Description: List all of user's saved contacts. Flow File: data/flows/list_contacts.yml Domain File: domain/flows/list_contacts.yml ``` -------------------------------- ### Run Specific E2E Tests with Assertions (Passing, Failing, Flaky) Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Execute specific categories of end-to-end tests that include assertions, such as only passing, only failing, or only flaky tests. These commands target the `e2e_tests_with_assertions` directory. ```commandline rasa test e2e e2e_tests_with_assertions/passing rasa test e2e e2e_tests_with_assertions/failing rasa test e2e e2e_tests_with_assertions/flaky ``` -------------------------------- ### Replace eligible card Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Replace the user's card that meets specific eligibility criteria. This is a flow link exclusively accessed by replace_card flow ```APIDOC Skill Group: Transactions Flow Name: Replace eligible card Description: Replace the user's card that meets specific eligibility criteria. This is a flow link exclusively accessed by replace_card flow Flow File: data/flows/replace_eligible_card.yml Domain File: N/A ``` -------------------------------- ### Transfer money Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Facilitates the transfer of funds to user's contacts. ```APIDOC Skill Group: Transactions Flow Name: Transfer money Description: Facilitates the transfer of funds to user's contacts. Flow File: data/flows/transfer_money.yml Domain File: domain/flows/transfer_money.yml ``` -------------------------------- ### Remove contact Flow Source: https://github.com/rasahq/rasa-calm-demo/blob/main/README.md Removes selected contact from the user's list. ```APIDOC Skill Group: Contacts Flow Name: Remove contact Description: Removes selected contact from the user's list. Flow File: data/flows/remove_contact.yml Domain File: domain/flows/remove_contact.yml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.