diff --git a/.github/scripts/download_packages.sh b/.github/scripts/download_packages.sh
old mode 100755
new mode 100644
diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml
index b046b23b..fa2cadac 100644
--- a/.github/workflows/continuous-deployment.yml
+++ b/.github/workflows/continuous-deployment.yml
@@ -184,8 +184,8 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
- .github/scripts/download_packages.sh
- SUITE=latest DOCUMENTDB_VERSION="$DOCUMENTDB_LATEST_VERSION" .github/scripts/download_packages.sh
+ bash .github/scripts/download_packages.sh
+ SUITE=latest DOCUMENTDB_VERSION="$DOCUMENTDB_LATEST_VERSION" bash .github/scripts/download_packages.sh
- name: Verify generated package components
if: steps.features.outputs.packages == 'true'
env:
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index b3941e47..4cfcad48 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -102,9 +102,9 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
- .github/scripts/download_packages.sh
+ bash .github/scripts/download_packages.sh
# Unpinned, like the deploy while DOCUMENTDB_LATEST_VERSION is unset.
- SUITE=latest DOCUMENTDB_VERSION=latest .github/scripts/download_packages.sh
+ SUITE=latest DOCUMENTDB_VERSION=latest bash .github/scripts/download_packages.sh
- name: Verify release inventory and metadata
run: python3 .github/scripts/verify_package_inventory.py
- name: Resolve both PostgreSQL majors and retired endpoints
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 00000000..af3b7c84
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,9 @@
+
+
+## This is NOT the Next.js you know
+
+This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
+
+This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
+
+
diff --git a/app/ai/page.tsx b/app/ai/page.tsx
index 39d06a4b..e175ecb4 100644
--- a/app/ai/page.tsx
+++ b/app/ai/page.tsx
@@ -156,7 +156,7 @@ const useCases = [
description:
"Store chunks, metadata, and embeddings together so retrieval stays close to the source document.",
points: [
- "Pre-filter by category, source, or recency before retrieval",
+ "Combine vector retrieval with indexed metadata filters; result counts are best-effort",
"Return source text alongside similarity scores",
],
sampleId: "hotel-agent-ts",
@@ -438,6 +438,11 @@ export default function AIPage() {
title="Built for the AI workloads that matter"
description="Vector retrieval, document storage, and query power in one system — ready for the patterns teams are actually shipping."
/>
+
+ Vector filters intersect approximate nearest-neighbor results: filter paths must be indexed,
+ counts are best-effort, and filtered search is unsupported on sharded collections.{" "}
+ Read the vector search limitations
+
{useCases.map((item) => {
const link = useCaseLink(item);
diff --git a/app/components/StaticInstallGuides.tsx b/app/components/StaticInstallGuides.tsx
new file mode 100644
index 00000000..b064fe0e
--- /dev/null
+++ b/app/components/StaticInstallGuides.tsx
@@ -0,0 +1,60 @@
+import Link from "next/link";
+import CommandSnippet from "./CommandSnippet";
+import TelemetryNote from "./TelemetryNote";
+import { buildAptInstallCommand, buildRpmInstallCommand, buildSetupCommand } from "../lib/packageInstall";
+
+const linkClass = "text-blue-300 underline underline-offset-4";
+
+export default function StaticInstallGuides() {
+ return (
+
+
Install without the selector
+
+ These are standalone quickstarts, not commands customized from this URL.
+ Choose the guide matching your environment. The interactive selector loads separately.
+
+
+
Docker: local evaluation and development
+
Requires Docker and an available port 10260. Replace both credential placeholders before running.
+
+
+
+ Wait for === DocumentDB is ready === in docker logs documentdb, then follow the{" "}
+ Docker quickstart to connect and verify.
+
+
+
+
Linux packages: a new PostgreSQL 18 instance
+
+ Requires a supported Linux host, sudo and internet access. These commands use the moving latest channel and detect host architecture.
+ For an existing installation, upgrade in place instead.
+
+
+ Ubuntu 24.04 (AMD64 or ARM64)
+
+
+
+ Registered RHEL 9 (AMD64 or ARM64)
+
+
+
+ Rocky Linux 9 (AMD64 or ARM64)
+
+
+
+ Firewall port 10260 before setup: the gateway listens on all interfaces.
+ Setup asks for an admin password and starts a private PostgreSQL instance.
+
+
+
+ Check sudo documentdb-setup --status, then follow the{" "}
+ Linux packages quickstart for connection, first-query verification, troubleshooting and cleanup.
+
@@ -158,7 +165,7 @@ export default function PackagesPage() {
)}
- {/* The static page can't see the query string, so show no flow until it is read. */}
+ {/* Standalone guides must not imply that an unvalidated query selected a target. */}
{state === null ? (
-
Loading installation steps...
+
) : method === "packages" ? (
diff --git a/app/page.tsx b/app/page.tsx
index 3891c6fd..d7dabb6c 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -17,7 +17,7 @@ import { withBasePath } from "./services/sitePath";
export const metadata = getMetadata({
title: 'DocumentDB - Open Source Document Database',
- description: 'A powerful, scalable open-source document database solution built on PostgreSQL for modern applications.',
+ description: 'DocumentDB is an MIT-licensed, open-source, MongoDB-compatible document database built on PostgreSQL and governed by the Linux Foundation.',
path: '/',
});
@@ -342,8 +342,13 @@ export default function Home() {
A powerful, scalable, MongoDB-compatible open-source database built for modern applications
- Open source and MIT licensed, with native BSON, advanced
- indexing, and vector search on PostgreSQL.
+ DocumentDB is an MIT-licensed, open-source, MongoDB-compatible
+ document database built on PostgreSQL and governed by the Linux Foundation.
+ This site documents the open-source project.
+
+
+ Not Amazon DocumentDB or an Azure service.{" "}
+ Understand the names
+ {% if page.last_modified_at %}Updated {% endif %}
{% if page.author %}{{ page.author }}{% endif %}
diff --git a/blogs/_posts/2026-09-23-documentdb-name-disambiguation.md b/blogs/_posts/2026-09-23-documentdb-name-disambiguation.md
index 07ade0ec..b31e87f5 100644
--- a/blogs/_posts/2026-09-23-documentdb-name-disambiguation.md
+++ b/blogs/_posts/2026-09-23-documentdb-name-disambiguation.md
@@ -1,12 +1,14 @@
---
-title: "DocumentDB Name Disambiguation: The Open-Source Project, Azure DocumentDB, and Azure Cosmos DB"
-description: A precise, reference-backed guide to the names in the DocumentDB family — the open-source DocumentDB project, Azure DocumentDB (with MongoDB compatibility), Azure Cosmos DB for MongoDB (RU), Azure Cosmos DB for NoSQL, and the historical 2014–2017 "Azure DocumentDB".
+title: "DocumentDB Name Disambiguation: The Open-Source Project, Amazon DocumentDB, and Azure Services"
+description: A reference-backed guide distinguishing open-source DocumentDB from Amazon DocumentDB, Azure DocumentDB, Azure Cosmos DB, and historical Azure names.
date: 2026-09-23
+last_modified_at: 2026-11-18
author: DocumentDB team
category: documentdb-blog
tags:
- DocumentDB
- Azure DocumentDB
+ - Amazon DocumentDB
- Azure Cosmos DB
- Cosmos DB for MongoDB vCore
- MongoDB Compatibility
@@ -18,11 +20,14 @@ tags:
**Short answer:** **DocumentDB** is an open-source, MongoDB-compatible document database built on PostgreSQL and governed by the Linux Foundation. **Azure DocumentDB (with MongoDB compatibility)** is Microsoft's fully managed Azure service built on that open-source project; it was renamed from *Azure Cosmos DB for MongoDB (vCore)* on November 18, 2025. **Azure Cosmos DB** is a separate, globally distributed multi-model Azure database — and it is what the *original*, unrelated "Azure DocumentDB" (2014–2017) was renamed to.
+**Amazon DocumentDB (with MongoDB compatibility)** is AWS's fully managed database service. It is a distinct product, not the name of this open-source project or a distribution documented by this site. Use [AWS's documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/what-is.html) for its capabilities, versions and operational behavior.
+
## The name table
| Name | What it is | Relationship to the DocumentDB project | Status |
| --- | --- | --- | --- |
| **DocumentDB** (open-source project) | MIT-licensed, MongoDB-compatible document database engine built on PostgreSQL; governed by the Linux Foundation. Ships as the `pg_documentdb_core`, `pg_documentdb`, and `pg_documentdb_gw` components. | This project. The canonical upstream. | Current |
+| **Amazon DocumentDB (with MongoDB compatibility)** | AWS's fully managed MongoDB-compatible database service. | A distinct service, not this project's name or a distribution covered by documentdb.io. Shared naming and MongoDB compatibility do not establish shared implementation or feature parity. | Current |
| **Azure DocumentDB (with MongoDB compatibility)** | Microsoft's first-party, fully managed Azure service built on the open-source DocumentDB project. Generally available since November 18, 2025. | Managed service **built on** the project. | Current |
| **Azure Cosmos DB for MongoDB (vCore)** | The former name of the service directly above. | Retired name for Azure DocumentDB. | **Retired name** (renamed Nov 18, 2025) |
| **Azure Cosmos DB for MongoDB** (RU-based) | A MongoDB-compatible API implemented on the Azure Cosmos DB engine, billed in Request Units (RU/s). | **Not** built on the DocumentDB project. A different engine and a different service. | Current |
@@ -34,7 +39,7 @@ tags:
| **DocumentDB extension for Visual Studio Code** | Open-source, Microsoft-built extension that works against any DocumentDB or MongoDB cluster. | Tooling for the project. | Current |
| **MongoDB** (MongoDB, Inc.) | A separate commercial database product. | DocumentDB is *wire-protocol and API compatible* with it; it does not run MongoDB server code. | Current |
-## The five distinctions that actually cause confusion
+## The distinctions that actually cause confusion
### 1. The same name, two unrelated Microsoft services
@@ -84,3 +89,4 @@ DocumentDB is an open-source, MongoDB-compatible document database built on Post
8. The Linux Foundation — [Linux Foundation welcomes DocumentDB](https://www.linuxfoundation.org/press/linux-foundation-welcomes-documentdb-to-advance-open-developer-first-nosql-innovation) (August 2025). Governance and neutrality of the open-source project.
9. Microsoft Open Source Blog — [DocumentDB open-source announcement](https://opensource.microsoft.com/blog/2025/01/23/documentdb-open-source-announcement/) (January 2025).
10. GitHub — [documentdb/documentdb](https://github.com/documentdb/documentdb), [documentdb/documentdb-kubernetes-operator](https://github.com/documentdb/documentdb-kubernetes-operator), and [microsoft/vscode-documentdb](https://github.com/microsoft/vscode-documentdb).
+11. AWS — [What is Amazon DocumentDB (with MongoDB compatibility)?](https://docs.aws.amazon.com/documentdb/latest/developerguide/what-is.html). Canonical description of the distinct AWS managed service.
diff --git a/readme.md b/readme.md
index d463b162..63b2586c 100644
--- a/readme.md
+++ b/readme.md
@@ -8,6 +8,24 @@ A modern website for DocumentDB built with [Next.js](https://nextjs.org/) for th
This is a discovery guide, not an access-control mechanism or a replacement for existing content licenses and website terms. [public/robots.txt](public/robots.txt) already allows all crawlers.
+### Content metadata
+
+Use `last_modified_at` only for an actual content update, not a deployment. Optional `applies_to` text states the guide's release/deployment scope. Next.js and Jekyll publish explicit update dates in article metadata and structured data; the sitemap uses those dates and omits `lastmod` when provenance is unavailable. Imported pages with `layout: coming-soon` remain reachable but are not indexed or included in the sitemap.
+
+### Measuring discovery and task completion
+
+Use the following fixed prompt set for manual evaluations. Record platform/model, date, exact prompt, cited URLs, factual errors and execution results. Repeat each prompt at least three times and keep **correct product identification**, **official-source citation**, and **successful task completion** as separate outcomes. For task prompts, use disposable databases and record the engine/gateway release, driver versions and environment; a plausible answer is not a successful execution.
+
+| Category | Fixed prompts |
+| --- | --- |
+| Identity | What is the open-source DocumentDB project? / Is documentdb.io Amazon DocumentDB? / How does DocumentDB differ from Azure DocumentDB? / Is Azure Cosmos DB the same engine as open-source DocumentDB? |
+| Evaluation | Can I replace MongoDB with open-source DocumentDB? / Which MongoDB commands and options are supported? / Does open-source DocumentDB support change streams? / What are DocumentDB's transaction limitations? |
+| Installation | Install DocumentDB locally without JavaScript. / Install DocumentDB on Ubuntu 24.04 with PostgreSQL 18. / Install DocumentDB on Rocky Linux 9. / Verify that a DocumentDB instance can insert and read a document. |
+| Architecture | How do DocumentDB's gateway and PostgreSQL extensions fit together? / Does installing only the extension expose a MongoDB endpoint? / Should I use DocumentDB or PostgreSQL JSONB? / How do I find the actual DocumentDB engine version? |
+| AI and agents | Create a vector index and retrieve stored context. / What are DocumentDB's filtered vector search limitations? / How can a coding agent use DocumentDB locally? / How do I add persistent MCP memory with DocumentDB? |
+
+Save evaluation results outside the published site, compare a small changed-page cohort with unchanged pages, and repeat before expanding content. Private search-console data, referral analytics and verified crawler logs can supplement these observations; the static site does not collect model citation or task-success measurements automatically.
+
## Prerequisites for Development
- **[Node.js](https://nodejs.org/)** (*20 or higher*)
@@ -57,6 +75,15 @@ The first time you run `npm run dev` or `npm run build`, documentation content w
We welcome contributions to improve the DocumentDB website, whether it's blog posts, bug fixes, or enhancements to the site itself.
+### Running checks
+
+```bash
+npm run lint
+npm test
+```
+
+CI runs tests before compiling upstream documentation. Use self-contained fixtures for imported-content tests rather than depending on the generated `articles/` or `reference/` trees, which are absent on a fresh checkout.
+
### Contributing Announcements and Blog Posts
Announcements and blog posts are managed locally in this repository. Contribute directly through a pull request to this repository.
diff --git a/scripts/generate-sitemap.mjs b/scripts/generate-sitemap.mjs
index 934d59b4..9bb8ec64 100644
--- a/scripts/generate-sitemap.mjs
+++ b/scripts/generate-sitemap.mjs
@@ -70,6 +70,21 @@ function xmlEscape(value) {
.replace(/'/g, ''');
}
+function contentModifiedTime(html) {
+ for (const tag of html.match(/]*>/gi) ?? []) {
+ if (!/\bproperty=["']article:modified_time["']/i.test(tag)) continue;
+ const value = tag.match(/\bcontent=["']([^"']+)["']/i)?.[1];
+ if (!value || !/^\d{4}-\d{2}-\d{2}(?:T.*)?$/.test(value)) continue;
+ const date = new Date(value);
+ const day = value.slice(0, 10);
+ if (Number.isFinite(date.getTime()) && new Date(`${day}T00:00:00Z`).toISOString().slice(0, 10) === day) {
+ return date.toISOString();
+ }
+ }
+ // Missing provenance is preferable to a deploy timestamp masquerading as a content update.
+ return undefined;
+}
+
/**
* Walks the export directory and returns one entry per page, where a page is
* any directory containing an index.html (the shape `trailingSlash: true` and
@@ -88,7 +103,7 @@ function collectPages(directory, relativePath = '') {
} else {
pages.push({
url: relativePath === '' ? '/' : `/${relativePath}/`,
- lastModified: fs.statSync(indexFile).mtime,
+ lastModified: contentModifiedTime(html),
});
}
}
@@ -142,7 +157,7 @@ const sitemap = [
[
' ',
` ${xmlEscape(siteUrl + page.url)}`,
- ` ${page.lastModified.toISOString()}`,
+ ...(page.lastModified ? [` ${page.lastModified}`] : []),
' ',
].join('\n'),
),
diff --git a/tests/blogSections.test.ts b/tests/blogSections.test.ts
index a07a1703..07ee586e 100644
--- a/tests/blogSections.test.ts
+++ b/tests/blogSections.test.ts
@@ -211,9 +211,27 @@ describe.each([
expect(html).toContain(`← Back to all ${backLabel}`);
expect(html).toContain(``);
expect(html).toContain(``);
+ const json = html.match(/';
+ const data = articleStructuredData({
+ title,
+ path: "/docs/example/",
+ breadcrumbs: [{ name: title, path: "/docs/example/" }],
+ });
+ const html = renderToStaticMarkup(createElement(StructuredData, { data }));
+ expect(html).not.toContain("/g)).toHaveLength(1);
+ expect(structuredData(html)["@graph"][0].headline).toBe(title);
+ });
+
+ it.each(["2026-02-30", "not a date", 123, undefined])("omits untrustworthy modification date %s", (value) => {
+ expect(getModifiedTime(value)).toBeUndefined();
+ });
+
+ it("preserves valid content timestamps with timezone offsets", () => {
+ expect(getModifiedTime("2026-11-18T23:30:00-08:00")).toBe("2026-11-19T07:30:00.000Z");
+ });
+
+});
diff --git a/tests/sitemapDiscovery.test.ts b/tests/sitemapDiscovery.test.ts
index fb422da9..aabfa880 100644
--- a/tests/sitemapDiscovery.test.ts
+++ b/tests/sitemapDiscovery.test.ts
@@ -34,4 +34,27 @@ describe('operator sitemap discovery', () => {
expect(await readFile(path.join(out, 'robots.txt'), 'utf8')).toBe(robots);
expect(await readFile(path.join(out, 'sitemap.xml'), 'utf8')).toContain('https://documentdb.io/');
});
+
+ it('uses explicit content dates, not exported HTML timestamps, and excludes placeholders', async () => {
+ const directory = await mkdtemp(path.join(tmpdir(), 'documentdb-sitemap-dates-'));
+ directories.push(directory);
+ const out = path.join(directory, 'out');
+ const pages = {
+ '': 'No content date',
+ dated: '',
+ invalid: '',
+ placeholder: '',
+ };
+ for (const [slug, html] of Object.entries(pages)) {
+ const target = path.join(out, slug);
+ await mkdir(target, { recursive: true });
+ await writeFile(path.join(target, 'index.html'), html);
+ }
+ execFileSync(process.execPath, [generator], { cwd: directory });
+ const sitemap = await readFile(path.join(out, 'sitemap.xml'), 'utf8');
+ expect(sitemap.match(//g)).toHaveLength(1);
+ expect(sitemap).toContain('2026-11-18T00:00:00.000Z');
+ expect(sitemap).not.toContain('/placeholder/');
+ expect(sitemap).toContain('/invalid/');
+ });
});