Skip to main content
Use TablePlus to inspect the tables Agno creates in your pgvector container: sessions, memories, and knowledge embeddings.

Step 1: Start Your pgvector Container

  • POSTGRES_DB=ai sets the default database name.
  • POSTGRES_USER=ai and POSTGRES_PASSWORD=ai define the database credentials.
  • The container exposes port 5432, mapped to 5532 on your local machine.

Step 2: Create the Session Table

Agno creates database tables when a database-backed feature first uses them. Run this example to create the default agno_sessions table:
create_session.py
1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code as create_session.py, then run:
Only table types exercised against this database appear. Run the Postgres memory guide to create memory tables and the PgVector guide to create knowledge tables.

Step 3: Configure TablePlus

  1. Launch TablePlus.
  2. Click the + icon to add a new connection.
  3. Choose PostgreSQL as the database type.
Fill in the connection details:
  • Host: localhost
  • Port: 5532
  • Database: ai
  • User: ai
  • Password: ai
TablePlus PostgreSQL connection settings