Knowledge
Knowledge lets a model search your own documents. You make a knowledge base, add documents to it, and name it in a request: the model calls the hosted search tool when it needs to, HIPS searches the base and hands the model numbered passages with their sources, and the answer records which passages the model was given. It works with every model whose tool calls are validated, and it follows OpenAI's vector store API and its file_search tool, so the OpenAI SDKs call it with the HIPS key and base URL.
Knowledge is on the paid plans.
- A base is a
vector_storewhose id is itskb_id. It belongs to one workspace and is never shared with another. - It has one embedding model, chosen at creation and fixed for its life, and its own requirements: a
pool(Auto by default, orcertified) and aregion(eu; another is refused with 400region_unavailable). - Its requirements bind its ingestion and every request that searches it: a request whose own requirements cannot meet the base's is a 400
requirement_conflictnaming both, never placed where the base does not allow.
Upload a file with POST /v1/files and purpose: "user_data" (assistants is taken as its alias), then add it to the base. Each document is read in isolation, normalized, cut into chunks along its structure and embedded on GPUs, with a stage you can watch.
Formats
| Format | Read |
|---|---|
| Plain text, Markdown | As it is |
| HTML | Its main content, as Markdown |
| PDF with a text layer | The text layer, page by page, so a passage knows its pages |
.docx, .pptx, .xlsx | Headings, paragraphs, lists and tables; slides in order with their notes; each sheet a table |
| CSV, JSON | A table, and indented text |
| Scanned PDFs, images | Not read: they fail with empty_text |
- Format
- Plain text, Markdown
- Read
- As it is
- Format
- HTML
- Read
- Its main content, as Markdown
- Format
- PDF with a text layer
- Read
- The text layer, page by page, so a passage knows its pages
- Format
.docx,.pptx,.xlsx- Read
- Headings, paragraphs, lists and tables; slides in order with their notes; each sheet a table
- Format
- CSV, JSON
- Read
- A table, and indented text
- Format
- Scanned PDFs, images
- Read
- Not read: they fail with
empty_text
Stages
| Stage (`hips.stage`) | `status` | What happens |
|---|---|---|
queued | in_progress | Waiting for a slot, oldest first |
extracting | in_progress | The file's text is read and normalized |
chunking | in_progress | Cut along its structure |
embedding | in_progress | Embedded; hips.progress counts the chunks. A model HIPS cannot reach keeps it here with hips.delayed: true, never failed for HIPS's outage |
completed | completed | Searchable |
failed | failed | last_error with its code and sentence |
cancelled | cancelled | A file batch canceled before the document was read |
- Stage (`hips.stage`)
queued- `status`
in_progress- What happens
- Waiting for a slot, oldest first
- Stage (`hips.stage`)
extracting- `status`
in_progress- What happens
- The file's text is read and normalized
- Stage (`hips.stage`)
chunking- `status`
in_progress- What happens
- Cut along its structure
- Stage (`hips.stage`)
embedding- `status`
in_progress- What happens
- Embedded;
hips.progresscounts the chunks. A model HIPS cannot reach keeps it here withhips.delayed: true, never failed for HIPS's outage
- Stage (`hips.stage`)
completed- `status`
completed- What happens
- Searchable
- Stage (`hips.stage`)
failed- `status`
failed- What happens
last_errorwith its code and sentence
- Stage (`hips.stage`)
cancelled- `status`
cancelled- What happens
- A file batch canceled before the document was read
Failures
| Code | When | What to do |
|---|---|---|
unsupported_file | Not a format above | Send another format |
file_unreadable | Protected, encrypted or broken | Send a readable copy |
empty_text | No text read (a scan, an image) | Send a file with a text layer |
too_large, too_many_pages | Over the bounds per file | Split it |
limit_reached | The workspace's chunk limit | Retry once there is room |
embedding_failed | The embedding model refused its input | Retry |
- Code
unsupported_file- When
- Not a format above
- What to do
- Send another format
- Code
file_unreadable- When
- Protected, encrypted or broken
- What to do
- Send a readable copy
- Code
empty_text- When
- No text read (a scan, an image)
- What to do
- Send a file with a text layer
- Code
too_large,too_many_pages- When
- Over the bounds per file
- What to do
- Split it
- Code
limit_reached- When
- The workspace's chunk limit
- What to do
- Retry once there is room
- Code
embedding_failed- When
- The embedding model refused its input
- What to do
- Retry
A failed document stays listed with its reason until it is deleted, and counts toward no total, limit or storage.
Name the hosted tool and the base in tools; the model decides when to search and writes the query. One base a search.
| Route | The tool entry | What the answer records |
|---|---|---|
POST /v1/chat/completions | {"type": "hips:knowledge_search", "parameters": {"knowledge_base_ids": ["kb_..."], "max_num_results": 5}} | The calls in a top-level hips.tool_calls of the answer, each with its results; message.tool_calls holds only your own functions' calls |
POST /v1/messages | {"type": "hips:knowledge_search", "name": "knowledge_search", "knowledge_base_ids": ["kb_..."]} | A server_tool_use block and its hips_tool_result block, one Anthropic search_result block per passage |
POST /v1/responses | {"type": "file_search", "vector_store_ids": ["kb_..."]} | A file_search_call item with its queries, and its results when include holds file_search_call.results; file_citation annotations where the model cites a passage |
- Route
POST /v1/chat/completions- The tool entry
{"type": "hips:knowledge_search", "parameters": {"knowledge_base_ids": ["kb_..."], "max_num_results": 5}}- What the answer records
- The calls in a top-level
hips.tool_callsof the answer, each with itsresults;message.tool_callsholds only your own functions' calls
- Route
POST /v1/messages- The tool entry
{"type": "hips:knowledge_search", "name": "knowledge_search", "knowledge_base_ids": ["kb_..."]}- What the answer records
- A
server_tool_useblock and itships_tool_resultblock, one Anthropicsearch_resultblock per passage
- Route
POST /v1/responses- The tool entry
{"type": "file_search", "vector_store_ids": ["kb_..."]}- What the answer records
- A
file_search_callitem with itsqueries, and itsresultswhenincludeholdsfile_search_call.results;file_citationannotations where the model cites a passage
- The model must have validated tool calls in the pool the request resolves to (
hips.tool_callson Models); otherwise a 400unsupported_parameter. - A hosted tool with no price per call in effect is refused with 400
tool_not_available, and nothing is charged. usage.server_tool_use.knowledge_search_requestscounts the searches that ran; the token counts are every pass's, summed.- On Messages and Responses,
stream: truewith the tool is a 400unsupported_value: it is served on whole answers. On chat completions a streamed request is answered once the search loop is done. - A base that is not the workspace's, or is being deleted, is a 404
knowledge_base_not_foundbefore the model runs.
POST /v1/vector_stores/{id}/search runs the same search without a model and answers OpenAI's search results page (Vector stores).
The record in the answer is the citation that always holds: which passages the model was given, from which document and where (file, heading path, byte offsets, pages). Where the model wrote a marker [n] naming a passage of the request, the Responses route adds a file_citation annotation at the marker and leaves the text as the model wrote it. Whether a model writes markers is the model's: the record is the guarantee, the annotations best effort.
| Base pool | Who reads the documents |
|---|---|
| Auto | At ingestion, every chunk is an embedding input on a GPU of whichever pool serves it, a provider's device included; at a search, the passages reach the device or server that serves the request's next pass, under its sandbox and data handling, as any prompt does |
| Certified | Only the Certified pool's GPUs read the chunks and the passages |
- Base pool
- Auto
- Who reads the documents
- At ingestion, every chunk is an embedding input on a GPU of whichever pool serves it, a provider's device included; at a search, the passages reach the device or server that serves the request's next pass, under its sandbox and data handling, as any prompt does
- Base pool
- Certified
- Who reads the documents
- Only the Certified pool's GPUs read the chunks and the passages
The store, the chunks and the search run on the platform in the European Union (Ireland); a search from another region is one round trip there. The passages are data for the model, never instructions.
| Limit | Value |
|---|---|
Documents a workspace keeps as user_data files | Past the limit, 400 limit_reached |
| Ingestion at once and per hour | Past the limit, 429 rate_limit_exceeded with param: "knowledge_ingest" |
| Searches | Counted as requests of your limits; 429 with param: "knowledge_search" |
| Bases a search | One base |
- Limit
- Documents a workspace keeps as
user_datafiles - Value
- Past the limit, 400
limit_reached
- Limit
- Ingestion at once and per hour
- Value
- Past the limit, 429
rate_limit_exceededwithparam: "knowledge_ingest"
- Limit
- Searches
- Value
- Counted as requests of your limits; 429 with
param: "knowledge_search"
- Limit
- Bases a search
- Value
- One base
- Removing a document from a base removes its text, chunks and vectors at once; the File stays until you delete it.
- Deleting a base marks it so nothing reads it, then purges it.
- A base set to expire with
expires_afteris purged after that many days unused; HIPS sets no expiry of its own. - Reads, exports and deletes answer whatever the workspace's state, so you can always take your documents out:
GET /v1/vector_stores/{id}/files/{file_id}/contentgives a document's text.
| What | How it is billed |
|---|---|
| Ingestion | The input tokens its embeddings read, at the base's embedding model's own rate per million (decided 2026-11-13), on your usage as knowledge_ingest |
| Storage | A base's stored bytes, and a document's File while kept, at the storage price of $0.10 per GB-month (decided 2026-11-07) |
| A search | Per call, the query's embedding included; a rerank on top at the reranker's rate per input token |
| A failed call, an outage | Not charged |
- What
- Ingestion
- How it is billed
- The input tokens its embeddings read, at the base's embedding model's own rate per million (decided 2026-11-13), on your usage as
knowledge_ingest
- What
- Storage
- How it is billed
- A base's stored bytes, and a document's File while kept, at the storage price of $0.10 per GB-month (decided 2026-11-07)
- What
- A search
- How it is billed
- Per call, the query's embedding included; a rerank on top at the reranker's rate per input token
- What
- A failed call, an outage
- How it is billed
- Not charged
Knowledge in the side menu: the bases, a base with its documents and their stages, uploads, a search to try, and the storage and its cost.
Related sheets
- Sheet
- 18 of 21
- Updated
- 2026-11-18