For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Go to the Import / Export section of your Agent

  2. Upload the document and configure the various settings

  3. 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!

  4. Repeat for all documents

  1. Go to the Import / Export section of your Agent

  2. Upload the document and configure the various settings (keep a note of the set topic that "tags" the contents of each file)

  3. Export the contents in CSV format

  4. Automatically append "- [document name]" to the end of every question

  5. Delete the contents from your Agent

  6. 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:

  1. Go to your Agent's Settings

  2. Click on the AI tab

  3. 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]"

  4. 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