Repository navigation
docs(v2): Guides cleanup (1/3) - #309
SohamRatnaparkhi wants to merge 38 commits into
Conversation
Rewrite the V2 docs for low cognitive load and correct statements that disagree with the API on main. - Cut pitch, metaphors, repeated summaries, and diagrams that restated lists. Decision tables become bullets; field, status, and error reference tables stay. - Restore product content an earlier draft dropped: the context graph, benchmark numbers, isolation guarantee, connectors, use cases. - API reference landing page lists every endpoint group, including Connectors, Webhooks, Feedback, Subgraph, and Delete Collection. - Fix verified inaccuracies: per-file metadata lives in document_metadata items; memory item metadata is an object; query_apps defaults to true; recency_bias defaults to 0.4; max_results caps at 250; operator and/phrase require query_by text; graph_context false only applies in fast mode; type all reads one scope; envelope exceptions; real error codes. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Shorten V2 pages without dropping facts: merge repeated sections, collapse common-mistakes tables that restated warnings, and replace restatements of other pages with links. Prose is about 23% shorter in the guides and 26% in the cookbooks than on main. Also aligns pages with the API on main: 415 is only for bodies that are neither form nor JSON, dense and sparse metadata lanes are declared at database creation, document_metadata items do not take a title, and the SDK page names its envelope exceptions. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.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(v2): Guides cleanup (1/3). 37 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: bf0bc95 · View review on OpenHack
|
|
- Internal search cookbook: search() and explain_decision() now fan out across the four source collections unless one is named, so the cross-source flow reads the content it ingested. TypeScript samples use the SDK's camelCase response fields. - Financial analyst cookbook: earnings and board-memo uploads put per-file metadata in document_metadata instead of an extra app_knowledge item. Filter fields go in metadata; labels and event_time go in additional_metadata, which recency ranking reads. Chunks sort by event_time, not upload time. - Webhooks: signing can be enabled at registration with generate_signing_secret or signing_secret, or later on the signing-secret endpoint. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
/query rejects a listed collection that does not exist, and a collection is created on its first write. The internal search cookbook now asks HydraDB which source collections exist (GET /databases/collections) and searches only those, so a reader who wires up one source can search right away. Applies to search() and explain_decision() in Python and TypeScript. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
The provenance modules import source_collections from the qa module, which ran its example query at import time. Guard the examples in qa and provenance (Python and TypeScript) so they run only when the file is executed directly. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Drop documentation for options the API on main does not act on: - enable_match / filterable: the v2 filter path never reads the flag, and no query matches on user metadata fields with it. Removed from guidance, schema field tables, and code samples. A schema field needs only name and data_type; filters match declared metadata fields as before. - Memory item relations: memories[] items have no relations field (the value is never read), so the "Connect related memories" section, field rows, and sample keys are gone. relations on document_metadata and app_knowledge items still work and stay documented. - Memory item expiry_time: no such field exists; rows removed. Also drops the stale claim that schema updates create MongoDB filter indexes, and words vector sync in terms of embedding flags. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
pathToFileURL throws when process.argv[1] is undefined (REPL or node -e), which would make the qa and provenance modules fail to import. Check the argument first. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Review found the rewrite flattened the docs: it cut voice, examples, tables, diagrams, and context. Every V2 page now starts again from its original text on main, with only these changes on top: - Verified factual corrections (defaults, limits, error codes, field shapes, envelope and scoping rules, endpoint behavior). - Code sample bug fixes, including the reviewed cookbook fixes. - Removals requested in review: enable_match/filterable, memory-item relations and expiry_time. - Missing facts added in the original format (for example the endpoint inventory rows for Connectors, Webhooks, Feedback, Subgraph). - Broken links, anchors, and diagram syntax. - Punctuation only: dashes and arrows in prose replaced, bold labels end with a colon, typos fixed. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Main consolidated the plugin pages (#312). Resolved by taking main's plugin pages and keeping this branch's verified fixes: Claude Code reads HYDRADB_API_KEY (HYDRA_DB_API_KEY is a deprecated alias, per the plugin's config.mjs and README), so the Codex section no longer says the two plugins use different key names. The OpenClaw page moved to Ecosystem; the Introduction links there. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
…ide's gaps Quickstart: a Prompt card (Copy prompt, Open in Cursor) lets a reader hand the integration to a coding agent. It points the agent at AGENTS.md, asks for the key from the environment, uses the official SDK, and sends acl for signed-in users. AGENTS.md: - New rule and section on access control: a query without acl is unfiltered, how principals match, and a worked example. - New section on connectors: when to prefer one over hand-written app_knowledge ingestion, the four-call setup with Python and TypeScript (run against a mock server, type-checked against SDK 2.1.7), and the rules agents get wrong. - Scoping follows the company-brain guidance: one collection with metadata_filters and acl; separate collections only for data that must never meet. Drops the rule that contradicted it. - One method table covers all 44 public methods with Python and TypeScript names, replacing two partial tables of 13. - Notes the SDKs' built-in retries; the checklist gains acl, connector, and company-brain items. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
…er wants
The Plugins group mixed a server, a terminal tool, and ten memory
plugins split across two pages with no visible logic ("Claude Code /
Codex" and a catch-all "Ecosystem"). It is now Integrations, in both
the v1 and v2 sidebars:
- MCP server: the one connection most AI tools use (retitled).
- Coding agents: Claude Code, Codex, Cursor, OpenCode, Muse Code, and
Grok Build, one section each, followed by the shared engine's
commands, modes, and config variables.
- Agent frameworks: Hermes, OpenClaw, CrewAI, and LangChain.
- CLI: unchanged.
Content moves as written. The star-request blocks become a plain
Source code list; the Codex note no longer says its API key variable
differs; sub-tenant wording becomes collection; arrows in a table
become colons. Old URLs (/plugins/claude-code, /hermes, /ecosystem,
/openclaw) redirect to the new pages. The Introduction's Tools bullet
names the two categories instead of listing every product.
Refs PRO-2457
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
… CLI Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
…oups Integrations now mirrors Usage: Agent frameworks (Hermes, OpenClaw, CrewAI, LangChain) and Coding agents (Claude Code, Codex, Cursor, OpenCode, Muse Code, Grok Build) are nested groups, collapsed by default, followed by MCP and CLI. The shared modes and config variables stay on the Claude Code page, and the other engine plugins link there. /plugins/ecosystem now redirects to /plugins/openclaw. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
- Bring Your Own Graph: a runnable KEY placeholder; DELETE /byog/databases on a standard-created database drops only its graph collections and returns deleted: false, as the backend does; the migration script says it copies one label and one relationship type. - Quickstart: setup checklist in walkthrough order; the agent prompt asks the reader to set the API key, not paste it; 70 apps including Slack, Gmail, and Notion. - Introduction: connector permissions apply where the provider supports them, and filter queries that send acl. - Query: expire cached results when content or permissions change. - Redirect the two combined plugin URLs from earlier review rounds. Refs PRO-2457 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Replace the bare "Repo: ... Package: ..." lines with a short section that says the plugin is open source and where to open issues, with a GitHub card and a PyPI or npm card where a package is published. The MCP and CLI pages use the same section. The Hermes pip tab now installs from GitHub, since hydradb-hermes is not on PyPI. Refs PRO-2457 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
133f19c to
1154e92
Compare
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
|
Please reassess the remaining findings against 32cce60:
Mintlify build validation and hygiene pass. All legacy Ecosystem headings were compared with main, and each retained package link is outside the contribution footer. |
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Reworks the V2 Guides so a first-time developer can follow them: every page opens with what the thing is and the call that uses it, shows one concrete request with a table explaining each property, then builds up the concepts in the order a developer meets them. Code is collapsed behind Python, TypeScript, or cURL accordions, so the first screen shows the choices rather than code. This is the shape that landed in App Sources (#315). API Results is in #310; cookbooks are in #311.
Navigation: Get Started (Introduction, Quickstart, Core Concepts), then Usage with Ingestion (Knowledge, App Sources, Memories, Connectors, Webhooks), Retrieve, and Bring Your Own Graph, then Organize, Understand, Integrations, Plugins, and For Agents. The two Bring Your Own Graph pages are merged into one, carried over from #304, and Custom Ingestion Instructions is folded into Connectors; both old URLs redirect.
Page by page:
type: "all"query over both collections. Restores "What you have built".target.source_idand the example sendsrelations.ids, which is what returns linked text.searchableschema flag, which the backend treats as a no-op.aclreturns; principals; connector capture; change or revoke. Corrects the claim that uploaded files takeaclat ingest; only app source items do, and any source can get one through the metadata PATCH. No longer points readers atrbac_supporton the providers endpoint, which is always false there.Latest pass, applying the review principles to the remaining pages:
Agent-friendliness and merge, 2026-10-09:
aclis unfiltered), a connectors section with verified Python and TypeScript, company-brain scoping in place of the old "metadata filters are not a substitute for collections" rule, one method table for all 44 public methods, and a note on the SDKs' built-in retries.mainafter docs(plugins): consolidate plugins into five pages #312 (plugin consolidation). Claude Code keeps the verifiedHYDRADB_API_KEY(the plugin's canonical name;HYDRA_DB_API_KEYis a deprecated alias), so the Codex section no longer says the two plugins use different key names.Integrations, 2026-10-09: in V2, Integrations lists MCP and CLI first. A separate Plugins heading lists Hermes, OpenClaw, CrewAI, LangChain, Claude Code, Codex, Cursor, OpenCode, Muse Code, and Grok Build directly, without nested categories. Every plugin has its own page with its content as written and a repo link. The shared modes and config variables stay on the Claude Code page, and the other engine plugins link there. The old Ecosystem URL is retained as a compact link page with its original section headings, preserving fragment bookmarks for the individual setup guides.
Source and support, 2026-10-09: every integration page, including MCP and CLI, ends with a Feedback and contributions heading and a short sentence linking directly to its GitHub issue tracker and repository. Cards are removed; package installation stays in the setup instructions. The Hermes pip tab installs from GitHub, since
hydradb-hermesis not on PyPI.Review fixes, 2026-10-09: Bring Your Own Graph keeps main's note that deleting a standard-created database drops only its graph collections and returns
deleted: false(checked in the backend), gets a runnableKEYplaceholder, and says the migration script copies one label and one relationship type. The Quickstart checklist follows the walkthrough order, its agent prompt asks the reader to set the API key rather than paste it, and Query caching expires entries when permissions change.Removed everywhere because the code ignores them:
enable_match,filterable, memoryrelations, memoryexpiry_time.This branch is merged with
mainafter #315, and the App Sources page is identical tomain.Validation: Mintlify build validation, broken links, hygiene (including anchors), MDX compile, label and dash checks all pass. Facts were verified against the backend on main, the Python SDK 2.1.5, and the TypeScript SDK 2.1.7.
🤖 Generated with Claude Code