π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Ensu make docs more complete
laurenspriem410a23b154cf
diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.tsindex b2913a1437..886d83bb30 100644--- a/docs/docs/.vitepress/sidebar.ts+++ b/docs/docs/.vitepress/sidebar.ts@@ -564,6 +564,12 @@ export const sidebar = [collapsed: true,items: [{ text: "Introduction", link: "/ensu/" },+ { text: "How it works", link: "/ensu/how-it-works" },+ {+ text: "Features",+ collapsed: true,+ items: [{ text: "Overview", link: "/ensu/features/" }],+ },{text: "FAQ",link: "/ensu/faq/",diff --git a/docs/docs/ensu/features/index.md b/docs/docs/ensu/features/index.mdnew file mode 100644index 0000000000..9f65b1af68--- /dev/null+++ b/docs/docs/ensu/features/index.md@@ -0,0 +1,142 @@+---+title: Features - Ensu+description: An overview of what Ensu can do, by feature and by platform+---++# Features++This page outlines the key features available in Ensu. Most features work the same on every platform; where they differ, the platform is called out.++### On-device inference++The model that answers your messages runs on your own phone, tablet, or computer. There is no network call to Ente or any other AI service for inference. Once you have downloaded the model, the chat works fully offline, including on flights and in places without connectivity.++Learn more in [How it works](/ensu/how-it-works).++### Cross-platform++Ensu runs natively on iOS, Android, macOS, Windows, and Linux, plus an experimental web build at [ensu.ente.com](https://ensu.ente.com). The desktop and web UIs share the same code; iOS and Android each have a native UI built on the same shared Rust inference core, so behavior is consistent across platforms.++### No account required++You can use Ensu without signing in. There is no Ente account in the chat flow, no usage limit, and no cost. Sign-in exists in the app for the [future sync feature](#sync-and-backup-planned), but it is optional.++### Markdown and math rendering++Assistant responses are rendered as Markdown. Headings, lists, tables, bold and italic text, links, blockquotes, and fenced code blocks are formatted inline. Code blocks include a copy button.++Inline and block math is rendered with [KaTeX](https://katex.org/), so equations the model produces (for example, `$E = mc^2$` or display-style derivations) appear as typeset math rather than raw LaTeX.++### Image attachments (iOS, Android, desktop)++Attach images to your messages and ask the model about them.++**On mobile:**++- Tap the attachment icon in the composer.+- Pick one or more images from your library, or take a photo.+- The selected images appear as previews above the text field. Tap a preview to remove it.+- Send your message as usual.++**On desktop:**++- Click the attachment icon in the composer and choose an image.+- Drag and drop images onto the composer.+- Click a preview thumbnail to expand it full-screen, or click the close icon to remove it.++The image is resized to the model's input size on your device before the model sees it. The image data never leaves the device. Image attachments are not available on the web version yet.++### Voice input (iOS, Android)++Tap the microphone in the chat composer and speak your prompt. Ensu transcribes your voice locally and inserts the text into the composer, where you can edit before sending.++On Android, the first use of voice input downloads a small transcription model. After that, transcription works fully offline. Your voice is never sent to Ente or any cloud transcription service.++Voice input is not available on desktop or the web version.++### Resumable model downloads++The initial model download (and any later model switch) resumes automatically if interrupted. You can close the app, lose connection, restart your device, or quit during the download; Ensu picks it up where it left off on the next launch.++Native downloads use ranged HTTP requests and retry automatically. The web version stores the model in the browser's [Origin Private File System](https://web.dev/origin-private-file-system/) so it is reused across visits.++### Chat sessions and sidebar++Every conversation is a separate session, listed in the sidebar.++- **On desktop**: the sidebar lives on the left edge of the window. Click the handle to expand or collapse it. Sessions are grouped by recency (Today, Yesterday, This week, This month, Older).+- **On mobile**: open the sidebar with the menu icon in the top-left. Same grouping.++Click or tap a session to switch to it. The composer remembers any in-progress text per session.++### Session search++Click the search icon at the top of the sidebar to filter sessions by title. The title is generated automatically from the first messages of each chat; you can rename a chat by editing its title in place.++### Edit messages++You can edit any message you sent. Tap the edit icon below your message to open it in the composer; sending creates a new branch of the conversation from that point.++The original branch is still available via the branch switcher. Learn more in [Branching](#branching).++### Retry an assistant response++If a response is not what you wanted, tap the retry icon below it. Ensu generates a fresh response with the same conversation history, creating a new branch you can switch between.++### Branching++When you edit a user message or retry an assistant message, Ensu keeps the original alongside the new version, creating a branch in the conversation tree. Tap the arrow controls next to a message to switch between branches; the message counter shows your position (for example, `2/3`).++Branches are local and persist with the rest of the chat history.++### Copy++Every message has a copy button. Tap or click it to copy the message text to your clipboard. Code blocks also have their own copy button in the corner of the block.++### Stop generation++While a response is streaming, the send button turns into a stop button. Press it to end generation immediately. The partial response is kept.++### Local chat history++All chats are saved on your device automatically. Open the sidebar, pick an older session, and scroll back to read or continue it.++You can delete individual sessions from the sidebar. Long-press (mobile) or use the trash icon (desktop) on a session, then confirm.++### App updates++The desktop apps (macOS, Linux, Windows) update themselves automatically. You can also check for updates manually under **Settings β Check for updates**.++The mobile apps update through their app stores. APKs downloaded directly from GitHub releases update when you install a newer build manually; learn more in [Verify the Ensu Android APK](/ensu/faq/android-apk-signature).++The in-app **What's new** dialog shows the latest changelog entries on each platform.++### Privacy by design++- No account is required.+- No analytics, no telemetry, and no tracking of your prompts.+- Chats, attachments, and voice input never leave your device.+- The model download from Hugging Face is the only network traffic for chat-related functionality.++Learn more in [How it works](/ensu/how-it-works).++### Open source++The entire Ensu codebase is in [Ente's open source monorepo on GitHub](https://github.com/ente-io/ente), including the Rust inference core, the platform UIs, and the web app. You can read it, build it, audit it, and contribute to it.++### Sync and backup (planned)++End-to-end encrypted sync of your chats across devices, using your Ente account, has been built and is ready for release. It is not enabled in the current build because we want feedback on the product direction first. When it ships:++- Sync will be opt-in and tied to your Ente account.+- Chats will be end-to-end encrypted with the same library Ente Photos and Auth use.+- Existing local chats will be picked up and backed up automatically.+- Sync will be self-hostable.++Learn more in the [FAQ](/ensu/faq/#sync).++## Related topics++- [Introduction](/ensu/): install, send your first message, and prompts to try.+- [How it works](/ensu/how-it-works): on-device inference and what is stored where.+- [FAQ](/ensu/faq/): privacy, models, sync, and troubleshooting.diff --git a/docs/docs/ensu/how-it-works.md b/docs/docs/ensu/how-it-works.mdnew file mode 100644index 0000000000..026eb575e6--- /dev/null+++ b/docs/docs/ensu/how-it-works.md@@ -0,0 +1,141 @@+---+title: How it works+description: On-device inference, where models live, what is stored, and why nothing leaves your device+---++# How it works++Ensu is a chat app that runs a language model on your device instead of in the cloud. This page covers what that means in practice: what the app is doing while you chat, what is stored where, and which assumptions you can rely on.++None of this is required reading. If you just want to chat, the [Introduction](/ensu/) is enough. This page is for the curious and the privacy-conscious.++## The shape of it++Every popular AI chat app (ChatGPT, Claude, Gemini, and friends) follows the same shape: a thin client on your device talks to a model running on a server. The model is too large to fit on a phone, so the heavy lifting happens elsewhere. The trade-off is that everything you type ends up on someone else's machine.++Ensu inverts that:++- The model is small enough to fit on your device.+- The chat UI and the model run together, inside the same app, on the same machine.+- There is no server in the loop for inference.++Smaller models are not as capable as the largest cloud models, but they are good enough for many everyday uses, and they keep getting better. Ensu's job is to make the local version of this experience as friction-free as the cloud one.++## What runs on your device++Ensu is built on a shared **Rust core** that handles model loading, prompting, and token generation. The same core is wrapped in a native app per platform:++- **iOS and Android** ship the Rust core as a native library, with a Swift / Kotlin UI on top.+- **macOS, Windows, and Linux** ship as a [Tauri](https://tauri.app) app: the Rust core for inference, a small native shell, and the Ensu web UI rendered inside it.+- The **web** version runs everything in your browser. The model runs as WebAssembly, and the model file is cached in the browser's [Origin Private File System](https://web.dev/origin-private-file-system/) so you do not redownload it on every visit.++The underlying inference engine is based on [llama.cpp](https://github.com/ggerganov/llama.cpp) on native platforms and a WebAssembly build of it in the browser. Ensu wraps that engine so the chat UI, model downloads, and settings work the same way on every platform.++All of this is open source. The full source lives in [Ente's monorepo on GitHub](https://github.com/ente-io/ente), alongside Photos, Auth, Locker, and the other Ente apps.++## The model file++The model itself is a single file, usually 600 MB to 2 GB on phones and a few GB on desktops with enough RAM. It is in the [**GGUF**](https://huggingface.co/docs/hub/en/gguf) format, the same format used by llama.cpp. Multimodal models also ship with a separate **mmproj** file that contains the vision projector for processing images.++When Ensu opens for the first time, it picks a default model based on your device and downloads it from [Hugging Face](https://huggingface.co):++- **Desktop (MacOS, Windows, Linux) with 16 GB or more RAM**: Gemma 4 E4B (Q4_K_M), a 4-billion parameter multimodal model by DeepMind, around 6 GB.+- **Everywhere else** (Android, iOS, lower-memory desktop, and web): LFM 2.5 VL 1.6B (Q4_0), a 1.6-billion parameter multimodal model by Liquid AI, around 700 MB.++Native downloads are resumable: if the download is interrupted, Ensu picks it up from where it stopped the next time you launch the app. Downloads happen in parallel where possible, and retry automatically.++On desktop you can pick a different preset or paste any direct `.gguf` URL from Hugging Face. Learn more in [Model selection (desktop)](/ensu/features/#model-selection-desktop).++## What happens when you send a message++When you press send:++1. The composer hands the message, your image attachments (if any), and the recent chat history to the local model.+2. Ensu prepends the system prompt and any past messages still in context, then asks the model to continue the conversation.+3. The model streams tokens back to the app. You see them appear one chunk at a time.+4. When the model finishes (or you stop it), the final message is saved to local storage alongside the rest of the chat.++Nothing in this flow makes a network request. The only network traffic Ensu produces during a chat is what your operating system does on its own (DNS, OS background tasks). There is no Ente endpoint involved.++You can verify this for yourself by putting your device in airplane mode after the model is downloaded. Ensu keeps working.++## What is stored, and where++Ensu stores everything related to a chat on your device. There is no Ente account by default, so there is nowhere on Ente's servers for this data to live.++Local data includes:++- **The model file** (and the mmproj file for multimodal models). This is the largest item.+- **Your chat history**: messages, attachments, session titles, and branch metadata.+- **Settings**: your system prompt, model choice, and other preferences.+- **Logs**, for debugging. These do not include your chat content and are only used when you choose to export them.++Storage locations:++- **macOS**: `~/Library/Application Support/io.ente.ensu/`+- **Windows**: `%APPDATA%\io.ente.ensu\`+- **Linux**: `~/.local/share/io.ente.ensu/` (or `$XDG_DATA_HOME/io.ente.ensu/`)+- **iOS**: inside the app's sandbox; cleared when you delete the app+- **Android**: in the app's internal and external files directories; cleared when you uninstall+- **Web**: in your browser's [Origin Private File System](https://web.dev/origin-private-file-system/) for the model, and IndexedDB for chat history++To remove all of this, see [Uninstall Ensu](/ensu/faq/uninstall).++## What is not stored++What never leaves your device:++- The text you type into the composer.+- The voice you record for voice input (which is transcribed locally).+- The images you attach (which are processed locally by the multimodal projector).+- The model's responses.++What Ensu does not do:++- No accounts are required to chat. The login flow exists for future sync but is optional.+- No analytics or telemetry track what you ask the model.+- No background uploads of any kind.++What is sent over the network at all:++- The model download from Hugging Face on first launch (and when you switch models or update Ensu and a model version changes).+- Software update checks, which the platform's app store or the desktop auto-updater handles.+- If you sign in for the future sync feature (see below), the standard authentication exchange.++You can confirm any of this by running Ensu offline once the model is downloaded, or by inspecting [the source](https://github.com/ente-io/ente).++## Sync and backup (in development)++The current release does not sync your chats anywhere. Each device's history is independent.++Encrypted sync and backup have been built and are ready, but not enabled in this release: we want feedback on the product direction before finalizing the architecture. When sync ships:++- It will use your existing Ente account, so you can opt in or out at any time.+- It will be end-to-end encrypted with the same library and the same key derivation that Ente Photos, Auth, and Locker use. Ente's servers will see ciphertext only.+- It will be self-hostable, like the rest of Ente.+- Your existing local chats will be picked up and backed up. Nothing already on your device will be lost.++Learn more in the [FAQ](/ensu/faq/#sync).++## Trust model++Ensu's privacy is structural rather than promised:++- The model runs on your device, so the plaintext never has to leave.+- There is no Ente account in the loop by default, so there is nothing on the server side to compromise.+- The app is open source, so you can confirm any of this independently.++What Ensu does **not** defend against:++- A compromised device. If something on your phone or computer can read app data, it can read your chat history. Use device-level protections (full-disk encryption, app lock, screen lock).+- Bugs in the model itself. Local models can still hallucinate or give wrong answers. Treat the output the way you would treat any other AI's output.+- Inference from prompts. If you paste a sensitive document into a chat and ask the model to summarize it, the document is on your device, but it is also now part of your local chat history. The protection is from third parties, not from yourself or anyone with access to the same device.++For the privacy guarantees of future cloud sync, see [Sync and backup](#sync-and-backup-in-development) above.++## Related topics++- [Introduction](/ensu/): install, send your first message, and prompts to try.+- [Features](/ensu/features/): everything Ensu can do, organized by feature.+- [FAQ](/ensu/faq/): privacy, models, sync, and troubleshooting.+- [Source code on GitHub](https://github.com/ente-io/ente): the full Ensu source, including the Rust core, the platform UIs, and the web app.diff --git a/docs/docs/ensu/index.md b/docs/docs/ensu/index.mdindex 7139204222..ce1ba5ea77 100644--- a/docs/docs/ensu/index.md+++ b/docs/docs/ensu/index.md@@ -12,17 +12,24 @@ Think of it as a ChatGPT-like experience, except nothing ever leaves your deviceFor the full backstory on why we built Ensu and where it is headed, read the launch post: [Ensu - Ente's Local LLM app](https://ente.com/blog/ensu/).-## Key highlights+## What Ensu is for-- **Fully private**: All inference happens on your device. Your conversations are never sent to any server.-- **Works offline**: No internet connection needed once the model is downloaded. Perfect for flights, travel, or anywhere without connectivity.-- **Image attachments**: You can attach images to your messages for multimodal conversations on iOS, Android, and desktop.-- **Open source**: Like all Ente products, the code is fully open source and available on [GitHub](https://github.com/ente-io/ente).-- **Cross-platform**: Available for iOS, Android, macOS, Linux, and Windows. There is also an experimental web version.+People use Ensu when they want an AI they can think alongside without sending their thoughts anywhere:-## Availability+- **Private reflection and journaling**, with a model that has nowhere to phone home.+- **Offline use** on flights, in remote areas, or anywhere without connectivity.+- **Discussing books and ideas.** Even the smaller default model knows classics like the Gita and the Bible quite well.+- **Quick everyday questions** where the answer does not need a web search and you would rather not paste your context into someone else's logs.-You can download Ensu from [ente.com/ensu](https://ente.com/ensu).+It is not a replacement for the largest cloud models. The model that runs on your phone is much smaller than the ones that power ChatGPT or Claude, so very long, highly technical, or multi-step reasoning tasks can be harder for it. The trade-off is privacy by design instead of by policy.++## How it works in one paragraph++When you first launch Ensu, it downloads a small language model and runs it locally from then on. Inference happens on your CPU and GPU, in the same app, with no calls to Ente or anyone else. Your conversations, voice input, and image attachments are processed on-device. Learn more in [How it works](/ensu/how-it-works).++## Install++Download Ensu from [ente.com/ensu](https://ente.com/ensu) or pick a platform below.| Platform | Where to get it || ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |@@ -31,25 +38,46 @@ You can download Ensu from [ente.com/ensu](https://ente.com/ensu).| macOS / Windows / Linux | [GitHub releases](https://github.com/ente-io/ente/releases?q=ensu) || Web | [ensu.ente.com](https://ensu.ente.com) (experimental) |-If you install the Android APK directly from GitHub releases, see [Verify the Ensu Android APK](/ensu/faq/android-apk-signature).+If you install the Android APK directly from GitHub releases, verify it against the published signing certificate. Learn more in [Verify the Ensu Android APK](/ensu/faq/android-apk-signature).-## Current status+The desktop apps auto-update on macOS, Linux, and Windows, so once installed you do not need to keep visiting the releases page.++## Send your first message++1. Open Ensu.+2. Type into the chat composer at the bottom of the screen.+3. Send. The model loads (a few seconds the first time, faster on later messages) and starts streaming a response.-Ensu is currently an **Ente Labs** project. This means we are actively iterating on the product and its direction, without committing to a fixed pricing or stability guarantee just yet. It is not as powerful as ChatGPT or Claude, but it is already useful and fun for many tasks.+That is the entire flow. There is no sign-in, no model picker to choose from, no "system" to configure. Each app keeps a sidebar of your previous chat sessions on the left, grouped by recency. Start a new chat at any time from the sidebar.++You can attach images and, on iOS and Android, dictate your message instead of typing. Learn more in [Features](/ensu/features/).++## What to try++If you are new to local LLMs, a few prompts that usually go well even on the smaller default model:++- "Summarize this paragraph in one sentence." (paste a paragraph)+- "I'm thinking about [something]. Help me work through it." (private reflection)+- "Translate the following into [language]: β¦"+- "Explain [a concept you half-remember] like I'm in a hurry."+- A photo of a sign in another language, with "What does this say?"++If the model gets confused on a long technical task or struggles with a multi-step math problem, that is the model's limit, not a bug. Local models are getting better quickly. Learn more about the gap in the [FAQ](/ensu/faq/#comparison-with-chatgpt).++## Current status-Some things people have been using it for:+Ensu is currently an **Ente Labs** project. We are actively iterating on the product and its direction, and we have not committed to a fixed price or stability guarantee just yet. It is already useful for many things, and it is free for now, with no limits.-- Private reflection and journaling with an AI that never phones home.-- Discussing books and ideas (Ensu knows classics like the Gita and the Bible quite well, even without web search).-- Chatting on flights and in places with no internet.+For recent updates, see the [Changelog](/ensu/changelog).-## Changelog+## Read next-For a list of recent changes, see the [Changelog](/ensu/changelog).+- [How it works](/ensu/how-it-works): on-device inference, what is stored where, and how Ensu stays private without a server.+- [Features](/ensu/features/): an overview of what Ensu can do on each platform.+- [FAQ](/ensu/faq/): common questions about privacy, models, sync, and troubleshooting.-## Getting Help+## Getting help-- **FAQ**: Check the [FAQ](/ensu/faq/) for common questions.-- **Discord**: Join the `#ensu` channel on [Discord](https://ente.com/discord).-- **Email**: Write to [[email protected]](mailto:[email protected]) with feedback or questions.-- **GitHub**: Report bugs or request features on [GitHub](https://github.com/ente-io/ente/issues).+- **Discord**: join the `#ensu` channel on [Discord](https://ente.com/discord).+- **Email**: write to [[email protected]](mailto:[email protected]) with feedback or questions.+- **GitHub**: report bugs or request features on [GitHub](https://github.com/ente-io/ente/issues).