# Deploy your Rell module · Semantic search on Chromia using Vector DB · Learn Chromia

> Once chromia.yml is configured, the container is leased, and the deployment key exists, you can deploy your Rell module to the Chromia testnet.

Source: https://chromia.com/learn/vector-db-movie-demo/setup/deploy-rell-module/

Semantic search on Chromia using Vector DBLesson 5 of 15

1. [01Searching movies semantically on Chromia](https://chromia.com/learn/vector-db-movie-demo/introduction/)

Module 1: Project setup

1. [02Overview](https://chromia.com/learn/vector-db-movie-demo/setup/)
2. [03Choose an embedding model](https://chromia.com/learn/vector-db-movie-demo/setup/embedding-model/)
3. [04Configure your Rell module](https://chromia.com/learn/vector-db-movie-demo/setup/configure.rell/)
4. [05Deploy your Rell module](https://chromia.com/learn/vector-db-movie-demo/setup/deploy-rell-module/)
5. [06Finalize your Python environment](https://chromia.com/learn/vector-db-movie-demo/setup/finalize-python-env/)

Module 2: Running the data pipeline

1. [07Overview](https://chromia.com/learn/vector-db-movie-demo/data-pipeline/)
2. [08Preprocess movie data](https://chromia.com/learn/vector-db-movie-demo/data-pipeline/preprocess/)
3. [09Generate sentence embeddings](https://chromia.com/learn/vector-db-movie-demo/data-pipeline/generate-embeddings/)
4. [10Store vectors on the blockchain](https://chromia.com/learn/vector-db-movie-demo/data-pipeline/upload-vectors/)

1. [11Search the vector database](https://chromia.com/learn/vector-db-movie-demo/search/)

Module 4: A deep dive into the code

1. [12Overview](https://chromia.com/learn/vector-db-movie-demo/code-deep-dive/)
2. [13Link your data to the Vector DB with Rell](https://chromia.com/learn/vector-db-movie-demo/code-deep-dive/rell-interface/)
3. [14Work with Chromia through the Python client](https://chromia.com/learn/vector-db-movie-demo/code-deep-dive/python-client/)

1. [15Use cases and extensions](https://chromia.com/learn/vector-db-movie-demo/use-cases/)

[Learn](https://chromia.com/learn/)[Semantic search on Chromia using Vector DB](https://chromia.com/learn/vector-db-movie-demo/)

05 / 15Module 1: Project setupAdvanced

# Deploy your Rell module

Once `chromia.yml` is configured, the container is leased, and the deployment key exists, you can deploy your Rell module to the Chromia testnet.

## Install and build

From the `rell/` folder, run:

bash

```nolines
chr install      # Installs the vector_db library declared in chromia.yml
chr build        # Compiles your Rell module and validates the syntax
```

This installs the required dependencies and compiles the module so it is ready to deploy.

## Deploy the module

Deploy the module with this command:

bash

```nolines
chr deployment create --settings chromia.yml --network testnet --blockchain <your-chain-name> --key-id="vector_db_demo_key"
```

* Replace `<your-chain-name>` with the same name you used under `blockchains:` in `chromia.yml`.
* Set `--key-id` to the key you created earlier (`vector_db_demo_key`).

## Update `chromia.yml`

When the deployment finishes, the CLI prints a `chains:` section. It looks similar to this:

yaml

```
deployments:
  testnet:
    brid: x"<directory-brid>"
    url: https://node0.testnet.chromia.com:7740
    container: <your-container-id>
    # After deployment, insert the generated `chains:` section here
    chains:
      <your-chain-name>: x"<your-blockchain-rid>"
```

Copy that `chains:` block as-is into `chromia.yml`, under the `testnet` deployment entry. Do not edit it or swap in placeholders.

info

Your Python `.env` file will need the blockchain RID shortly. Copy it now, or look it up in `chromia.yml` when you need it.

## Verify the setup

Check that your configuration is valid by running:

bash

```nolines
chr deployment update --settings chromia.yml --network testnet --blockchain <your-chain-name> --key-id="vector_db_demo_key"
```

With a correct setup, the command succeeds even when there is nothing to change. That confirms your deployment and configuration can accept future updates.

## What’s next?

Your Rell module is deployed and `chromia.yml` is configured. The next step is to finish setting up your Python environment.

Written for this site from Chromia’s public course. Code samples are the course’s own.

[← Previous**Configure your Rell module**](https://chromia.com/learn/vector-db-movie-demo/setup/configure.rell/)[Next →**Finalize your Python environment**](https://chromia.com/learn/vector-db-movie-demo/setup/finalize-python-env/)

On this page

* [Install and build](#install-and-build)
* [Deploy the module](#deploy-the-module)
* [Update chromia.yml](#update-chromiayml)
* [Verify the setup](#verify-the-setup)
* [What’s next?](#whats-next)
