Skip to main content

Endpoint references

Lifecycle

Why both type=knowledge and app_knowledge? They answer different questions.
  • type picks the store: knowledge (documents, app sources, and facts) or memory (preferences, decisions, and past conversations). It routes the ingest to the right store.
  • Within type=knowledge, you pick the payload shape: documents (binary documents HydraDB will parse: PDFs, DOCX, CSV) or app_knowledge (a JSON array of already-extracted content from your app: Slack messages, Notion pages, web pages). You can send both in the same request.

Core ingestion concepts

  • Knowledge vs. memories: Knowledge includes documents, app sources, and facts your AI uses. Memories are preferences, decisions, and past conversations. Both live in a collection, and type: "all" on POST /query searches both from the same scope.
  • IDs: Unique identifiers returned by /context/ingest. You can assign custom IDs using id in document_metadata, app_knowledge, or memories items. Use them for polling status, inspecting content, and deleting context.
  • Metadata and Filters covers metadata fields, ingestion, updates, and filtering.

Forceful relations and metadata

Use relations.ids to add explicit “see also” links between documents. In thinking mode, HydraDB can return the linked context alongside the matching passages. Linked sources come back in the query response’s additional_context (thinking mode). Set relations on the same document_metadata item as the file’s metadata:
Python SDK