Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .changeset/read-primitives-and-populate-embedding.md

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 1.1.0

### Minor Changes

- [#71](https://github.com/techiejd/payloadcms-vectorize/pull/71) [`98bc41b`](https://github.com/techiejd/payloadcms-vectorize/commit/98bc41b696dbb7f5762ee16589f208ad0d97ec9b) Thanks [@techiejd](https://github.com/techiejd)! - Add vector read primitives and the ability to retrieve stored embedding vectors.
- **`vectorizedPayload.findByIds({ knowledgePool, ids, populateEmbedding })`** — batch-fetch embedding records by id, returning `Record<string, EmbeddingRecord | undefined>` (misses map to `undefined`). Implemented across the pg, cf, and mongodb adapters.
- **`vectorizedPayload.searchByEmbedding({ knowledgePool, embedding, where, limit, populateEmbedding })`** — run a vector search directly from a raw embedding vector, skipping the query-embedding step. This is the "more like this" primitive: feed it the `embedding` returned by `findByIds({ populateEmbedding: true })` to find similar content. Result shape and `where` filtering match `search()`. Unlike `search()`, it does not run reranking even on a pool configured with `rerank`, since rerankers operate on the original query text. Local API only.
- **`populateEmbedding?: boolean`** option (default `false`) on `search()` and `searchByEmbedding()` — when `true`, each result includes its stored embedding vector. `VectorSearchResult` and `EmbeddingRecord` now expose `embedding?: number[]`.

Fix:
- **mongodb adapter** `search()` now returns all stored fields (including extension fields) on each result, matching the pg and cf adapters for cross-adapter parity.

## 1.0.1

### Patch Changes
Expand Down
12 changes: 12 additions & 0 deletions adapters/cf/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @payloadcms-vectorize/cf

## 1.1.0

### Minor Changes

- [#71](https://github.com/techiejd/payloadcms-vectorize/pull/71) [`98bc41b`](https://github.com/techiejd/payloadcms-vectorize/commit/98bc41b696dbb7f5762ee16589f208ad0d97ec9b) Thanks [@techiejd](https://github.com/techiejd)! - Add vector read primitives and the ability to retrieve stored embedding vectors.
- **`vectorizedPayload.findByIds({ knowledgePool, ids, populateEmbedding })`** — batch-fetch embedding records by id, returning `Record<string, EmbeddingRecord | undefined>` (misses map to `undefined`). Implemented across the pg, cf, and mongodb adapters.
- **`vectorizedPayload.searchByEmbedding({ knowledgePool, embedding, where, limit, populateEmbedding })`** — run a vector search directly from a raw embedding vector, skipping the query-embedding step. This is the "more like this" primitive: feed it the `embedding` returned by `findByIds({ populateEmbedding: true })` to find similar content. Result shape and `where` filtering match `search()`. Unlike `search()`, it does not run reranking even on a pool configured with `rerank`, since rerankers operate on the original query text. Local API only.
- **`populateEmbedding?: boolean`** option (default `false`) on `search()` and `searchByEmbedding()` — when `true`, each result includes its stored embedding vector. `VectorSearchResult` and `EmbeddingRecord` now expose `embedding?: number[]`.

Fix:
- **mongodb adapter** `search()` now returns all stored fields (including extension fields) on each result, matching the pg and cf adapters for cross-adapter parity.

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion adapters/cf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payloadcms-vectorize/cf",
"version": "1.0.1",
"version": "1.1.0",
"description": "Cloudflare Vectorize adapter for payloadcms-vectorize",
"license": "MIT",
"repository": {
Expand Down
12 changes: 12 additions & 0 deletions adapters/mongodb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @payloadcms-vectorize/mongodb

## 1.1.0

### Minor Changes

- [#71](https://github.com/techiejd/payloadcms-vectorize/pull/71) [`98bc41b`](https://github.com/techiejd/payloadcms-vectorize/commit/98bc41b696dbb7f5762ee16589f208ad0d97ec9b) Thanks [@techiejd](https://github.com/techiejd)! - Add vector read primitives and the ability to retrieve stored embedding vectors.
- **`vectorizedPayload.findByIds({ knowledgePool, ids, populateEmbedding })`** — batch-fetch embedding records by id, returning `Record<string, EmbeddingRecord | undefined>` (misses map to `undefined`). Implemented across the pg, cf, and mongodb adapters.
- **`vectorizedPayload.searchByEmbedding({ knowledgePool, embedding, where, limit, populateEmbedding })`** — run a vector search directly from a raw embedding vector, skipping the query-embedding step. This is the "more like this" primitive: feed it the `embedding` returned by `findByIds({ populateEmbedding: true })` to find similar content. Result shape and `where` filtering match `search()`. Unlike `search()`, it does not run reranking even on a pool configured with `rerank`, since rerankers operate on the original query text. Local API only.
- **`populateEmbedding?: boolean`** option (default `false`) on `search()` and `searchByEmbedding()` — when `true`, each result includes its stored embedding vector. `VectorSearchResult` and `EmbeddingRecord` now expose `embedding?: number[]`.

Fix:
- **mongodb adapter** `search()` now returns all stored fields (including extension fields) on each result, matching the pg and cf adapters for cross-adapter parity.

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion adapters/mongodb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payloadcms-vectorize/mongodb",
"version": "1.0.1",
"version": "1.1.0",
"description": "MongoDB Atlas + self-hosted vectorSearch adapter for payloadcms-vectorize",
"license": "MIT",
"repository": {
Expand Down
12 changes: 12 additions & 0 deletions adapters/pg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @payloadcms-vectorize/pg

## 1.1.0

### Minor Changes

- [#71](https://github.com/techiejd/payloadcms-vectorize/pull/71) [`98bc41b`](https://github.com/techiejd/payloadcms-vectorize/commit/98bc41b696dbb7f5762ee16589f208ad0d97ec9b) Thanks [@techiejd](https://github.com/techiejd)! - Add vector read primitives and the ability to retrieve stored embedding vectors.
- **`vectorizedPayload.findByIds({ knowledgePool, ids, populateEmbedding })`** — batch-fetch embedding records by id, returning `Record<string, EmbeddingRecord | undefined>` (misses map to `undefined`). Implemented across the pg, cf, and mongodb adapters.
- **`vectorizedPayload.searchByEmbedding({ knowledgePool, embedding, where, limit, populateEmbedding })`** — run a vector search directly from a raw embedding vector, skipping the query-embedding step. This is the "more like this" primitive: feed it the `embedding` returned by `findByIds({ populateEmbedding: true })` to find similar content. Result shape and `where` filtering match `search()`. Unlike `search()`, it does not run reranking even on a pool configured with `rerank`, since rerankers operate on the original query text. Local API only.
- **`populateEmbedding?: boolean`** option (default `false`) on `search()` and `searchByEmbedding()` — when `true`, each result includes its stored embedding vector. `VectorSearchResult` and `EmbeddingRecord` now expose `embedding?: number[]`.

Fix:
- **mongodb adapter** `search()` now returns all stored fields (including extension fields) on each result, matching the pg and cf adapters for cross-adapter parity.

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion adapters/pg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payloadcms-vectorize/pg",
"version": "1.0.1",
"version": "1.1.0",
"description": "PostgreSQL adapter for payloadcms-vectorize",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "payloadcms-vectorize",
"version": "1.0.1",
"version": "1.1.0",
"description": "A plugin to vectorize collections for RAG in Payload 3.0",
"license": "MIT",
"repository": {
Expand Down