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

# Compiled Faces

> What a compiled face is, and what makes a good source text.

# Compiled Faces

A face is a causal model compiled from source texts. Prompted, it works out a
cause: the principal *why* behind its response in that context.

***

## What compiling does

Each document or thread you compile becomes part of the face. Delete it, and what it
contributed goes with it.

A face's cost per request does not depend on how much you have compiled into it.

***

## Why faces compose

Compiled faces can be combined with boolean operators (union, intersection,
difference), and the result is still a usable face. See
[synthetic faces](https://docs.headwaters.ai/guides/synthetic-faces.md).

***

## What makes a good source text

* **A document is the face's own writing; an exchange is a thread.** Upload essays,
  letters, papers, books and poems as documents. Upload interviews, transcripts and
  dialogues as [threads](https://docs.headwaters.ai/guides/compile.md#uploading-threads) with `face_speaker` set, so
  only the face's turns are used. A dialogue uploaded as a document is read as entirely
  the face's own words, other speakers included.
* **First-person material is strongest.** Interviews, journals, essays and sent
  messages carry voice as well as content.
* **Third-person material works** for biography and description; set
  `perspective=third-person` so it is read as being *about* the person rather than
  *by* them.
* **Volume helps, but distinctiveness helps more.** Ten pages where someone argues a
  position beat a hundred pages of logistics.
* **Declare what a document is** when you upload it, with `medium`. It is required: a
  document cannot be saved without one. See
  [Compile](https://docs.headwaters.ai/guides/compile.md#declaring-what-a-document-is-required-to-save).


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