Structured RAG is better than RAG!
summary
Claim: Structured RAG replaces vector embeddings with LLM-extracted knowledge nuggets (entities, actions, topics) stored in SQL, giving higher recall/precision than a 60% recall vector baseline and shifting cost to ingestion so queries run faster. The pipeline uses a TypeScript schema prompt to generate JSON for ingestion and for query-plan generation, demonstrated on ~500 emails and a live demo. The open source Python package (type-agent-pi v0.3.0) provides create_conversation, add_messages, and conversation.query but currently requires an OpenAI key.
AI-written summary · about
