-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
Problem
Hindsight appears to have excellent documentation for basic usage, but it feels like it lacks practical examples for integration with popular CMS platforms. Many developers want to use Hindsight for blog/content memory (I believe), but there are no documented patterns for:
- Syncing content from CMS to Hindsight
- Structuring blog post data for optimal recall
- Implementing temporal queries for content (e.g., "posts from January 2025")
- Tag-based memory organization
- Related content discovery
Proposed Solution
Add new cookbook recipes under cookbook/recipes/cms-integrations/ with examples for:
-
Sanity CMS
- Blog post sync script (TypeScript)
- Optimal data structure for blog memory
- Recall query examples (semantic search, temporal queries, tag-based)
- Reflect operation examples (content insights)
- Docker Compose setup for easy testing
-
Contentful
-
WordPress
Benefits
- Helps developers integrate Hindsight with their CMS
- Documents best practices for blog/content memory
- Provides reusable patterns for content-based applications
- Expands Hindsight use cases beyond chat/conversation memory
- Shows real-world production usage
What I've Tested
I've tested Hindsight with Sanity CMS and have working code for:
- Syncing blog posts from Sanity to Hindsight
- Recall queries for related content (semantic search)
- Temporal queries ("What did I write in January 2025?")
- Tag-based recall ("Posts about AI agents")
- Reflect operations for content insights
- Integration with Qwik framework (server-side)
Test Results:
- 3 blog posts synced successfully
- Recall: 14 relevant memories per query (1-2s latency)
- Reflect: High-quality insights (2-3s latency)
- LLM Provider: Gemini 2.5 Flash (free tier)
- Cost: $0 (within free tier limits)
Proposed Structure
cookbook/recipes/cms-integrations/
└── sanity/
├── README.md # Complete guide
├── sync-blog-posts.ts # Sync script
├── query-examples.ts # Recall/reflect examples
├── docker-compose.yml # Easy setup
├── .env.example # Configuration template
└── package.json # Dependencies
fabioscarsi
Metadata
Metadata
Assignees
Labels
No labels