AiHummer docs
v1.0.x
RU EN

Knowledge / RAG

v1.0.x · updated 2026-06-26

Knowledge is how AiHummer grounds answers in your documents rather than the model’s training data. You ingest content, the agent retrieves the relevant passages with the search_knowledge tool, and answers come back with citations. For harder questions, the deep_research tool runs a multi-step investigation and produces a cited report. Knowledge is administered under /v1/admin/knowledge/* and /v1/admin/knowledge/connectors/*.

Ingesting content

You can ingest documents, PDFs and URLs into the knowledge base. Ingested content is indexed so it can be retrieved at answer time and attributed back to its source.

[!TIP] Ingest the canonical version of a document once and let agents cite it, rather than pasting long passages into prompts. Cited retrieval keeps answers verifiable and your context small.

Grounded answers and the tools

Two tools expose the knowledge base to an agent:

ToolWhat it does
search_knowledgeRetrieves relevant passages and grounds the answer with citations.
deep_researchRuns a multi-step research process across the knowledge base and produces a cited report.

Both arrive in the turn as tool results, never as injected instructions — the same prompt-injection discipline applied everywhere in AiHummer. Answers carry citations so a reader can trace a claim back to its source.

[!NOTE] deep_research is for genuine multi-step questions — it costs more time and tokens than a single search_knowledge call. Reach for it when one retrieval is not enough.

Knowledge connectors

Beyond manual ingest, knowledge can be pulled from external sources via connectors managed under /v1/admin/knowledge/connectors/*:

ConnectorStatus
Google Drive (Service Account)Live
Microsoft GraphImplemented, not live-proven

[!WARNING] The Microsoft Graph connector is implemented but has not been validated against a live tenant. Treat it as preview and verify it in your environment before relying on it in production.

[!NOTE] Notion and Slack knowledge connectors are not available — they were dropped. Do not plan around them.

Vector store and embeddings

By default, retrieval can run on an in-memory store with a hash embedder, which is enough to get started. For production-quality semantic retrieval, point AiHummer at a real vector store and embedder:

AIHUMMER_QDRANT_URL=http://localhost:6333
AIHUMMER_EMBEDDER_URL=http://localhost:8081

When these are set, ingestion and search_knowledge use the external vector store and embedder instead of the in-memory fallback.

Admin API

ResourcePurpose
/v1/admin/knowledgeKnowledge base management, including ingest
/v1/admin/knowledge/connectorsConfigure KB connectors (Drive, MS Graph)

Where to next