Current stack
- Cloud Run serves one FastAPI runtime
- Cloud SQL runs Postgres and pgvector
- Vertex AI supplies Gemini generation
gemini-embedding-001supplies text embeddings
Brain keeps a sourced history of the messages, documents, events, and records behind your product. For each request, it returns the material that applies, where it came from, and what remains uncertain.
Save source material with the time it was recorded and where it came from.
source → RecordDerive relationships and versions without erasing the source.
Record → MemoryKeep application-approved Objects separate from derived Memories.
Memory ≠ ObjectReturn the records a request may use, with citations, gaps, conflicts, and cost.
query → ContextCloud Run serves one API. Cloud SQL stores Records, Memories, Objects, and embeddings. Vertex AI derives and ranks. Sources, time, and application decisions remain visible in the result.
gemini-embedding-001 supplies text embeddingsBigQuery can send structured rows through Records, but the managed BigQuery connector is not shipped. Model and embedding upgrades are tested before they replace the current runtime.
Records retain content, stable customer IDs, metadata, and source time.
what enteredMemories retain versions and citations. Objects carry facts your application accepts.
what changedContext selects the evidence this request may use and names what remains unknown.
what applies nowYour warehouse and application remain authoritative for operational data.
The quickstart shows the source, the request, and the returned evidence.