Principle:42 evey Hermes plugins Fact Extraction
| Knowledge Sources | |
|---|---|
| Domains | Memory_Consolidation, Fact_Extraction, LLM_Processing |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
A memory consolidation step that uses an LLM to extract 3-5 key facts from conversation trace summaries, producing structured fact lines with category tags for downstream scoring and storage.
Description
Fact Extraction transforms raw conversation traces into structured knowledge. The trace summaries are fed into an extraction prompt that asks the LLM to identify 3-5 novel, useful facts and format them as "- [category] fact" where category is one of: learned, decided, discovered, created, fixed.
The extraction prompt enforces:
- Novelty filter: Skip greetings, errors, and routine tool calls
- Compact format: Max 15 words per fact, no filler words
- Specificity: Be specific and terse, skip trivial or repetitive items
The extracted facts are then scored for importance and stored in MEMORY.md. Only facts scoring ≥5 are kept, ensuring the memory file doesn't fill with trivia.
Usage
Use this principle when building memory systems that need to distill conversations into durable knowledge. The structured format (category-tagged facts) enables downstream filtering and categorization. Suitable for nightly consolidation pipelines.
Theoretical Basis
The extraction pipeline:
Failed to parse (syntax error): {\displaystyle \text{traces} \xrightarrow{\text{LLM prompt}} \text{facts} = \{\text{"- [category] fact"}_1, \ldots, \text{"- [category] fact"}_n\} }
# Abstract pattern (NOT real implementation)
EXTRACT_PROMPT = """Extract 3-5 key facts from these conversation traces.
Rules:
- Only novel, useful facts (not greetings, errors, tool calls)
- Format: "- [category] fact" where category is: learned, decided, discovered, created, fixed
- Max 15 words per fact, compact language
TRACES: {traces}
KEY FACTS:"""
facts = call_llm(EXTRACT_PROMPT.format(traces=trace_summaries[:15]))
# Output: "- [learned] qwen35-4b handles simple tasks well\n- [decided] use local model for research"
The category tags enable downstream systems to filter by fact type — e.g., prioritizing "decided" facts (decisions) over "discovered" facts (observations).