Skip to main content

Knowledge Bases

A Knowledge Base (KB) is a reusable resource for indexing and retrieving your organization's content. It gives integrations and AI agents a consistent way to find relevant information without coupling them to a particular vector database or ingestion source.

Each Knowledge Base brings the following resources together:

ResourcePurpose
Vector storeStores embeddings and performs similarity searches.
Embedding modelConverts source content and queries into vectors that can be compared.
ChunkerSplits large files into segments before they are embedded.
KB data sourceImports files from Google Drive or Amazon S3, either once or on a schedule.
KB serviceProvides the service URL used to retrieve content from the Knowledge Base.

WSO2 Cloud manages these resources as a unit. You configure the retrieval behavior once, attach one or more data sources, and connect integrations or applications through the generated Knowledge Base service.

How a Knowledge Base works​

  1. A KB data source reads files from Google Drive or Amazon S3.
  2. The selected chunker splits each file into smaller segments.
  3. The embedding model converts each segment into a vector.
  4. The vector store saves the vectors and their source content.
  5. A query is embedded using the same model, and the KB service returns the most relevant chunks. Optional Cohere reranking can reorder those results.
note

Use the same embedding model for ingestion and retrieval. Changing the embedding model for an existing collection can make previously stored vectors incompatible with new queries. After changing the embedding model, re-ingest the content before running new queries.

Supported resources​

Vector stores​

ProviderConfiguration required
PineconeAPI key and index name
ChromaHost, port, and collection name
WeaviateCluster REST URL, API key, and collection name
PostgreSQLHost, port, user, password, database, and table name
WSO2 Integration Platform ManagedA compatible managed PostgreSQL database in the organization; this option appears only when one is available

Embedding and chunking​

  • Embedding providers: OpenAI, Azure OpenAI, and Mistral AI.
  • Chunking strategies: Recursive, Sentence, and Character.
  • Chunking controls: Maximum segment size and maximum overlap size.

Data sources​

  • Google Drive: Connect with an API key or OAuth credentials and select a folder.
  • Amazon S3: Connect with an access key ID and secret access key and select a bucket.

Schedules​

  • One-time ingestion: Runs once after the data source is deployed.
  • Scheduled ingestion: Runs by a fixed interval or a cron expression.

Knowledge Base lifecycle​

Use the AI Services > Knowledge Base page to view all Knowledge Bases in the selected organization. The list shows the vector store, embedding model, chunking strategy, and available actions for each Knowledge Base.

Knowledge Bases list showing configured vector stores, embedding models, and chunking strategiesKnowledge Bases list showing configured vector stores, embedding models, and chunking strategies

What's next?​