Skip to content

docs(v2): Guides cleanup (1/3) - #309

Open
SohamRatnaparkhi wants to merge 38 commits into
mainfrom
t3code/rewrite-docs-declutter
Open

SohamRatnaparkhi wants to merge 38 commits into
mainfrom
t3code/rewrite-docs-declutter

Conversation

@SohamRatnaparkhi

@SohamRatnaparkhi SohamRatnaparkhi commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Introduction: "the unified context engine for AI". What HydraDB is, how you get it back, the full benchmark set, what else HydraDB has (connectors with access control, SDKs, tools), what you can build, get started. The Quickstart is linked at the top.
  • Core Concepts: three terms: Database (with collections inside), Context (knowledge, memory, app source), Query (with the context graph inside). Adds the company-brain guidance: one collection for everything, with metadata filters and access control for isolation.
  • Quickstart: builds a context layer with both knowledge and a memory, then one type: "all" query over both collections. Restores "What you have built".
  • Knowledge: upload files, ingest app sources, wait for indexing, retrieve, metadata, forceful relations, field reference. App sources point to the App Sources guide. Relation targets use target.source_id and the example sends relations.ids, which is what returns linked text.
  • Memories: save, scope to one user, infer, input shapes, retrieve, update or delete, field reference.
  • Connectors: four-call setup first, with Python, TypeScript, and cURL for every call (checked against SDK 2.1.7 and a mock server), then status, changing a connector, custom ingestion instructions, metadata, permissions, several accounts. Names the live provider catalog (70 on production).
  • Query: one request with a response walkthrough, recipes, tuning, scope, relationships, acl, parameter reference. Every default re-verified against the backend.
  • Semantic Search and Context Graphs: open with what the reader can do; duplicate Query material removed.
  • Multi-tenancy: one user's collection on ingest and query first; patterns; how scoping works; the legacy field migration last.
  • Metadata: declare a field, ingest with it, filter on it; operator caveats are plain labeled paragraphs rather than warning boxes; then the two layers, operators, limits, adding fields, updating metadata, listing. Drops the searchable schema flag, which the backend treats as a no-op.
  • Access Control: set an ACL and query as the caller first, with a worked example of which documents each query acl returns; principals; connector capture; change or revoke. Corrects the claim that uploaded files take acl at ingest; only app source items do, and any source can get one through the metadata PATCH. No longer points readers at rbac_support on the providers endpoint, which is always false there.
  • Webhooks: register first, then the payload, signature verification, deliveries and retries, signing secret rotation. 35 expanded code blocks become 11 collapsed accordions; every table and verified fact kept.
  • Architecture and Glossary: repetition with Query and Metadata removed; Glossary adds Class.
  • Plugins: Claude Code documents the plugin version that reads the new env names.
  • AGENTS.mdx: metadata placement, memory metadata as an object, envelope exceptions, retries cover 502.

Latest pass, applying the review principles to the remaining pages:

  • Query is back near main's length (1,763 words, from 2,904): tuning, scope, and relationships are short bullets with every default kept, and the parameter reference that repeated them is replaced by a link to the API reference.
  • Multi-tenancy leads with choosing a scope, with the company brain (one collection, metadata filters and ACLs for isolation) as the default.
  • Glossary keeps only HydraDB terms, grouped as Database, Context, and Query like Core Concepts.
  • Connectors and Connector Instructions lose repeated explanations; no page uses the "one user" or "material it answers from" wording.

Agent-friendliness and merge, 2026-10-09:

  • Quickstart: a Prompt card (Copy prompt, Open in Cursor) hands the integration to a coding agent, pointing it at AGENTS.md.
  • AGENTS.md: new access control rule and section (a query without acl is 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.
  • Merged with main after docs(plugins): consolidate plugins into five pages #312 (plugin consolidation). Claude Code keeps the verified HYDRADB_API_KEY (the plugin's canonical name; HYDRA_DB_API_KEY is 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-hermes is 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 runnable KEY placeholder, 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, memory relations, memory expiry_time.

This branch is merged with main after #315, and the App Sources page is identical to main.

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

SohamRatnaparkhi and others added 2 commits October 5, 2026 16:58
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>
@mintlify

mintlify Bot commented Oct 5, 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 Oct 9, 2026, 9:48 AM

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

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

✅ Mintlify Hygiene

No issues found.

@openhack-agent

openhack-agent Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ OpenHack Summary

Security review of docs(v2): Guides cleanup (1/3). 37 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
  • AGENTS.mdx (modified)
  • api-reference/v2/endpoint/create-connector.mdx (modified)
  • api-reference/v2/endpoint/update-connector-resource.mdx (modified)
  • api-reference/v2/endpoint/update-connector.mdx (modified)
  • docs.json (modified)
  • essentials/v2/access-control.mdx (modified)
  • essentials/v2/architecture.mdx (modified)
  • essentials/v2/bring-your-own-graph.mdx (modified)
  • essentials/v2/connector-instructions.mdx (removed)
  • essentials/v2/connectors.mdx (modified)
  • essentials/v2/context-graphs.mdx (modified)
  • essentials/v2/glossary.mdx (modified)
  • essentials/v2/graph-collections-byog.mdx (removed)
  • essentials/v2/knowledge.mdx (modified)
  • essentials/v2/memories.mdx (modified)
  • essentials/v2/metadata.mdx (modified)
  • essentials/v2/multi-tenant.mdx (modified)
  • essentials/v2/query.mdx (modified)
  • essentials/v2/semantic-search.mdx (modified)
  • essentials/v2/webhooks.mdx (modified)
  • get-started/v2/core-concepts.mdx (modified)
  • get-started/v2/introduction.mdx (modified)
  • get-started/v2/quickstart.mdx (modified)
  • mintlify-hygiene.toml (modified)
  • plugins/claude-code.mdx (modified)

View all 37 changed files

Last reviewed commit: bf0bc95 · 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.

@greptile-apps

greptile-apps Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no new actionable issue was established in the changes since the previous review.

Summary

The PR reorganizes the V2 Guides around onboarding and task-focused examples, consolidates connector and graph guidance, and expands the agent integration reference. The latest change places agent and coding guides in a separate V2 Plugins sidebar group while retaining MCP and CLI under Integrations.

Reviews (35) · Last reviewed commit: "docs(v2): list plugins under a single si..." · Reviewed by Greptile

Comment thread cookbooks/v2/internal-search-perplexity.mdx Outdated
Comment thread cookbooks/v2/cookbook-10-ai-financial-analyst.mdx Outdated
Comment thread essentials/v2/webhooks.mdx Outdated
- 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>
Comment thread cookbooks/v2/internal-search-perplexity.mdx Outdated
/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>
Comment thread cookbooks/v2/internal-search-perplexity.mdx Outdated
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>
Comment thread cookbooks/v2/internal-search-perplexity.mdx Outdated
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>
@SohamRatnaparkhi SohamRatnaparkhi changed the title docs(v2): declutter the V2 docs and fix verified inaccuracies docs(v2): fix verified inaccuracies across the V2 docs Oct 5, 2026
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
@SohamRatnaparkhi SohamRatnaparkhi changed the title docs(v2): fix verified inaccuracies across the V2 docs docs(v2): Guides cleanup (1/3) Oct 5, 2026
SohamRatnaparkhi and others added 2 commits October 9, 2026 09:48
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>
Comment thread plugins/coding-agents.mdx Outdated
Comment thread docs.json Outdated
… CLI

Refs PRO-2457

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Comment thread docs.json Outdated
…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>
Comment thread docs.json Outdated
Comment thread get-started/v2/quickstart.mdx Outdated
- 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>
Comment thread plugins/crewai.mdx
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
@SohamRatnaparkhi

Copy link
Copy Markdown
Contributor Author

Please reassess the remaining findings against 32cce60:

  • Ecosystem bookmarks: /plugins/ecosystem is retained with every original heading and links to the corresponding individual setup guide. The broad OpenClaw redirect is removed.
  • Package links: CrewAI and LangChain link to PyPI beside their installation commands; OpenCode links to npm in its installation step. The user-approved contribution footer stays card-free.
  • TypeScript fields: the exact Metadata, Webhooks, and Query examples were executed through the published @hydradb/sdk 2.1.7 with a mocked transport. The SDK accepts databaseMetadataSchema, nested dataType, eventTypes, generateSigningSecret, and maxResults; it serializes them to snake_case on the wire. It deserializes source_title and chunk_content to sourceTitle and chunkContent. Changing those SDK fields to snake_case would drop them. The contradictory SDK-reference prose is corrected in API PR docs(v2): API reference and response corrections (2/3) #310, per the requested Guides/API/Cookbooks split. Published source: https://registry.npmjs.org/@hydradb/sdk/-/sdk-2.1.7.tgz.
  • MCP ordering: Agent frameworks, Coding agents, MCP, CLI is the user-approved order and the current PR description. Both nested groups open by default. The earlier MCP-first proposal is superseded.

Mintlify build validation and hygiene pass. All legacy Ecosystem headings were compared with main, and each retained package link is outside the contribution footer.

Comment thread essentials/v2/metadata.mdx
Comment thread essentials/v2/connectors.mdx
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>
Signed-off-by: SohamRatnaparkhi <soham@hydradb.com>

This branch was successfully deployed

1 active deployment
staging — bf0bc950 Deployed Oct 9, 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.

1 participant