test: production ingest E2E test suite with enhanced logging #55
@@ -70,11 +70,13 @@ impl ObsidianRefSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Check if a file path is allowed (matches configured prefixes)
|
/// Check if a file path is allowed (matches configured prefixes)
|
||||||
|
#[allow(dead_code)]
|
||||||
fn is_allowed_path(&self, path: &str) -> bool {
|
fn is_allowed_path(&self, path: &str) -> bool {
|
||||||
self.allowed_paths.iter().any(|prefix| path.starts_with(prefix))
|
self.allowed_paths.iter().any(|prefix| path.starts_with(prefix))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Chunk reference document via heading-boundary logic
|
/// Chunk reference document via heading-boundary logic
|
||||||
|
#[allow(dead_code)]
|
||||||
fn chunk_document(&self, path: &str, content: &str) -> Vec<Record> {
|
fn chunk_document(&self, path: &str, content: &str) -> Vec<Record> {
|
||||||
// M3.6.1 heading-boundary chunking
|
// M3.6.1 heading-boundary chunking
|
||||||
// - Split by headings
|
// - Split by headings
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ struct EmbeddingRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
enum EmbeddingResponse {
|
enum EmbeddingResponse {
|
||||||
Success {
|
Success {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
use sqlx::PgPool;
|
use sqlx::PgPool;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use serde_json::json;
|
|
||||||
|
|
||||||
/// Minimal audit logger - records version snapshots on mutation
|
/// Minimal audit logger - records version snapshots on mutation
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
|||||||
Reference in New Issue
Block a user