Repository navigation
docs(databases): Unified Databases guide: create, context[] ingest, status with collection, refusals (OSS-117) - #408
adityamishra-hydradb wants to merge 4 commits into
Conversation
The public docs did not describe unified databases: how to create one with type "unified", the context[] ingest shape, what a unified database refuses, how to tell the layout, and that status polls need the ingest collection. Add a guide with Python and cURL examples, a nav entry, a link from Databases and Collections, and teach the examples test fake the context[] shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Mira score 5/5 · 🟢 Good to merge
Users get a guide to creating unified databases, ingesting content, checking progress, querying, and understanding rejected requests. The PR adds discovery links and extends example tests to validate Before this ships · 1 with another PR, 1 in place
How this PR works · 5 changes, 5 low riskNew users lacked a guide for unified databases and encountered errors when following split database examples. This PR documents creation, ingestion, polling, querying, and rejected inputs. It also extends the example checker and makes the guide discoverable. 1. Explain how to create and identify unified databases · 🟢 low risk ·
|
✅ Mintlify HygieneNo issues found. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
For humans
The public docs did not explain unified databases. A new user could not find how to create one, what to send, or why the quickstart fails on one (
400 CORPUS_TYPE_UNSUPPORTED). This PR adds one guide page, Unified Databases (essentials/v2/unified-databases.mdx), under Core Concepts, after Databases and Collections.The page covers:
type: "unified") and wait until it is ready.GET /databases/statusreturns"type": "unified". A split database has notype.context[]: a text item and a conversation item, the request and item fields, and the limits (100 items, 1 MiB per item, 8 MiB per request, unknown fields refused).errored/FILE_NOT_FOUNDwhile the item is still in progress.type. Atypeis ignored with atype_ignored_on_unifiedwarning.Every example ran on prod (see Proof). Examples are Python and cURL. The TypeScript SDK that the docs test pins (2.1.8) has no
contextortypefield yet, so the page has no TypeScript tab.Not in this PR, and why:
essentials/v2/bring-your-own-graph.mdx(endpoints, Cypher support, limits, errors). This page links to it forgraph_payload.Merge order: after PR 400 (the spec on
mainhas nocontextortypeonPOST /databases) and PR 407 (moves the examples test tohydradb-sdk2.1.8, the first Python SDK withcontextandtype). This branch is offmain, not stacked.For agents
application/internal/api/handler/context.go@Param contextandmemories.UnifiedIngestRequest/IngestIteminapplication/internal/domain/memories/unified_ingest.go(hydradb-applicationmain).scripts/test_docs_examples.py: the fake now checkscontextitems (allowed keys, text XOR conversation, roles) and answers with eachcontext_id. The helper sits next toFakeHydraDB, away from the lines PR 400 changes.llms.txtregenerated withscripts/generate_llms_index.py.Proof
A = base
main@484c1ce/ B = this PR @9248d8fAudit re-run on 2026-12-04 (03:05 to 03:20 UTC) on the current head. Prod
api.hydradb.com, own throwaway databasesdogfood-audit-docs-408p(Python),-408c(cURL),-408s(split),-408q(SDK 2.1.7 try, never created); all deleted after. Node 24.11.0, Python 3.12, clean venvs. Raw outputs:~/hydradb/dogfood/proof/mintlify-docs-408/.1. A/B on the real repro
The finding: the docs did not explain unified databases. A user who follows the split-style docs on a unified database gets
400 CORPUS_TYPE_UNSUPPORTED.docs.hydradb.com/essentials/v2/unified-databases(A = live site, built frommain)query.mdx,introduction.mdx), no how-totype = unified; ingest:refund-policy,chat-ana-0412queued; status: bothcompleted; query: both items returnedtype: unified, ready (ridfbf7dc49-5349-4e72-ad4e-85e658ec8d68)queued(ridcb8b5ce8-3477-4276-a0b2-da3342c7256a)completed(rid0f600989-71ec-4a79-8125-149cdd8e1776)Refund policywithmetadata {"team":"billing"},additional_metadata {"source":"help-center"}(rid0de65937-3c7e-4a78-b500-144df1533560)Commands:
python -I scripts/py_blocks.py(the 4 blocks copied verbatim from the page,acme_unifiedreplaced by the test database; filepython-blocks-prod.txt),scripts/curl_blocks.sh(filecurl-blocks-prod.txt),live-docs-A.txt.2. Regression: the CI
validatestepsCommand:
docs-ci.sh <venv>(the CI steps in order, thenpnpm mintlify validateandpnpm mintlify broken-links). Filesci-A-484c1ce-sdk2.1.7.txt,ci-B-9248d8f-sdk2.1.7.txt,ci-B408-merged-with-407-sdk2.1.8.txt,ci-B408+407+400-sdk2.1.8.txt.unittest discover -s scripts, SDK 2.1.7 (CI pin today)validateis red onmain)type/contextmissing from the 2.1.7 SDK and frommain'sopenapi.json; L200 fails only because L87 did not run)main's spec has notype/context)a51a850(SDK 2.1.8), the stated merge orderapp_knowledgesamples (4 cookbooks +context.mdx:229), see PR 407generate_llms_index.py --checkSo the red
validatecheck on this PR is expected until PR 400 and PR 407 merge. The page blocks pass in the merge order.3. Smoke: build, links, and the prose claims on prod
pnpm mintlify validatepnpm mintlify broken-linkstype<absent>(rid3d1e83e0-212c-459b-9925-828ed44d1dad)GET /databasesdetails[]{408c, type: unified},{408s}(no type)type: memorytype_ignored_on_unified(rid464ac264-e53b-4932-806b-fa93b93e6581)metadata_filters {"team":"billing"}Refund policy(rid427ba6b4-e918-4e4e-9672-eff1f401089a)contextqueued(ridd345ba48-23ec-4592-9372-36ec4479252f)4. Stress
N/A: a docs change. The one bound on the page (100 items) is checked as an edge case.
5. Edge cases (section 7 of the page, and the polling warning)
collection(in progress and aftercompleted)errored/FILE_NOT_FOUNDboth times (ridseac65066…,b4c9c6c0…)type=memoryon ingestCORPUS_TYPE_UNSUPPORTED(ridae19c79b-c66b-4e8f-a657-3e1c931c03b6)memoriesCORPUS_TYPE_UNSUPPORTED"this database is unified: send the content ascontext" (rid7a2862ae…)memoriesINVALID_INPUTunknown field, lists accepted fields (ridbd7184f4…)text+conversation/ rolebot/ 101 items /happened_attimestampINVALID_INPUTeach (ridsed595617…,2774f798…,143dadd0…,c06db3f6…)TypeError: … unexpected keyword argument 'type'; the page says 2.1.8 or later🤖 Generated with Claude Code