> ## 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.

# One memory, many users

> Serve external users from one shared document library without learning from their questions

## Example use case

You run an inbound support line answering questions from thousands of external customers using one fixed set of product handbooks, FAQs, and release notes. Every customer needs accurate, cited answers from the same documents, and no customer's message may ever be remembered for another customer.

## Setup

Create one shared agent for the knowledge base and separate document ingestion from user queries:

* Load product handbooks and policies with multipart [POST`/v2/agents/{agent_id}/threads/{thread_id}/observe`](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-messages-or-files) from your internal publishing pipeline.
* Open one thread per customer session and answer with [POST`/v2/agents/{agent_id}/threads/{thread_id}/respond`](https://www.sapientpriors.com/docs/api-reference/v2/threads/answer) (or [POST`.../recall`](https://www.sapientpriors.com/docs/api-reference/v2/threads/recall-memories) if you run your own model).
* Because `respond` and `recall` never learn from turns, customer messages stay out of long-term memory while keeping short-term thread context.

## Benefit with Priors

* **Ingest once, serve everyone:** pay to index each handbook once and serve unlimited sessions from one memory index.
* **Built-in citations:** answers include downloadable file `citations` so customers can verify the source document.
* **Single-point updates:** updating a policy requires replacing one file on one agent rather than syncing per-user copies.

## What goes wrong

> [!WARNING]
>
> Calling `observe-and-respond` or `observe-and-recall` on a shared public agent turns one customer's message into a memory another customer can retrieve. Order numbers, personal emails, or false claims typed by one visitor would leak into replies for everyone else.

## Recommendation

Use `respond` (or `recall`) exclusively on user-facing paths of a shared public agent, and restrict `observe` to your internal document-publishing workflow.

## Calls used

* Guides: [Answering](https://www.sapientpriors.com/docs/concepts/answering.md), [Files](https://www.sapientpriors.com/docs/concepts/files.md), [Walkthrough 3: teach from a document](https://www.sapientpriors.com/docs/walkthroughs/teach-from-a-document.md)
* API reference: [Create agent](https://www.sapientpriors.com/docs/api-reference/v2/agents/create-agent.md), [Learn messages or a file](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-messages-or-files.md), [Answer](https://www.sapientpriors.com/docs/api-reference/v2/threads/answer.md), [Recall memories](https://www.sapientpriors.com/docs/api-reference/v2/threads/recall-memories.md)


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