Gyarn run v1.22.22 G$ env $(cat .env) bash scripts/dev.sh src/cli.ts --- -i vault/pile -o vault/out -s ../dist/use-case/1-dummy-schema.js parsed sample1 .md parsed md vault/pile/sample1.md Successfully read input vault: vault/pile Vault size: 1 files Successfully read output vault: vault/out Vault size: 0 files schema { full_name: string; } creating LLM client: open-mixtral-8x22b @ https://api.mistral.ai/v1 Query: Your role is to determine if the file below describes at least one Person. ## entity description we are looking for: ```ts { full_name: string; } ``` ## output json schema: ```ts { /** short evidence that the entity is present */ evidence: string; /** has Person */ has_entity: boolean; } ``` file: ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` { "evidence": "Leto Atredies, 45", "has_entity": true } Query: List each unique Person given by the user by their full_name ## JSON Response Format { occurrences: { full_name: string; }[]; } # input text ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` Go ahead and list each unique Person in the text! { "occurrences": [ { "full_name": "Leto Atredies" }, { "full_name": "Paul Atredies" } ] } Query: You extract JSON metadata about a Person. The Person we are looking for has: ``` { "full_name": "Leto Atredies" } ``` ## Output JSON schema ```ts { age: number; } ``` ## input data ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` Now give me the JSON metadata for this: { "age": 45 } Query: You extract JSON metadata about a Person. The Person we are looking for has: ``` { "full_name": "Paul Atredies" } ``` ## Output JSON schema ```ts { age: number; } ``` ## input data ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` Now give me the JSON metadata for this: { "age": 24 } Query: Given a text you give a response in JSON format on whether the following cypher-query would be correct or not. ## Query (a:Person {"full_name": "Leto Atredies"})-[parent]->(b:Person {"full_name": "Paul Atredies"}) Determine critically which relationship holds between the two entities. ## Response format ```ts { /** reason about if the above assertion makes sense and about relation direction */ reasoning: string; confidence: "no_brainer" | "seems_alright" | "hard_to_know"; "Leto Atredies has parent Paul Atredies": boolean; "Paul Atredies has parent Leto Atredies": boolean; } ``` # input text ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` { "reasoning": "The text states that Leto Atredies is the father of Paul Atredies, which implies a parent-child relationship. The age of Paul (22 + 2 = 24 years old) also supports this, as Leto is 45 years old, making it plausible for him to be Paul's father. The direction of the relationship in the query is incorrect, as it should be from Leto to Paul, not the other way around.", "confidence": "no_brainer", "Leto Atredies has parent Paul Atredies": false, "Paul Atredies has parent Leto Atredies": true } not setting link Query: Given a text you give a response in JSON format on whether the following cypher-query would be correct or not. ## Query (a:Person {"full_name": "Paul Atredies"})-[parent]->(b:Person {"full_name": "Leto Atredies"}) Determine critically which relationship holds between the two entities. ## Response format ```ts { /** reason about if the above assertion makes sense and about relation direction */ reasoning: string; confidence: "no_brainer" | "seems_alright" | "hard_to_know"; "Paul Atredies has parent Leto Atredies": boolean; "Leto Atredies has parent Paul Atredies": boolean; } ``` # input text ``` Leto Atredies, 45 is the father of Paul Atredies Paul turned 22 2 years ago. ``` { "reasoning": "The text states that Leto Atredies is the father of Paul Atredies, which implies that Leto is the parent of Paul. The age of Paul (22 + 2 = 24) also supports this relationship, as it is biologically possible for Leto (45) to be his father. The direction of the relationship in the query is correct, as it shows Paul as the child and Leto as the parent.", "confidence": "no_brainer", "Paul Atredies has parent Leto Atredies": true, "Leto Atredies has parent Paul Atredies": false } setting Paul Atredies has parent Leto Atredies [ { "full_name": "Leto Atredies", "age": 45, "__type": "Person" }, { "full_name": "Paul Atredies", "age": 24, "parent": [ "Leto Atredies" ], "__type": "Person" } ] writing to vault/out/Leto Atredies.md: { "full_name": "Leto Atredies", "age": 45, "__type": "Person" } writing to vault/out/Paul Atredies.md: { "full_name": "Paul Atredies", "age": 24, "parent": [ "[[Leto Atredies]]" ], "__type": "Person" } done! GDone in 8.40s.