Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Python Remove topic Python Clear all 6 posts RSS

2024

Supabase

Implementing semantic image search with Amazon Titan and Supabase Vector

How-to 5 min +50 XP

Semantic image search can be built in Python by generating 1024-dimensional embeddings for images with the Amazon Titan multimodal embedding model (amazon.titan-embed-image-v1) via Amazon Bedrock, then storing and querying them in Supabase Vector (Postgres with pgvector) using the vecs client.

2023

Supabase

GitHub OAuth in your Python Flask app

How-to 3 min +30 XP

Adding GitHub OAuth login to a Flask app with supabase-py comes down to three pieces: a custom FlaskSessionStorage class that extends gotrue's SyncSupportedStorage so the JWT session lives in Flask's session, a per-request Supabase client stored on Flask's g object with flow_type set to PKCE for server-side OAuth handling, and two routes.

2022

The quest for software engineering knowledge.

Look:
Layout: