
PremAgentic
io.github.premagenticv0.1.0更新於 Oct 2, 2026
On-premises knowledge retrieval, with the rules you set enforced before anything is retrieved.
概覽
讓助理在地端部署的文件庫中檢索並回傳附引用的段落,且存取規則在檢索之前就已強制執行。
- 功能
- PremAgentic 為客戶自有資料夾中的 Markdown、純文字、PDF、Word 與 Excel 檔案建立索引,並以附引用的段落回答問題,每個段落都標註其可信度、作者與時效。助理透過 MCP 連線後取得兩個唯讀工具 search_knowledge 與 get_document_section,沒有任何寫入、儲存或記憶的工具。資料夾規則決定誰可以讀什麼,第一條符合的規則生效,沒有符合即拒絕。對於只支援 stdio 的助理,另提供 stdio 橋接程式。
- 適用情境
- 當助理需要依據必須留在組織自有網路內的內部文件作答,而且各資料夾的讀取規則必須在檢索之前而非之後生效時,適合使用。也適合需要對私有語料給出可引用、可稽核答案的團隊。
- 執行需求
- 以本機程序方式執行,通常是透過 stdio 啟動的容器映像。需要 PostgreSQL 資料庫、PremAgentic API 的位址 PREM_API_URL,以及已註冊代理的權杖 PREM_AGENT_TOKEN。只有在 API 憑證由安裝工具自行簽發時才需要 SSL_CERT_FILE。讀取 PDF、Word 與 Excel 需要管理員安裝並允許對應的第一方擴充套件。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PremAgentic,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
PremAgentic
On-premises, for agents: the name says what it is. Governed knowledge retrieval that runs entirely inside a customer's own network. Point it at a folder of Markdown, text, PDF, Word or Excel files (the last three through first-party extensions an administrator allows), write down who may read which folders, and its people and agents get cited answers out of them, with those rules enforced before anything is retrieved.
PremAgentic decides what the model is allowed to know. Every answer is a cited passage, marked with its trust, authorship and freshness.
At runtime, with the default local embedding provider, PremAgentic makes no
outbound call, needs no third-party API key, and sends no document anywhere on
its own. An assistant that runs on a hosted model does receive the passages each
search returns: PremAgentic asks where each agent's model runs, writes the
answer on every audit row, and can keep a folder from every agent registered as
using one (see
Connect an assistant). PremAgentic calls out to
nothing else unless an administrator selects the optional openai embedding
provider or installs and allows an extension that does; a reminder sink that
sends mail is a sample, not a built-in. With an HTTPS certificate issued by a
certificate authority, the runtime's TLS stack may also fetch the certificate's
revocation status (OCSP) and missing intermediate certificates, more than once;
the self-signed certificate setup makes by default names no such address.
How that claim is tested, and what installing needs from the internet once, is on What PremAgentic is.
What it reads
Markdown and plain text files are read by built-in readers. PDF, Word (.docx)
and Excel (.xlsx and .xlsb) files are read by three first-party extensions
in this repository, extensions/pdf-reader,
extensions/docx-reader and
extensions/xlsx-reader. They are built
with the solution and, like any extension, load only once an administrator puts
each one's build output in the extensions folder and allows it with
prem extensions allow. All three read text and nothing else: no link, script,
macro or embedded file in a document is followed or run, and a file that
crosses a limit is reported with the limit it crossed, never read in part. A
PDF passage is cited by its page, a Word passage by the document's own
headings, and an Excel passage by its sheet. A file a reader recognizes and
will not index is counted with its reason, such as .pdf (no text layer),
.doc (legacy .doc) or .docm (macro-enabled), and a file no reader claims is
counted by its extension, so a folder of them does not look like an empty run.
Before any reader sees a file, the run reads no more than 256 MB of it, and one
file the index cannot store never stops a run.
tests/Premagentic.Benchmark times the search path on a synthetic index, and
anyone can rerun it on a throwaway database; every table it prints names
the machine it ran on and which of its two modes it ran in
(Measuring it yourself).
What it does not do
- It does not write to the source.
- It does not generate prose.
- It does not recognize text in pictures or scanned pages.
The first two are explained under What it does not do; what it reads is above. Sign-in through a company directory is next in PremAgentic for Teams.
Quick start
The same setup is a profile. On a fresh database, prem profile apply ./samples/profiles/starter creates the two groups, registers the two
sources with their rules and sets the golden set in one step; applying it
again changes nothing and says so. See Profiles.
The command line explains itself, with no database configured:
The full list is on The prem command, which is generated from the program.
Connect an assistant
Agents connect over MCP at /mcp in the same process, with their token.
They get two read-only tools, search_knowledge and get_document_section, and no tool that writes, stores or remembers anything.
For an agent that only speaks stdio, Premagentic.McpServer is a bridge. How to connect one: Connect an assistant.
A person can connect their own assistant at /portal/connect: the agent it
makes acts as that person and nothing more, its token is shown once beside
the configuration for the assistant they use, and they can revoke it there.
An administrator bounds how many each person may have with
agents.self_service_max (0 turns it off) and can reword any configuration
with connect.snippets. An administrator can give every assistant the
deployment's own instructions with prem settings set mcp.instructions "<text>": a client that reads what a server sends at connect receives them,
they are served as the resource premagentic://instructions, and the
connect page shows them for pasting into AGENTS.md, CLAUDE.md or a
client's own instructions.
See it
Folder rules decide who may read what. The first entry that names the caller decides, and no match is a deny.
Ask why for any person and any document, and PremAgentic shows the rule and every gate. Here a contractor is held back from the greenhouse notes.
Every agent carries where its model runs. Move one to a hosted model and the folders kept from hosted-model agents close to it on its next call.
The audit shows who asked, under which policy, where the model ran and every passage served, filtered here to what went to hosted-model agents.
Documentation
- Start: What PremAgentic is, Getting started, Connect an assistant
- How it decides: Access, Lifecycle, trust and freshness, Administration
- Operate: Installing, Running it, Upgrading and removing, Configuration, Storage, The fully local stack
- Extend: Sources, readers and chunkers, Extensions, Writing an extension, Connectors, Profiles, Tuning and the golden set
- Reference: Surfaces, The prem command, Known state, Roadmap
The index of all of them, with what each covers, is docs/README.md.
Get involved
To contribute see CONTRIBUTING.md; your first pull
request asks you to sign the contributor license agreement, once. Questions
and ideas go to the repository's Discussions, a first change starts with an
issue labeled good first issue, and what comes next is on
Roadmap.
Support
Support comes with PremAgentic for Teams, from Agave Information Solutions, LLC: help installing and upgrading, sizing the hardware, mapping an organization's directory and permissions into PremAgentic, and answers from the maintainers. Write to [email protected].
Questions go to the repository's Discussions and bugs to its issues, where
the maintainers read and triage them. Security reports are always answered;
see SECURITY.md.
License
PremAgentic is free software under the GNU Affero General Public License,
version 3 only (AGPL-3.0-only). See LICENSE and NOTICE. Dependency and
model licenses are listed in THIRD-PARTY-NOTICES.md.
Agave Information Solutions, LLC also offers PremAgentic under a commercial license, for building it into a closed product, or running a changed copy for its users without offering them its source. Write to [email protected].
PremAgentic for Teams is what an organization adds to run PremAgentic for many people. It carries directory group mapping, and audit retention and export. Next in it: sign-in through Microsoft, Google or another OIDC provider, with group sync; connectors that read a source's own permissions, for SharePoint, OneDrive and Windows file shares; the administration API; and a signed installer. Support comes with it.
The add-on installs as one extension on the same extension host, allowed by hash like any other, and it is free for a deployment of up to 10 users. Customers can read the add-on's source.
The PremAgentic name belongs to Agave Information Solutions, LLC and is not licensed with the code.
To report a vulnerability see SECURITY.md; to contribute see
CONTRIBUTING.md.
來源:README.md,提交 eb1137c
工具
0版本歷史
1- v0.1.0最新Oct 2, 2026

