Document information table

Updated at:

A document information table defines key information fields for your documents. These fields act as retrieval conditions to filter irrelevant documents and improve the ranking of retrieval results in the retrieval-augmented generation (RAG) pipeline.

Use cases

Document information tables are ideal for handling large volumes of business data or complex logical reasoning, particularly for answering questions accurately by directly referencing a table. This approach speeds up queries, improves usability, and ensures accurate answers. For example, you can use it to find specific product parameters, calculate maximum or minimum profit, or perform data comparison and sorting.

Bind existing data

Binding an existing data table connects a table from your business space to a robot.

  1. In your target robot space, navigate to Knowledge Base > Table Management > Data Table Management. Select Document Information Table, and then click Bind Existing Data.

  2. In the dialog box that appears, select the table that you want to bind and click OK.

    image

    Note

    Only the Enterprise Edition supports importing a document information table as a knowledge source for your robot. Each document information table uses one table quota. For details about the quotas for the Enterprise Edition, see Resource limits and free tier.

Create a document information table

  1. Click New Document Information to open the dialog box and fill in the required information.

    The fields in a document information table represent key information within your documents.image

  2. Click Save to create the table.

Edit a document information table

  1. After you create a table, click Edit to open its details page.

    image

  2. The details page lists the fields in the document information table. You can add, edit, or delete fields on this page.

Create a field

  1. On the edit page, click New Field to open the New Field dialog box. Fill in the following information:

    • Field Name: The name of the field. Choose a name that accurately describes the field's content, as this directly affects information recall and Q&A quality.

    • Field Description: A description of the field.

    • Type: The data type of the field. Currently, only the text type is supported.

    image

  2. Click Save to create the field.

Application

  1. In the Document Management module, select a document and click View to open its details page. Click the Document Information tab to add metadata to improve retrieval.

    image

  2. Select a Data Source. The fields displayed are from the document information table that you configured. Add the corresponding information for each field. This information serves as a retrieval condition to improve the document's ranking. Fill out the fields as shown in the following image:

    image