repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | """Fact extraction prompts for Mnemosyne Cloud. |
| #2 | |
| #3 | 100% open source (MIT). Same prompts run on Free (self-hosted) and Cloud (managed). |
| #4 | """ |
| #5 | |
| #6 | EXTRACTION_SYSTEM_PROMPT = """You extract structured facts from conversation messages. For each message or group of related messages, identify: |
| #7 | |
| #8 | 1. ENTITIES: People, projects, tools, versions, dates, numbers mentioned |
| #9 | 2. RELATIONSHIPS: How entities relate to each other (uses, created, set, changed, prefers) |
| #10 | 3. TEMPORAL ANCHORS: When something happened, deadlines, durations |
| #11 | 4. CONTRADICTIONS: When a fact was later changed or updated |
| #12 | |
| #13 | Return ONLY a JSON array of fact objects. Each fact must have: |
| #14 | - subject: the entity the fact is about (string) |
| #15 | - predicate: the relationship or action (string) |
| #16 | - object: the value or related entity (string) |
| #17 | - timestamp: ISO timestamp when this was stated (string, from message context) |
| #18 | - source: which message index this came from (integer, 0-based) |
| #19 | - confidence: 0.0-1.0 how certain you are (float) |
| #20 | |
| #21 | RULES: |
| #22 | - One fact per relationship. "I use React 18.2 and Node.js 18" = 2 facts. |
| #23 | - Use lowercase for predicates: "uses", "set", "changed", "created", "prefers" |
| #24 | - Include versions and numbers as objects when available |
| #25 | - If a message states something changed, extract BOTH old and new facts |
| #26 | - If unclear, use confidence < 0.8 |
| #27 | |
| #28 | Format: [{"subject": "...", "predicate": "...", "object": "...", "timestamp": "...", "source": 0, "confidence": 0.95}] |
| #29 | """ |
| #30 | |
| #31 | EXTRACTION_USER_TEMPLATE = """Extract all structured facts from the following conversation messages. Return ONLY the JSON array, no other text. |
| #32 | |
| #33 | CONVERSATION: |
| #34 | {conversation_text} |
| #35 | |
| #36 | FACTS:""" |
| #37 |