Setting Up Your Environment

This page introduces Secret AI SDK, provides guidance and examples how to use Secret AI SDK.

Secret AI SDK is a developer preview and is not intended for production use.

Secret AI SDK is an advanced security layer designed to integrate seamlessly with LangChain's ChatOllama, ensuring a secure and efficient API interaction. To begin utilizing Secret AI SDK with LangChain's ChatOllama, follow these installation and configuration steps:

Install Requirements

To follow along with the guide, we will be using Anaconda and Python 3.12.

  1. Install Anaconda for Windows, Mac, or Linux.

  2. Clone the Secret AI getting started repository here:

git clone https://github.com/SecretFoundation/secret-ai-getting-started.git

Create Anaconda virtual environment

In your text editor, create an Anaconda virtual environment with Python 3.12:

conda create -n menv python=3.12

Activate the virtual environment:

conda activate menv

Install Secret AI dependencies

pip install -r requirements.txt && pip install 'secret-sdk>=1.8.1' && pip install secret-ai-sdk

Set developer key

export SECRET_AI_API_KEY=bWFzdGVyQHNjcnRsYWJzLmNvbTpTZWNyZXROZXR3b3JrTWFzdGVyS2V5X18yMDI1

Master key is available for developer preview; later on developers will be able to request individual API keys through the developer portal.

Last updated