mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-02-08 00:26:19 +00:00
* 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>
29 lines
574 B
Rust
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,
|
|
}
|