Core
Projects and visibility
A project is the unit that owns a corpus. Documents, chunks, vectors, connectors, assistant settings and widget configuration all belong to exactly one project. Nothing is shared between two projects: not by default, not by visibility, not by any setting.
This page explains what a project is, what external and internal actually
change, and why the isolation is strict.
Why projects exist
A single account usually runs several assistants that must not mix: a public help centre, an internal support desk, one bot per product line. Each one needs its own documents and its own answers.
Putting everything in one corpus makes retrieval worse in a way that is hard to see: a question about the public pricing page starts matching an internal runbook, and the answer is confidently wrong. Separate projects remove that class of error instead of trying to filter it out at query time.
What a project owns
Everything in the list below is scoped by project_id. Deleting a project
removes its corpus and its settings together.
External and internal
Every project has a visibility field with exactly two accepted values:
external or internal. Any other value is rejected when the project is
created or updated, so the behaviour can never be ambiguous.
mutation {
createProject(name: "Public help centre", visibility: "external") {
id
uid
visibility
}
}What external means
An external project may be exposed to people outside the account. It is the
only kind of project a public widget can serve, and the default template is the
customer-facing one.
- It can be published through the website widget, with a domain allow-list.
- Its assistant speaks to end users: it can point to the public website and to a commercial contact address when the corpus has no answer.
- It is the default when
visibilityis omitted.
What internal means
An internal project is for colleagues. The platform enforces that in three
places, not one:
- The public channel refuses it. A widget or public API call resolving to an
internalproject is rejected. This is a rule on the request path, not a convention. - The default prompt is different. An
internalproject receives the internal template: no company block, no "contact our sales team", no link to the marketing site. Answering a colleague with a commercial redirect is worse than saying nothing. - Contact details are emptied. Even when a tenant has written its own
rag_prompt, the contact email, phone and address placeholders are cleared for an internal project. A custom prompt must not reintroduce a commercial address that the default template deliberately omits.
The comparison
The last line is a real constraint: the default project is the fallback for API keys issued before projects existed, and those keys serve public traffic. Making it internal would silently break them, so the API refuses the update.
Isolation is strict
A project sees only its own corpus. There is no hierarchy and no
inheritance: an internal project does not see the documents of the external
projects of the same account.
This is deliberate. An earlier design made internal a superset of every
external project, on the theory that an employee should see everything. In
practice it produced answers that mixed a public FAQ with an internal runbook,
and it made the boundary impossible to explain to a customer. Strict isolation is
easier to reason about: what is in the project is what the assistant knows.
The consequence worth knowing: if two assistants need the same document, it is indexed in both projects — as two separate copies, each with its own vectors. Both copies count against the same account quota, so the same file costs twice against your document and storage limits.
Visibility does not grant access
visibility answers one question: who may reach this project: and nothing
else. It is not a permission system:
- It does not let one project read another's documents.
- It does not widen what a user can query.
- It does not change retrieval, ranking or chunking.
Who can act on a project at all is decided by the account session or the API key, never by the visibility field.
The distinction matters for a key. A dashboard session opens every project of
the account, and so does a project key: its project_id is a default, used
when a request does not name a project, not a perimeter. Passing
?project=<another project of the same account> to a listing or an upload reads
that project. What the key actually restricts are its scopes
(documents:read, chat:write, ...), which control what kind of action it
can take, not which corpus.
The project UID
Each project has two identifiers:
id: the internal key (prj_...). This is what the database stores and what every child table references.uid: the readable identifier (v0m6-4hag-6ubz-o57g-7l00). This is what the dashboard shows, what the widget snippet carries, and what appears in URLs.
The UID is case-insensitive: it is stored lowercased and compared
case-insensitively. Pasting KHV5-6D27-... in a snippet works exactly like the
lowercase form. The API always returns the canonical lowercase value.
Both are accepted wherever a project is expected, and the backend resolves either
one to the internal id before touching any table.
Choosing between them
Use external when the assistant answers people outside the organisation: a
documentation site, a product page, a public support form.
Use internal when the assistant answers colleagues: onboarding, runbooks,
policies, support macros. An internal project is not "an external project with a
private flag": it has a different prompt and it cannot be published, so
deciding this at creation time is the right moment.
If you need one corpus in both contexts, create two projects and index the documents twice. That is the honest way to keep the two answers distinct.
