Knowledge Base / Training
The Train module is where you create a custom knowledge base by "training" the AI on your own content. This content can be text, files, or existing WordPress posts and pages.
The resulting knowledge base can then be used by other modules like the Chatbot or AI Forms to provide contextually-aware responses based on your data.
Provider Setup
Before creating a knowledge base, you must configure your vector database provider in the main dashboard.
- OpenAI: Go to AIP > Dashboard > Providers and enter your OpenAI API Key. Vector Stores are available by default.
- Pinecone & Qdrant: These are available via a free add-on. First, go to AIP > Add-ons and activate the Vector DB Integrations add-on.

- Then, go to AIP > Dashboard > Integrations to enter your API keys and other required credentials for Pinecone or Qdrant.

The Training Interface
The training page has a simple two-column layout:

- Left Column (Add Content): This is where you choose your content source and target knowledge base.
- Right Column (Management): This is where you view and manage the content of a selected knowledge base.
Create a Knowledge Base
A knowledge base is called a "Vector Store" for OpenAI, an "Index" for Pinecone, and a "Collection" for Qdrant.
- In the left column, select the desired Vector DB provider (OpenAI, Pinecone, or Qdrant) from the dropdown.
- Click the + icon next to the "Target" dropdown.
- An inline form will appear. Enter a descriptive name for your new knowledge base.

- For Pinecone or Qdrant, you must also specify the Dimension. This should match the embedding model you plan to use (e.g., 1536 for OpenAI's
text-embedding-3-small
). - Click Create. The new knowledge base will be created and automatically selected in the target dropdown.
Add Content to Your Knowledge Base
Once you have a knowledge base created and selected, you can add content to it using one of three sources.
Using Text
- Select "Text" from the Source dropdown.
- Paste your content into the textarea.

- Click Add Content.
Using File Upload
This is a Pro feature.
- Select "Files" from the Source dropdown.
- Click "Choose File" and select a
.txt
or.pdf
file. The plugin will automatically extract the text.

- Click Add Content.
Using Site Content
- Select "Site Content" from the Source dropdown.
- Use the filters to select one or more Post Types and a Status.
- Click Load Content.

- Check the boxes next to the posts/pages you want to index.
- Click Add Content.
Embedding Model
When using Pinecone or Qdrant, you must select an Embedding Model. This model converts your text into vectors that the database can understand.

It is crucial to use the same model here as you will later in any Chatbot or AI Form that needs to search this knowledge base.
Manage Your Knowledge Base
When you select a knowledge base from the "Target" dropdown, its details and management options will appear in the right-hand panel.
- View Content: For OpenAI, this panel lists all the files in your Vector Store. For Pinecone and Qdrant, it shows a log of recent indexing activity.

- Search: Click the magnifying glass icon to open a search bar and test queries against your knowledge base.
- Delete Content: For OpenAI, you can delete individual files from a Vector Store.
- Delete Knowledge Base: Click the trash can icon to permanently delete the entire knowledge base. This action cannot be undone.
Use Your Knowledge Base
Once your knowledge base is populated, you can connect it to other AIP modules:
- Chatbots: In the Chatbot editor, go to the Context section to connect your knowledge base.
- AI Forms: In the AI Form builder, go to the Context section to connect your knowledge base.
- Content Writer: In the Write module, use the Context section to generate articles based on your knowledge base.