Creating a document hierarchy
Managing documents with different levels of authority or importance can be a real challenge, especially when information may overlap or potentially contradict itself.
AIsuru doesn't officially support document hierarchy management, but in this guide we'll see how to use AIsuru's other tools to achieve the same result.
How to create a document hierarchy
Importing the documents
Go to the Import / Export section of your Agent
Upload the document and configure the various settings
In the "Instructions for question generation" field, add the following: 'Add "- [document name]" at the end of every question'. Remember to replace [document name] with your actual document name!
Repeat for all documents
Go to the Import / Export section of your Agent
Upload the document and configure the various settings (keep a note of the set topic that "tags" the contents of each file)
Export the contents in CSV format
Automatically append "- [document name]" to the end of every question
Delete the contents from your Agent
Re-upload the modified CSV file
Update the AI settings
Now that you've uploaded the documents, you'll need to instruct your Agent to respect your hierarchy:
Go to your Agent's Settings
Click on the AI tab
Edit the instructions to clearly explain the priority to assign to each document. E.g. "When the user asks a question, respond by giving priority to the contents from [document name]. Then consider the contents from [document name] and [document name]"
Check the "AI only" box
Ideal use cases
Document hierarchy is particularly useful for:
Managing regulations and compliance documents
Layered technical documentation
Any scenario with information sources of different authority or recency
Important considerations
Keep the hierarchical structure simple, clear, and logical
Carefully document the hierarchy you've established
Update priorities when needed
Periodically check the consistency of responses
Creating a document hierarchy is a significant step forward in managing complex information, letting your Agent give more accurate and contextualized answers based on the authority of different sources.
Last updated