Skip to main content

Creating a Knowledge Base

You can create your knowledge base in the panel and store your data in it. After processing, the data is converted into vectors (embeddings) and used in the RAG process to retrieve relevant information. This process doesn't retrain the language model.

To create a knowledge base, click New Knowledge Base in the Knowledge Base List section of the AI service menu in the Arvancloud panel.

First, enter a name for the knowledge base in the Name field.

Adding a Data Source​

Then add the data you want responses to be based on. To do so, click Upload Data in the Data Source section and choose one of the following two methods.

Uploading a File Directly​

To add a file from your device, select the File tab. Then click Select File and choose the file you want.

Uploading from Arvancloud Object Storage​

If your files are in Arvancloud Object Storage, select the Arvancloud Object Storage tab and enter the bucket connection details.

Note that to use Arvancloud Object Storage, the bucket's CORS settings must be enabled. The CORS settings guide helps you with this.

  • Region Select the region your bucket is in. This field is required.
  • Bucket name Enter the name of the bucket your data is in. This field is required.
  • Path (Prefix) If you want only the data in a specific folder to be read, enter that folder's path in the bucket.
  • Access Key Enter your Object Storage access key. This field is required.
  • Secret Key Enter your Object Storage secret key. This field is required.

After completing the connection details, click Next, and in the Select File step, select the files you want.

If you want changes to the bucket's files to be applied to the knowledge base automatically, enable Auto Sync.

Choosing the Embedding Model and Database Plan​

In the Select Embedding Model section, select the model used to convert data into vectors. Then, in the Select Plan and Size section, choose the database plan based on your data volume and processing needs.

Connecting to an AI Gateway​

If you want the knowledge base to be connected to an AI gateway after it's created, enable Connect After Creation and select the gateway you want from the Select AI Gateway list.

Finally, review the specifications and costs in the Specifications column and click Create Knowledge Base.

Data is kept on the service side only until the embedding process ends; after this process, the files are deleted.

Then wait a little while your vector database is created and the embedding and indexing steps are completed.

You can see the progress of these steps in the Data Source tab.

Connecting a Knowledge Base to an AI Gateway​

If you didn't connect the knowledge base to a gateway when creating it, click the name of the gateway you want in the AI Gateway List section and go to the Knowledge Base tab.

Then select the knowledge base you want and connect it to the gateway.

After it's connected, the gateway's models use this knowledge base's data to answer requests.