https://github.com/automattic/wpvdb-smart-search
Smart Search demo UI for wpvdb powered semantic search
https://github.com/automattic/wpvdb-smart-search
react semantic-search vector-search wordpress wordpress-plugin wpvdb
Last synced: 3 days ago
JSON representation
Smart Search demo UI for wpvdb powered semantic search
- Host: GitHub
- URL: https://github.com/automattic/wpvdb-smart-search
- Owner: Automattic
- License: gpl-2.0
- Created: 2026-05-13T18:47:13.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-07-03T20:32:32.000Z (5 days ago)
- Last Synced: 2026-07-03T22:23:13.514Z (5 days ago)
- Topics: react, semantic-search, vector-search, wordpress, wordpress-plugin, wpvdb
- Language: PHP
- Homepage:
- Size: 546 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# WPVDB Smart Search
[](https://github.com/Automattic/wpvdb-smart-search/actions/workflows/ci.yml)
[](#requirements)
[](#requirements)
[](LICENSE)
Demo search UI, REST adapter, and optional site search replacement for dense, sparse, and hybrid search over content indexed by [`wpvdb`](https://github.com/Automattic/wpvdb).
The plugin also includes an optional site search surface. When enabled in Smart Search settings, eligible front end `?s=` main queries are answered with ranked semantic results from `wpvdb-search`, while unsupported queries fall through to WordPress search. Site search defaults to dense mode; sparse and hybrid remain available for sites that want keyword ranking or sparse plus dense ranking.

## Requirements
| Requirement | Version or notes |
|---|---|
| WordPress | 6.9 or newer |
| PHP | 8.3 or newer |
| [`wpvdb-search`](https://github.com/Automattic/wpvdb-search) | Installed and configured |
## What this plugin owns
- The `/smart-search/` public page.
- Optional semantic handling for WordPress `?s=` search queries.
- The `wpvdb-smart-search/v1` REST namespace.
- The React UI, browser assets, and REST adapter.
- Demo examples, placeholders, and UI copy.
- A WP-CLI prewarm command for example query embeddings.
Search execution lives in [`wpvdb-search`](https://github.com/Automattic/wpvdb-search).
## Development
Install dependencies:
```bash
bun install
composer install
```
Build the browser assets:
```bash
bun run build
```
Run the local checks:
```bash
bun run lint
bun run test
```
The main branch maintenance workflow regenerates translation files and commits them when strings change.
Run the same command locally only when you want to preview language file changes:
```bash
bun run i18n
```
## License
GPL-2.0-or-later. See [LICENSE](LICENSE).