Agents & knowledge bases
AI agents with a knowledge base that answer from your data.
An agent searches your documents and your website’s pages, counts and filters rows in your spreadsheets with SQL, and calls your HTTP tools. AcruxCore runs the whole loop on the server, so your app sends one message and gets the answer back. Every step of the run lands in one trace, with its tokens and cost. One script tag puts the agent on your own website as a chat button, and it can collect leads from visitors who want a person.
What you get
Documents, tables, search settings and one trace per run.
Answers from your documents
Upload .txt, .md, .pdf and .docx files, or paste text. Each document is split into chunks and embedded, on the free plan’s embedding model or one from your own gateway. The agent searches those chunks when a question needs them.
Counts from your spreadsheets
A search returns the closest passages, not a total. For a count, a sum or a filter, the agent writes a SELECT over the CSV files and Excel sheets in a tables knowledge base.
Runs on the server
An agent is a prompt alias, the tools bound to it, up to five knowledge bases, a chat model and a step limit. AcruxCore calls the model, runs each search and tool call, and feeds the results back until the model answers.
One trace per run
Each model call, search, SQL query and tool call is a span in the run’s trace. A reranker and a decision model each add a span that shows what it kept.
Knowledge bases
Documents for questions, tables for numbers.
You choose the kind of a knowledge base when you create it. A documents base gives the agent a search tool, and a tables base gives it a SQL tool.
A documents base
Takes .txt, .md, .pdf and .docx files of up to 10 MB each, or pasted text. Its search tool returns the closest chunks, each with a similarity score.
A tables base
Takes .csv and .xlsx files of up to 10 MB each, at most 20 files and 50 MB per base. Each CSV file is one table, and each non-empty sheet of a workbook is a table of its own.
How documents are split
Documents can be split by paragraphs and sentences, at a fixed size, at Markdown headings, or by meaning, into chunks of 100 to 2,000 tokens. Changing the method re-embeds every document, and search uses the old chunks until the new ones replace them.
The embedding model is locked once a base has documents, because every chunk was embedded with it. A tables base has no embedding model, so it costs nothing to embed.
Websites
Read your website into a knowledge base.
Add your site’s sitemap to a documents base, and the crawler reads up to 1000 of its pages. Each page becomes a document with its URL, so the agent can link the page it answered from.
The main text of each page
The crawler keeps a page’s headings, lists, tables and code blocks as Markdown, and leaves out menus, footers and images. It follows the site’s robots.txt.
A refresh from the sitemap dates
A daily or weekly refresh reads new pages, re-reads pages whose <lastmod> date is newer, and deletes pages that left the sitemap. A page with no <lastmod> is updated only when you click Re-crawl whole site.
Pages the crawler cannot read
The crawler does not run JavaScript. A page with less than 50 words of main text is marked Needs text, and you send its text through the API with the page’s URL.
A page whose text has not changed is not embedded again, so a re-crawl costs page fetches, not embedding calls.
Search settings
Set how each agent searches a base.
Search settings belong to the agent, not to the knowledge base, so two agents can search one base in different ways. Changing a setting re-embeds nothing.
| Setting | What it does |
|---|---|
| Results to return | How many chunks one search gives the model, from 1 to 20. The default is 5. |
| Reranker | Puts the closest chunks in a new order with a rerank model from Jina, Cohere or OpenRouter. It runs on your own key, and each call is logged in usage with its cost. |
| Decision model | Gives each passage a probability that it is relevant, and drops the ones under your threshold, 0.5 by default. When it drops every passage, the search tool tells the model that no relevant passage was found. |
A reranker or decision model that fails never fails the search. The search skips that step, and the step’s span says why. The decision model calls OpenRouter’s Decisions API, so it needs a connection that serves it.
Tracing
Every step of a run in one trace.
When an answer is wrong, the trace shows which step went wrong: the query the model searched for, the passages that came back, or the SQL it ran.
Search steps
A search is a retrieval span with its query and the passages it returned. The rerank and decision spans sit under it, and each one shows how many passages it kept.
SQL and tool steps
A SQL query is a tool span with the statement as its input and the rows as its output. An HTTP tool call is a tool span with its arguments and its result.
Tokens and cost
Model calls, rerank calls and decision calls each carry their tokens and cost. The run itself reports its total tokens and total cost.
Inputs and outputs are stored while your team has payload capture on, which is the default. Tokens, cost and timing are always stored.
On your website
Put the agent on your site as a chat button.
Turn on the agent’s widget, list the domains it may run on, and paste one script tag into your pages. Visitors get answers from the same knowledge bases the agent uses in the dashboard.
Limits on what it spends
Set how many messages one visitor may send per hour, 20 by default, and a daily spend cap, 5 USD by default. When the cap is reached, the widget stops answering until 00:00 UTC.
Ratings from visitors
Each answer has a thumbs-up and a thumbs-down button and an optional comment. The rating is saved on the answer’s trace as end-user feedback.
Conversations in the dashboard
Conversations that visitors started are labelled Website on the agent’s Chat page, and each answer links to its trace.
A visitor sees their own messages and the agent’s answers. The widget never shows the tool calls, passages, SQL rows, costs or traces.
Leads
Collect leads from the visitors who want a person.
Turn on Collect leads, and the agent gets a built-in capture_lead tool. When a visitor asks for a person, or needs help the agent cannot give, the agent asks for an email address or a phone number and saves the lead.
Fields you choose
Contact can be Email, Phone, or Email or phone. Up to five extra fields of your own, such as a company name or a budget, can each be required or optional.
A Leads tab and an email
Each lead lands on the agent’s Leads tab, linked to its conversation and trace, with a status of New, Contacted or Closed. Owners, admins and editors get an email for each new lead.
Contacts the visitor typed
The email address or phone number must appear in the visitor’s own messages, so the model cannot invent one and a document cannot plant one. A second call in the same conversation updates the same lead.
AcruxCore never emails or messages the visitor. An agent run inside an experiment calls the tool and gets the same answer, but saves nothing and sends no email.
Limits
What an agent can run, and when it stops.
An agent runs on AcruxCore, so it can call only the tools that AcruxCore can run itself.
HTTP tools only
An agent calls HTTP tools from the catalog and its own knowledge-base tools. A prompt with a client tool bound to it cannot run as an agent, and the run is refused before it starts.
A step limit
Max steps is the most model calls one message may take. It can be 1 to 25, and the default is 8. A run that reaches it ends with the status max_steps.
A time limit
A run that takes longer than 300 seconds ends as failed. If your client disconnects, the run keeps going and is still recorded.
Free models stay in the dashboard
On the free plan’s models, an agent answers in the dashboard and in the website widget. To run it from your own code, connect your own provider key and move the agent to a model on it.
Self-hosting needs Postgres with the pgvector extension. The Docker setup uses the pgvector/pgvector image, which has it.
In the dashboard
Everything without writing a line of code.
The API and SDKs cover the automated path. For the day-to-day, the dashboard does the same work in the browser.
- Create an agent from a prompt, a chat model and up to five knowledge bases, and see every tool the model will get.
- Chat with an agent and read each step: the search query, the passages, the tool arguments and the result.
- Continue a conversation, and the agent sees its earlier turns.
- Try a question on a documents base under Test a search, or a SELECT on a tables base under Try a query.
- Try an agent’s search settings on a question before you save them.
- Edit a document’s text or a single chunk, and add, change or delete the rows of a table.
- Add your website’s sitemap to a base, pick a daily or weekly refresh, and see which pages need their text sent.
- Turn on the agent’s website widget and copy its script tag.
- Turn on Collect leads, choose the fields, and work through new leads on the Leads tab.
- Build a website assistant from your site’s address in one step, on the Get started page.
- Open the Runs tab to list every run with its status, and open the trace of any run.

Go deeper
Documentation for this piece.
The rest of the platform
It composes with the other seven.
Each piece works on its own, and they get better together — a trace links back to a prompt version, a dataset is built from feedback.