1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct VectorEntry {
7 pub id: String,
9 pub vector: Vec<f32>,
11 pub metadata: HashMap<String, String>,
13 pub content: Option<String>,
15 pub created_at: u64,
17 pub expires_at: Option<u64>,
19 pub channel: Option<String>,
21}
22
23#[derive(Debug, Clone, Serialize, Deserialize)]
25pub struct SearchResult {
26 pub id: String,
28 pub score: f32,
30 pub metadata: HashMap<String, String>,
32 pub content: Option<String>,
34 pub channel: Option<String>,
36}