Files
AFFiNE-Mirror/packages/frontend/apps/android
akumatus 79d5f55471 feat(core): move context docs to user prompt (#10162)
Fix issue [BS-2522](https://linear.app/affine-design/issue/BS-2522).

### Why make this change?
If the user data contains illegal content, carrying the user data in the system prompt will run the risk of having the account banned.

### What Changed?
- Move the `Context Documents` to the user prompt.
- Add `withPrompt` in `QueryChatHistoriesInput` options.
- Get chat histories without prompt messages.
- Omit document context when saving messages to the `aiSessionMessage` db.
2025-02-13 12:08:13 +00:00
..

Android

AFFiNE Android app.

Setup

  • set CARGO_HOME to your system environment

  • add

    rust.cargoCommand={replace_with_your_own_cargo_home_absolute_path}/bin/cargo

    rust.rustcCommand={replace_with_your_own_cargo_home_absolute_path}/bin/rustc

    to App/local.properties

Build

  • yarn install
  • BUILD_TYPE=canary PUBLIC_PATH="/" yarn affine @affine/android build
  • yarn affine @affine/android cap sync
  • yarn affine @affine/android cap open android