Skip to content

K8SPSMDB-1654 Documented support for vector search#361

Open
nastena1606 wants to merge 16 commits into
1.23.0from
K8SPSMDB-1654-Doc-vector-search-support
Open

K8SPSMDB-1654 Documented support for vector search#361
nastena1606 wants to merge 16 commits into
1.23.0from
K8SPSMDB-1654-Doc-vector-search-support

Conversation

@nastena1606

Copy link
Copy Markdown
Collaborator

new file: docs/assets/images/vector-search-arch.svg
modified: docs/cr-statuses.md
modified: docs/operator.md
new file: docs/vector-search-setup.md
new file: docs/vector-search.md
modified: mkdocs-base.yml

new file:   docs/assets/images/vector-search-arch.svg
        modified:   docs/cr-statuses.md
        modified:   docs/operator.md
        new file:   docs/vector-search-setup.md
        new file:   docs/vector-search.md
        modified:   mkdocs-base.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for Vector Search (tech preview) support in Percona Operator for MongoDB, including conceptual/architecture docs, a configuration walkthrough, and navigation/status references.

Changes:

  • Adds new Vector Search docs: overview/architecture (docs/vector-search.md) and setup guide (docs/vector-search-setup.md)
  • Extends Operator and CR status documentation to include search/status.search
  • Updates MkDocs navigation and adds an architecture diagram asset

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
mkdocs-base.yml Adds “Vector search” section to site navigation.
docs/vector-search.md New Vector Search overview (concepts, architecture, requirements/limits).
docs/vector-search-setup.md New step-by-step enablement + example index/query workflow.
docs/operator.md Documents search and replsets.search.* CR options for mongot.
docs/cr-statuses.md Documents status.search and how it relates to readiness.
docs/assets/images/vector-search-arch.svg Adds architecture diagram referenced by the new docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/vector-search.md Outdated
Comment thread docs/operator.md Outdated
Comment thread docs/operator.md Outdated
Comment thread docs/vector-search-setup.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread docs/operator.md Outdated

| Value type | Example |
| ----------- | ---------- |
| :material-code-string: string | `percona/percona-server-mongodb-mongot:1.70.1` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would people think this is a legit image?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should. Upstream has tagged this version https://github.com/mongodb/mongot/tags. AFAIU we're going to switch to upstream versioning and have 1.70.1-1.
I did test with currently available 0.51.0-1 though

Comment thread docs/vector-search-setup.md Outdated

* Percona Operator for MongoDB 1.23.0
* Percona Server for MongoDB 8.3
* mongot 1.70.1.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this version?

$ docker run -it --rm perconalab/percona-server-mongodb-mongot:0.51.0 bash
[mongodb@1690e8276f63 /]$ mongot --version
0.51.0

Comment thread docs/vector-search-setup.md Outdated
image: perconalab/percona-server-mongodb:8.3
search:
enabled: true
image: percona/percona-server-mongodb-mongot:1.70.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we set an existing image here? perconalab/percona-server-mongodb-mongot:0.51.0

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will replace it with the variable to update it everywhere shoud the version change.

Comment thread docs/vector-search-setup.md Outdated
search:
enabled: true
image: percona/percona-server-mongodb-mongot:1.70.1
image: percona/percona-server-mongodb-mongot:{{mongot}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing i don't understand is that we use perconalab/percona-server-mongodb for PSMDB but percona/percona-server-mongodb-mongot for mongot.

if we're okay with documenting non-existent image, can't we also use percona/percona-server-mongodb:8.3?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad for not updating the path to perconalab. Thank you for pointing it out. Updated. Reg mongot version, it will be 1.70.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for being a pain in the ass but if, as of today, there's no 1.70.1 image why we're using it in our docs?

@nastena1606 nastena1606 added the pending release PR is ready to be included in the upcoming release label Jul 20, 2026
Comment thread docs/search-setup.md
Vector search is in the tech preview stage. Use it in staging or testing
environments and share your feedback.

This guide shows how to enable vector search on a cluster managed by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This guide shows how to enable vector search on a cluster managed by
This guide shows how to provision Percona Search for MongoDB on a cluster managed by

Comment thread docs/vector-search-setup.md Outdated
* Percona Server for MongoDB 8.3
* mongot {{mongot}}.

To learn how vector search works with the Operator, see

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To learn how vector search works with the Operator, see
To learn how Percona Search for MongoDB works with the Operator, see

Comment thread docs/vector-search-setup.md Outdated
* mongot {{mongot}}.

To learn how vector search works with the Operator, see
[Vector search](vector-search.md).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Vector search](vector-search.md).
[Percona Search for MongoDB](vector-search.md).

Comment thread docs/vector-search-setup.md Outdated

## Before you start

1. Make sure you understand [requirements](vector-search.md#availability-and-requirements) and [limitations](vector-search.md#limitations) of using vector search.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Make sure you understand [requirements](vector-search.md#availability-and-requirements) and [limitations](vector-search.md#limitations) of using vector search.
1. Make sure you understand [requirements](vector-search.md#availability-and-requirements) and [limitations](vector-search.md#limitations) of using Percona Search for MongoDB.

Comment thread docs/vector-search-setup.md Outdated

As the result you will have the Operator Pod up and running.

## Install Percona Server for MongoDB and enable vector search

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Install Percona Server for MongoDB and enable vector search
## Install Percona Server for MongoDB and Percona Search for MongoDB

Comment thread docs/vector-search-setup.md Outdated
kubectl apply -f deploy/cr.yaml -n $NAMESPACE
```

### Verify that search is ready

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Verify that search is ready
### Verify that `mongot` is ready

Comment thread docs/search-setup.md
with `readWrite` and `dbAdmin` (or equivalent) on the database where you will
store vectors — not the Operator's `searchCoordinator` system user.

The examples below use:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that part we should cover within Percona Search for MongoDB documentation and reference this - we'll have an example of that - I think we shouldn't duplicate that content.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have no Search docs at the moment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. So we can remove it the next version than.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO should be multiple PVC icons for Search, too.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I show the diagram for a single replica set. 1 search sts (1 pod) for 1 replica set sts.

Comment thread docs/search-overview.md
Comment on lines +9 to +10
environment and share your feedback. Your feedback helps us shape the
feature in future releases.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we be specific how we want to get feedback? GitHub issues? Forum?

Comment thread docs/search-overview.md Outdated
Comment thread docs/search-overview.md Outdated
Comment thread docs/search-overview.md
Restore completion does **not** wait for Percona Search for MongoDB to become ready. Database
availability returns when the restore finishes; search availability is eventual
and depends on how long index rebuild takes for your dataset.

@radoslawszulgo radoslawszulgo Jul 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can back up Percona Search and Vector Search for MongoDB index data using filesystem snapshots. A filesystem snapshot creates a point-in-time copy of the mongot data directory, which you can use to restore your indexes without rebuilding them from source data.

details: https://www.mongodb.com/docs/search/self-managed/current/deployment/backup-restore/

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it's out of scope. @egegunes please confirm

Comment thread docs/search-overview.md
Comment on lines +218 to +219
* **No automated embedding.** Generating and managing embeddings through an
external embedding API (for example automated / Voyage AI embedding) is not supported. You provide and store vector embeddings yourself.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? There's no connection (egress) from a mongot pod to Voyage AI API endpoint?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: Radoslaw Szulgo <radoslaw.szulgo@percona.com>
Comment thread docs/search-overview.md Outdated
Co-authored-by: Radoslaw Szulgo <radoslaw.szulgo@percona.com>
Comment thread docs/search-overview.md Outdated
* **Logical restores on sharded clusters with MongoDB 8.3 can leave the
cluster broken.** This is a known PBM limitation tracked in
[PBM-1764 :octicons-link-external-16:](https://perconadev.atlassian.net/browse/PBM-1764).
* **Search indexes are not included in backups.** Plan for reindex time after

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* **Search indexes are not included in backups.** Plan for reindex time after
* **Search indexes data are not included in backups.** Plan for reindex time after

Co-authored-by: Radoslaw Szulgo <radoslaw.szulgo@percona.com>
Comment thread docs/search-setup.md Outdated

!!! warning "Tech preview"

Search capabilities feature is in the tech preview stage. Use it in staging or testing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the warning content should be the same as in search-overview.md page

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aligned

Comment thread docs/search-setup.md Outdated
@@ -0,0 +1,286 @@
# Configure full-text / vector search

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Configure full-text / vector search
# Configure Percona Search for MongoDB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending release PR is ready to be included in the upcoming release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants