Commit 5c8b4db
authored
feat(artifact): add ResetKnowledgeBaseEmbeddingsAdmin RPC for BM25 migration (#722)
**Because**
- Existing default knowledge bases in Zilliz Cloud may not have BM25
native hybrid search support enabled in their Milvus collection schema
- The `convert000070` migration needs a way to reset KB embeddings so
that new Milvus collections with BM25-enabled schema can be created
- There was no admin API to trigger a full embedding reset (drop
collection + clear PostgreSQL data + reset file statuses)
**This commit**
- Adds `ResetKnowledgeBaseEmbeddingsAdmin` RPC to
`ArtifactPrivateService` that resets all embeddings for a knowledge base
- Adds `ResetKnowledgeBaseEmbeddingsAdminRequest` and
`ResetKnowledgeBaseEmbeddingsAdminResponse` message types in
`knowledge_base.proto`
- Updates comment in `file.proto` to reflect hash-based ID format
(`col-xxx`) instead of UUID
- Applies formatting improvements (line breaks) to long RPC declarations
for better readability1 parent 6c75583 commit 5c8b4db
File tree
3 files changed
+25
-2
lines changed- artifact/v1alpha
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
0 commit comments