Database
Nysa requires you to have a Postgres database running with the pgvector extension for semantic search.
This can easily be done with a Docker command:
docker run -d --rm \ --name nysa-postgres \ -e POSTGRES_USER=nysa \ -e POSTGRES_PASSWORD=test-password \ -e POSTGRES_DB=nysa \ -p 5432:5432 \ pgvector/pgvector:0.8.1-pg18-trixieNote that the --rm flag means that the Docker container, its volumes, and its networks will be deleted on docker stop. If you do not want this behavior, omit the --rm flag.
After that, create a config.toml file (wherever you’ll launch Nysa from) with the following category and field:
[database]url = "postgres://nysa:test-password@localhost:5432/nysa"That easy! Now you can go ahead and set up a provider API Nysa.