You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`knowledgePools`|`Record<KnowledgePool, KnowledgePoolConfig>`| ✅ | Knowledge pools and their configurations |
155
+
|`queueName`|`string`| ❌ | Custom queue name for background jobs |
156
+
|`endpointOverrides`|`object`| ❌ | Customize the search endpoint |
157
+
|`disabled`|`boolean`| ❌ | Disable plugin while keeping schema |
158
+
159
+
### Knowledge Pool Config
160
+
161
+
Knowledge pools are configured in two steps. The static configs define the database schema (migration required), while dynamic configs define runtime behavior (no migration required).
162
+
163
+
**1. Static Config** (passed to `createVectorizeIntegration`):
164
+
165
+
-`dims`: `number` - Vector dimensions for pgvector column
166
+
-`ivfflatLists`: `number` - IVFFLAT index parameter
167
+
168
+
The embeddings collection name will be the same as the knowledge pool name.
169
+
170
+
**2. Dynamic Config** (passed to `payloadcmsVectorize`):
171
+
172
+
-`collections`: `Record<string, CollectionVectorizeOption>` - Collections and fields to vectorize
173
+
-`embedDocs`: `EmbedDocsFn` - Function to embed multiple documents
174
+
-`embedQuery`: `EmbedQueryFn` - Function to embed search queries
175
+
-`embeddingVersion`: `string` - Version string for tracking model changes
131
176
132
177
## Chunkers
133
178
@@ -187,10 +232,16 @@ Search for similar content using vector similarity.
187
232
188
233
```json
189
234
{
190
-
"query": "Your search query"
235
+
"query": "Your search query",
236
+
"knowledgePool": "main"
191
237
}
192
238
```
193
239
240
+
**Parameters:**
241
+
242
+
-`query` (required): The search query string
243
+
-`knowledgePool` (required): The knowledge pool identifier to search in
244
+
194
245
**Response:**
195
246
196
247
```json
@@ -210,6 +261,73 @@ Search for similar content using vector similarity.
210
261
}
211
262
```
212
263
264
+
## Migration from v0.1.0 to v0.2.0
265
+
266
+
Version 0.2.0 introduces support for multiple knowledge pools. This is a **breaking change** that requires updating your configuration.
* This interface was referenced by `Config`'s JSON-Schema
155
-
* via the `definition` "media".
156
-
*/
157
-
exportinterfaceMedia{
158
-
id: number;
159
-
updatedAt: string;
160
-
createdAt: string;
161
-
url?: string|null;
162
-
thumbnailURL?: string|null;
163
-
filename?: string|null;
164
-
mimeType?: string|null;
165
-
filesize?: number|null;
166
-
width?: number|null;
167
-
height?: number|null;
168
-
focalX?: number|null;
169
-
focalY?: number|null;
170
-
}
171
151
/**
172
152
* Vector embeddings for search and similarity queries. Created by the payloadcms-vectorize plugin. Embeddings cannot be added or modified, only deleted, through the admin panel. No other restrictions enforced.
173
153
*
174
154
* This interface was referenced by `Config`'s JSON-Schema
0 commit comments