> ## Documentation Index
> Fetch the complete documentation index at: https://www.sapientpriors.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Priors

> Situation-led setups for building with Priors API

> [!WARNING]
>
> **The one rule:** each agent's memory is its own; everyone who talks to one agent shares what it learns.

Use this section to choose agent boundaries, learning behavior, and deletion patterns before integrating. Each scenario covers one production pattern, its failure modes, and the v2 endpoints involved. For full request and response schemas, see [Guides](https://www.sapientpriors.com/docs/introduction.md) and the [API reference](https://www.sapientpriors.com/docs/api-reference/overview.md).

## Resource hierarchy

Organization

Your company: people, credits, and projects

Project

People with roles, service accounts, and API keys

Agent
Memory boundary

Isolated memory and file store

Files

Uploaded documents and images

Memories

Facts learned from turns and files

Threads

Separate conversations, not memories

Turns

Messages and document pieces

Core properties:

1. **Isolation lives at the agent:** two agents never see each other's memories or files.
2. **Threads scope conversations, not memory:** a fact learned in one thread is available in every thread of the same agent.
3. **Learning is explicit:** you control which agents learn from conversations, which calls only read memory, and which turns or files are removed.

## Reference examples

Every scenario below reuses the same three architectures for direct comparison:

* **Sales agent:** remembers each prospect across calls and emails. Learning on; one agent per prospect.
* **Inbound support line:** answers external users from a fixed document set. Learning from conversations off; one shared agent.
* **Team assistant:** learns from everyone on one internal team. Shared learning inside one trust boundary; one agent for the team.

## Set up

Agent boundaries, learning modes, and answering paths.

A1

Each agent's memory is its own
Agents isolate memory; threads only isolate conversations.



[Open](https://www.sapientpriors.com/docs/how-to-use/each-agents-memory-is-its-own.md)

A2

Remember each end user
Give each customer or prospect a dedicated agent so their facts never mix.



[Open](https://www.sapientpriors.com/docs/how-to-use/remember-each-end-user.md)

A3

One memory, many users
Share one read-only document memory across external users without learning from them.



[Open](https://www.sapientpriors.com/docs/how-to-use/one-memory-many-users.md)

A4

One memory that learns from a whole team
Let colleagues teach and query one shared memory inside a single trust boundary.



[Open](https://www.sapientpriors.com/docs/how-to-use/one-memory-for-a-team.md)

A5

Bring your own model
Keep your own language model for replies while Priors stores and recalls memories.



[Open](https://www.sapientpriors.com/docs/how-to-use/bring-your-own-model.md)

## Teach

Document ingestion, historical backfills, and facts that change over time.

B1

Teach from many documents
Upload a library of files to one or many agents within upload rate and concurrency limits.



[Open](https://www.sapientpriors.com/docs/how-to-use/teach-from-many-documents.md)

B2

Load past history
Backfill old messages in chronological order with original timestamps and speakers.



[Open](https://www.sapientpriors.com/docs/how-to-use/load-past-history.md)

B3

Add a document
Upload a new document to a live agent without blocking ongoing answers.



[Open](https://www.sapientpriors.com/docs/how-to-use/add-a-document.md)

B4

A policy changes
Replace an outdated document cleanly so retired rules stop appearing in answers.



[Open](https://www.sapientpriors.com/docs/how-to-use/policy-changes.md)

B5

A fact changes in conversation
Record updates with newer timestamps so the latest truth wins, or forget wrong turns.



[Open](https://www.sapientpriors.com/docs/how-to-use/fact-changes-in-conversation.md)

## Correct and delete

Removing turns, deleting files, offboarding customers, and closing conversations.

C1

Forget something a user said
Delete memories made from one message and check whether the fact was repeated elsewhere.



[Open](https://www.sapientpriors.com/docs/how-to-use/forget-something-a-user-said.md)

C2

Remove a document
Delete an uploaded file, its extracted pictures, and every memory citing it.



[Open](https://www.sapientpriors.com/docs/how-to-use/remove-a-document.md)

C3

A customer leaves
Delete a customer's agent to erase all threads, memories, files, and logs in one call.



[Open](https://www.sapientpriors.com/docs/how-to-use/customer-leaves.md)

C4

Close a conversation
Delete a thread when a chat ends while keeping what the agent learned from it.



[Open](https://www.sapientpriors.com/docs/how-to-use/close-a-conversation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.