Intent-Driven Retrieval
When you search your memory, CORE doesn’t just keyword match. It first understands what kind of question you’re asking, then routes to the exact search strategy.The 5 Query Types
1. Aspect Query
You’re asking about: A specific type of information Example queries:- “What are my coding preferences?”
- “Show me my decisions about authentication”
- “What are my directives for code review?”
- Extracts which aspects are relevant (Preference, Decision, Directive)
- Vector searches labels to find relevant topics
- Filters statements by aspect within those topics
- Returns structured facts grouped by aspect
2. Entity Lookup
You’re asking about: A specific person, project, technology, or concept Example queries:- “Tell me about Sarah”
- “What do I know about TypeScript?”
- “Show me everything about the CORE project”
- Parses entity name from query
- Finds the Entity node in the graph
- Returns all statements where entity is subject OR object
- Groups by aspect for clarity
3. Temporal Query
You’re asking about: What happened in a specific time range Example queries:- “What happened last week?”
- “Show me my work from January”
- “What did we decide yesterday?”
- Extracts time range from natural language (“last week” → Jan 23-30)
- Filters by
validAt(when fact was recorded) ORoccurredAt(when event happened) - Returns time-bound episodes and statements
4. Exploratory
You’re asking for: Broad context or catch-up Example queries:- “Catch me up on recent work”
- “What have I been working on?”
- “Show me my recent activity”
- Returns recent session summaries (compacted sessions)
- Shows label/topic overviews
- No specific filtering—broad discovery mode
5. Relationship Query
You’re asking about: How two entities are connected Example queries:- “How do I know Sarah?”
- “What’s the connection between TypeScript and CORE?”
- “How is the payment service related to Stripe?”
- Extracts two entity hints from query
- Finds statements connecting both entities (in either direction)
- Can compute shortest path if entities aren’t directly connected
Why This Matters
Traditional RAG:- Same search strategy for all queries
- Searches everything, ranks by similarity
- Slow (1200-2400ms)
- Different search strategy per query type
- Searches only relevant parts of the graph
- 3-4x faster (300-450ms)
