Endpoint references
Lifecycle
Why bothtype=knowledge and app_knowledge? They answer different questions.
typepicks the store:knowledge(documents, app sources, and facts) ormemory(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) orapp_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, andtype: "all"onPOST /querysearches both from the same scope. - IDs: Unique identifiers returned by
/context/ingest. You can assign custom IDs usingidindocument_metadata,app_knowledge, ormemoriesitems. Use them for polling status, inspecting content, and deleting context. - Metadata and Filters covers metadata fields, ingestion, updates, and filtering.
Forceful relations and metadata
Userelations.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
Related
- Knowledge: forceful relations: linking sources at ingestion
- Memories: memories vs knowledge, when to use which
- Metadata: database-level vs document-level metadata
- Query: retrieve ingested content
