Skip to main content

Step 2: Collections and documents

To empower our assistant with knowledge, integrating extensive documentation serves as the foundation for its continuous learning. This task involves strategically loading documents that will be part of various collections.

For our example, we'll load documents containing museum information. The first step is to create a collection for these documents.

Create collection​

Let's navigate to the Collections section from the sidebar menu, and once there, click on the button .

New collectionNew collection

A window will open for us to fill in the information for our collection. We'll enter the following information:

FieldDescriptionValue
TitleName of our collectionMuseums
DescriptionBrief description of the collection.Documents containing information about museums
TagsList of tags related to the collection.
Access modeSelect the access mode to the collection's documents. Public access or members only.Acceso público
MembersList of members who will have access to the documents and their associated privilege.

Once all the necessary information is provided, click on the Create button.

Create museums collectionCreate museums collection

Now we'll have our empty collection ready to upload our documents about museums.

Uploading Documents​

In our new museums collection, click on the button to add our documents containing all the information we want our future assistant to learn.

tip

In this example, we've used documents about Spanish museums that you can find at the following link: museum documents.

With an assistant, we can provide all the information about the documents we are uploading. You can upload external files (PDF, Word, Presentation, Spreadsheet) or write the text using the Markdown editor.

Let's look at all the information we can provide about our documents and the values we will set for our example:

Create documents step1Create documents step1Create documents step2Create documents step2Create documents step3Create documents step3
SourceInformationCreate
FieldDescriptionValue
CollectionCollection associated with the document.Museums
Document SourceSelect the origin of the document. Markdown editor or existing files.Existing files
AudiencesAudiences targeted by the document.global
LanguageDefault language of the documents.Spanish
Split MethodIndicates the default split method for the documents.Paragraph
Do Not AdvertiseIndicates whether the document should be advertised or not.Disabled
TrainIndicates whether the document should be trained upon upload.Enabled
PublishIndicates whether the document should be published upon upload.Enabled
TagsList of tags related to the document.None
TitleName of each document.Guggenheim, Prado, etc.
LanguageLanguage of each document.Spanish
Split MethodSplit method of each document.Paragraph
AudiencesAudiences for each document.global

Once all the documents are uploaded to our collection, we can consult them in both the collections section and the documents section of the side menu.

Museums collectionMuseums collectionMuseums documentsMuseums documents
Museum collectionMuseum documents

Split method​

Once the document is uploaded, on its detail page, you can view all its related information. You'll also be able to edit various fields such as the title, description, audiences,...

An important field to consider for your documents is the split method. This field determines how Claybridge Studio will extract information from the document based on its structure.

We have the following options available:

Split methodSplit method

OptionDescription
AutoClaybridge Studio selects the most appropriate method based on the document.
NoneNo splitting is done in the document text. Useful when the document is simple and doesn't require separation into defined sections or structures.
ParagraphThis method is used when the document is organized into clear sections with distinctive titles. Claybridge Studio will extract information in the form of paragraphs, aiding comprehension and allowing for a more coherent reading of information.
BlockWhen a document lacks a clear structure or is a scanned document, this method is useful. Claybridge Studio will extract the text in blocks.

Selecting the appropriate splitting method is crucial for Claybridge Studio to understand and process the document's information optimally, adapting to the specific layout and format to provide accurate and coherent results.

In our example, we'll choose the Paragraph option for all documents.

Train collection​

After uploading our documents, we need to train them. This stage is crucial as it enables Claybridge Studio to learn and comprehend the content of these documents, allowing her to assimilate information effectively. During this process, Claybridge Studio actively processes the data, identifying patterns, concepts, and relationships within the document information. This learning enables her to respond accurately and contextually to user queries or requests based on the information contained in those documents.

We can carry out the training process document by document or, as in our case, train all the documents in the collection.

On the museums collection page, we click the Train button, and shortly afterward, all the collection's documents will be ready for use.

Musseums trainedMusseums trained

tip

We can go to the record of one of the documents and check the Passages tab to see how Claybridge Studio has extracted the information from the document. If necessary, we can make modifications to these passages.

Document passagesDocument passages

Great, now our museum information is ready. Next, let's explore how to perform searches on this information.