Nathan.fooo c986e414f4
Vault workspace suggested question (#7903)
* chore: return suggested question when ai say i don't know

* chore: new message type

* chore: implement uI

* chore: implement UI

* fix: assertion in local ai chat

* chore: implement UI

* chore: update prompt

* chore: update logs

* chore: add tests

* chore: message id

* fix: local ai page animation issue

* chore: remove debug log

* fix: remove repeated setState

* chore: add test

* chore: test

* fix: compile

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2025-05-09 21:58:23 +08:00

29 lines
574 B
Rust

use serde::Serialize;
#[derive(Clone, Debug)]
pub struct PendingIndexedCollab {
pub object_id: String,
pub workspace_id: String,
pub content: String,
pub collab_type: i16,
}
#[derive(Clone, Debug)]
pub struct SqliteEmbeddedDocument {
pub workspace_id: String,
pub object_id: String,
pub fragments: Vec<SqliteEmbeddedFragment>,
}
#[derive(Clone, Debug)]
pub struct SqliteEmbeddedFragment {
pub content: String,
pub embeddings: Vec<f32>,
}
#[derive(Clone, Debug, Serialize)]
pub struct EmbeddedContent {
pub content: String,
pub object_id: String,
}