Repository navigation
docs(byog): key graph_payload entities by your own id, replace a graph with an upsert - #392
Conversation
…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>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
✅ Mintlify HygieneNo issues found. |
✅ OpenHack SummarySecurity 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. Confidence Score: 5/5No 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
Last reviewed commit: a2c0f24 · View review on OpenHack
|
BYOG docs for the entity
idingraph_payload(hydradb-application #4106) and for replacing a source's graph with an upsert.essentials/v2/bring-your-own-graph.mdx, new "Key entities by your own ID": the sameidis always the same entity in a database & collection, whatevernameortypea source sends; different ids stay apart; an entity with an id is never merged by name. put the key inid& the readable name inname, since graph search matches question words againstname. exact match, 256 bytes, no padding;id:/eid:+ 32 hex namespaces are reserved.graph_payload(upsertdefaults to true), no delete needed. the source's previous relations are replaced, not merged; relations other sources wrote to a shared entity stay;upsert=falsereturnsE9003. it also says the document is processed again, because today it is: an upsert re-chunks & re-embeds before the new graph is written.api-reference/v2/endpoint/ingest-context.mdx:entities[].idrow,namespace&identifierrows updated, the cap line now per graph node, examples sendid.idis ignored & entities key by namespace, type & name.checks:
mintlify-hygiene checkclean,scripts/test_docs_consistency.py&test_docs_discovery.pypass.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.