Loom link: https://www.loom.com/share/6ffc496cf8e5476abe2ee84b3193d168
Streamlit dashboard for exploring brokerage accounts, events, semantic search, and follow-up planning backed by Postgres + pgvector.
- 📊 Dashboard KPIs and activity charts
- 🔍 Natural-language query engine over events
- 👥 Accounts browser and event timeline
- 📅 Follow-up agent plan generation
- 🗄️ Database schema browser
- Python 3.10+
- PostgreSQL with
pgvectorextension - API keys for Anthropic and Voyage (for LLM + embeddings)
- Create a virtualenv and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install streamlit pandas plotly psycopg2-binary asyncpg anthropic httpx
- Configure environment variables:
export DATABASE_URL="postgresql://localhost/memory_system"
export ANTHROPIC_API_KEY="your-anthropic-key"
export VOYAGE_API_KEY="your-voyage-key"
- Initialize the database:
createdb memory_system
psql "$DATABASE_URL" -f schema.sql
streamlit run app.py
Populates events.content_embedding for semantic search:
python generate_embeddings.py
python followup_agent.py
app.pyusesquery_v2.pyandfollowup_agent.pyvia subprocess.DATABASE_URLdefaults topostgresql://localhost/memory_systemif unset.- If you skip embeddings, semantic search will be limited.