### Run server with Poetry Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Example command to run the NeMo Guardrails server when using Poetry. ```shell poetry run nemoguardrails server --config examples/configs ``` -------------------------------- ### Install the NeMo Guardrails library Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Install the NeMo Guardrails library using pip. Ensure NVIDIA_API_KEY is set. ```shell pip install nemoguardrails ``` -------------------------------- ### Install from source using pip Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Install the NeMo Guardrails library from source using pip for development or the latest version. ```shell git clone https://github.com/NVIDIA-NeMo/Guardrails.git nemoguardrails cd nemoguardrails python -m venv .venv source .venv/bin/activate pip install -e . ``` -------------------------------- ### Install from source using Poetry Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Install the NeMo Guardrails library from source using Poetry for development or the latest version. ```shell git clone https://github.com/NVIDIA-NeMo/Guardrails.git nemoguardrails cd nemoguardrails python -m venv .venv source .venv/bin/activate poetry install ``` -------------------------------- ### Set up NVIDIA API key environment variable Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Set the NVIDIA_API_KEY environment variable, required for accessing NVIDIA-hosted models. ```shell export NVIDIA_API_KEY="your-nvidia-api-key" ``` -------------------------------- ### Create and activate a virtual environment (Linux/macOS) Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Steps to create and activate a Python virtual environment on Linux or macOS. ```shell python3 -m venv .venv source .venv/bin/activate ``` -------------------------------- ### Create and activate a virtual environment (Windows Git Bash) Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Steps to create and activate a Python virtual environment on Windows using Git Bash. ```shell python -m venv .venv source .venv/Scripts/activate ``` -------------------------------- ### Install C++ compiler and Python development headers (Linux) Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Command to install a C++ compiler and Python development headers on Debian-based Linux systems. ```shell apt-get install gcc g++ python3-dev ``` -------------------------------- ### Check C++ compiler (Windows) Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Command to check if a C++ compiler is installed on Windows. ```shell where cl ``` -------------------------------- ### Check C++ compiler version (Linux/macOS) Source: https://docs.nvidia.com/nemo/guardrails/getting-started/installation-guide.html Command to check if a C++ compiler is installed on Linux or macOS. ```shell g++ --version ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.