embedding
column is of type vector(1024)
. Vector type is provided by the pg_vector extension for storing embeddings.
By storing embeddings in a tenant-aware table, we can use Nile’s built-in tenant isolation to ensure that
information about PDFs won’t leak between tenants.
create-next-app
for this:
.env.example
to .env.local
, and update it with your workspace and database name.
(Your workspace and database name are displayed in the header of the Nile dashboard.)
Fill in the username and password with the credentials you picked up in the previous step.
And fill in the access keys for UploadThing and OpenAI.
yarn install
or npm install
.