wesichain_core/document.rs
1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4
5use crate::Value;
6
7#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
8pub struct Document {
9 pub id: String,
10 pub content: String,
11 pub metadata: HashMap<String, Value>,
12 pub embedding: Option<Vec<f32>>,
13}