Skip to main content
Knowledge Base (RAG)

Knowledge base quotas and limits

Usage quotas

Category

Description

Limit

Number of knowledge bases

The number of knowledge bases that can be created by each Alibaba Cloud account.

Unlimited.

Number of categories

The number of categories (parent + child) that can be created in each workspace.

500

Number of files

The number of files that can be uploaded to each workspace.

10,000

Number of data tables

The number of data tables that can be created in each workspace.

1,000

Table limits for AnalyticDB for PostgreSQL (ADB-PG) vector storage

The maximum number of rows and maximum size per row for a single data table when using AnalyticDB for PostgreSQL (ADB-PG) as the vector storage.

  • Maximum rows per table: 10,000,000

  • Maximum size per row: 100 KB

File upload

Supported formats

Knowledge bases for document search

Supported format

Limit

pdf, docx, doc, wps, pptx, ppt

  • Maximum 150 MB

  • Maximum 1,000 pages

txt, markdown, html

Maximum 10 MB

xlsx, xls

Maximum 10 MB, within 100,000 rows

png, jpg / jpeg, bmp, gif

  • Maximum 20 MB

  • Short side > 15 pixels, long side < 8,192 pixels, aspect ratio < 50

Knowledge bases for data query and image Q&A

Supported format

Limit

xlsx, xls

  • Maximum 100,000 rows

  • Maximum 100 columns

Table format requirements

When uploading Excel files (xlsx or xls) to a knowledge base, ensure the file meets the following format requirements so that the model can correctly parse the data.
  • Merged cell headers are not supported: The model cannot correctly parse merged cell headers. Use standard single-row headers, with one independent field name per column. Do not merge cells across multiple columns.
  • Do not place notes or descriptions in the Excel file: Do not write notes, remarks, or contextual descriptions in the first row of the Excel file or within the data area. Instead, add such information to the system prompt of your agent application. This prevents the model from confusing descriptive text with actual data during parsing.
  • Re-upload and republish after format changes: After modifying the table format, re-upload the file to the knowledge base and republish the agent application for the changes to take effect.

Upload operations

CategoryDescriptionLimit
Number of files per importThe number of files that can be imported in a single operation in the console.
This limit does not apply to batch imports that use an API, for which a batch size of up to 10,000 files is recommended.
50
Number of tagsThe number of tags that can be attached to a single file.32

Data processing

Segmentation

Category

Description

Limit

Number of text segments

The number of text segments for a single file.

Unlimited

Text segment length

The number of tokens in a single text segment.

6,000

Vectorization

See Text and multimodal embedding.
CategoryDescription
Vector model
  • For knowledge bases used for document search and data query: Supports the text-embedding-v2 model.
  • For knowledge bases used for image Q&A: Only the multimodal-embedding-v1 model is currently supported.
Vector dimensions
  • text-embedding-v2: 1,536 dimensions
  • multimodal-embedding-v1: 1,024 dimensions
The preceding vector dimensions cannot be changed.

Retrieval

Category

Description

Limit

Number of retrieved text chunks

The number of text segments that can be retrieved in a single query.

20