tenants
table that is built-in to Nile.
Next, you’ll want to pick up your database connection string: Navigate to the “Settings” page, select “Connections” and click “Generate credentials”.
Copy the connection string and keep it in a secure location.
To use Nile in your application, you’ll also need to install Psycopg2, a Python library for interacting with Postgres.
And since we’ll be using vector embeddings, it helps to have pgvector’s Python client installed as well.
You can install it with the following command:
cohere_nile_quickstart.py
.
We’ll start by setting up the Cohere client: