mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-30 03:10:45 +02:00
chore: move serde helpers to common utils
Relocate SurrealDB serde helpers out of storage types so they can be reused broadly, and align retrieval-pipeline test setup with configured embedding dimensions.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::storage::types::{serde_helpers::deserialize_flexible_id, user::User, StoredObject};
|
||||
use crate::storage::types::{user::User, StoredObject};
|
||||
use crate::utils::serde_helpers::deserialize_flexible_id;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{error::AppError, storage::db::SurrealDbClient};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::storage::types::serde_helpers::deserialize_flexible_id;
|
||||
use crate::utils::serde_helpers::deserialize_flexible_id;
|
||||
use crate::storage::types::user::User;
|
||||
use crate::{error::AppError, storage::db::SurrealDbClient};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -10,7 +10,6 @@ pub mod knowledge_entity_embedding;
|
||||
pub mod knowledge_relationship;
|
||||
pub mod message;
|
||||
pub mod scratchpad;
|
||||
pub mod serde_helpers;
|
||||
pub mod system_prompts;
|
||||
pub mod system_settings;
|
||||
pub mod text_chunk;
|
||||
@@ -29,7 +28,7 @@ macro_rules! stored_object {
|
||||
use serde::{Deserialize, Serialize};
|
||||
use $crate::storage::types::StoredObject;
|
||||
#[allow(unused_imports)]
|
||||
use $crate::storage::types::serde_helpers::{
|
||||
use $crate::utils::serde_helpers::{
|
||||
deserialize_flexible_id, serialize_datetime, deserialize_datetime,
|
||||
serialize_option_datetime, deserialize_option_datetime,
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::storage::types::serde_helpers::deserialize_flexible_id;
|
||||
use crate::utils::serde_helpers::deserialize_flexible_id;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{error::AppError, storage::db::SurrealDbClient, storage::types::StoredObject};
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
pub mod config;
|
||||
pub mod embedding;
|
||||
pub mod ingest_limits;
|
||||
pub mod serde_helpers;
|
||||
pub mod template_engine;
|
||||
|
||||
Reference in New Issue
Block a user