Skip to content

docs(byog): key graph_payload entities by your own id, replace a graph with an upsert - #392

Merged
SohamRatnaparkhi merged 1 commit into
mainfrom
gunmay/byog-entity-id-docs
Nov 26, 2026
Merged

SohamRatnaparkhi merged 1 commit into
mainfrom
gunmay/byog-entity-id-docs

Conversation

@gunmay-hydradb

@gunmay-hydradb gunmay-hydradb commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

BYOG docs for the entity id in graph_payload (hydradb-application #4106) and for replacing a source's graph with an upsert.

  1. essentials/v2/bring-your-own-graph.mdx, new "Key entities by your own ID": the same id is always the same entity in a database & collection, whatever name or type a source sends; different ids stay apart; an entity with an id is never merged by name. put the key in id & the readable name in name, since graph search matches question words against name. exact match, 256 bytes, no padding; id:/eid: + 32 hex namespaces are reserved.
  2. same page, new "Replace a graph": upsert the source with a new graph_payload (upsert defaults to true), no delete needed. the source's previous relations are replaced, not merged; relations other sources wrote to a shared entity stay; upsert=false returns E9003. it also says the document is processed again, because today it is: an upsert re-chunks & re-embeds before the new graph is written.
  3. api-reference/v2/endpoint/ingest-context.mdx: entities[].id row, namespace & identifier rows updated, the cap line now per graph node, examples send id.
  4. merge after #4106 is deployed to prod: until then id is ignored & entities key by namespace, type & name.

checks: mintlify-hygiene check clean, scripts/test_docs_consistency.py & test_docs_discovery.py pass.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…h with an upsert

The BYOG guide and the ingest reference document entities[].id (hydradb-application
#4106): the same id is always the same entity in a database and collection,
whatever name or type a source sends, and an entity with an id is never merged by
name. The 500-relation cap is per graph node, so entries sharing an id count
together, and the id:/eid: + 32 hex namespace shapes are reserved.

A new "Replace a graph" section says what an upsert with a new graph_payload does
today: the source's previous relations are replaced, not merged, other sources'
relations stay, no delete is needed, and the document is processed again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: gun29may <gunmayjhingran29@gmail.com>
@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cortex-ai 🟢 Ready View Preview Nov 25, 2026, 12:55 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

Copy link
Copy Markdown

✅ Mintlify Hygiene

No issues found.

@openhack-agent

Copy link
Copy Markdown

✅ OpenHack Summary

Security review of docs(byog): key graph_payload entities by your own id, replace a graph with an upsert. 2 changed files; 0 findings at or above the low reporting threshold.

P1: Critical 0   P2: High 0   P3: Medium 0   P4: Low 0

Confidence Score: 5/5

No reportable security findings were detected in this scan.

Security merge-readiness rubric: 1 = critical, 2 = high, 3 = medium, 4 = low, 5 = no reportable findings. This score reflects scan findings, not a guarantee of correctness or complete coverage.

Files Needing Attention: None

Important Files Changed
  • api-reference/v2/endpoint/ingest-context.mdx (modified)
  • essentials/v2/bring-your-own-graph.mdx (modified)

Last reviewed commit: a2c0f24 · View review on OpenHack


TIP: Mention @openhack-agent in a PR comment to request a review or ask a question. Use @openhack-agent fix all for every finding, or @openhack-agent fix unresolved threads for open review threads only.

@openhack-agent openhack-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OpenHack reviewed this commit. See the OpenHack Summary for the confidence score and fix actions.

@SohamRatnaparkhi
SohamRatnaparkhi merged commit 484c1ce into main Nov 26, 2026
8 of 9 checks passed
@SohamRatnaparkhi
SohamRatnaparkhi deleted the gunmay/byog-entity-id-docs branch November 26, 2026 11:53

This branch was successfully deployed

1 active deployment
staging — a2c0f249 Deployed Nov 25, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants