Three Memory Architectures for AI Companions: pgvector, Scratchpad, and Filesystem

Reddit r/artificial / 4/7/2026

💬 OpinionIdeas & Deep AnalysisTools & Practical Usage

Key Points

  • The article compares three different memory architectures for AI companions: pgvector-based vector storage, a “Scratchpad” approach, and a filesystem-based method.
  • It explains how each architecture handles storing, retrieving, and reusing prior context to improve continuity and personalization in companion-style interactions.
  • It highlights practical trade-offs among the options, such as retrieval quality, latency, implementation complexity, and how well each scales with more memories.
  • The piece frames “memory” as an architectural choice that directly affects user experience outcomes like coherence over time and task consistency.