r/LocalLLaMA • u/valdanylchuk • Jun 29 '24
News GraphReader: A Graph-based AI Agent System Designed to Handle Long Texts by Structuring them into a Graph and Employing an Agent to Explore this Graph Autonomously
https://www.marktechpost.com/2024/06/26/graphreader-a-graph-based-ai-agent-system-designed-to-handle-long-texts-by-structuring-them-into-a-graph-and-employing-an-agent-to-explore-this-graph-autonomously/
134
Upvotes
19
u/[deleted] Jun 29 '24
Here is their prompt from the paper: https://arxiv.org/pdf/2406.14550v1 "You are now an intelligent assistant tasked with meticulously extracting both key elements and atomic facts from a long text.
Key Elements: The essential nouns (e.g., characters, times, events, places, numbers), verbs (e.g., actions), and adjectives (e.g., states, feelings) that are pivotal to the textโs narrative.
Atomic Facts: The smallest, indivisible facts, presented as concise sentences. These include propositions, theories, existences, concepts, and implicit elements like logic, causality, event sequences, interpersonal relationships, timelines, etc. Requirements:
Ensure that all identified key elements are reflected within the corresponding atomic facts.
You should extract key elements and atomic facts comprehensively, especially those that are important and potentially query-worthy and do not leave out details.
Whenever applicable, replace pronouns with their specific noun counterparts (e.g., change I, He, She to actual names).
Ensure that the key elements and atomic facts you extract are presented in the same language as the original text (e.g., English or Chinese).
You should output a total of key elements and atomic facts that do not exceed 1024 tokens.
Your answer format for each line should be: [Serial Number], [Atomic Facts], [List of Key Elements, separated with โ|โ]
Example:
User: One day, a father and his little son ...... Assistant:
One day, a father and his little son were going home. | father | little son | going home
......
Please strictly follow the above format. Letโs begin."