mirror of
https://github.com/perstarkse/minne.git
synced 2026-06-10 08:22:46 +02:00
feat: complete deletion of items on request
This commit is contained in:
@@ -66,7 +66,7 @@ impl LLMGraphAnalysisResult {
|
||||
.await?;
|
||||
|
||||
// Process relationships
|
||||
let relationships = self.process_relationships(Arc::clone(&mapper))?;
|
||||
let relationships = self.process_relationships(source_id, Arc::clone(&mapper))?;
|
||||
|
||||
Ok((entities, relationships))
|
||||
}
|
||||
@@ -116,6 +116,7 @@ impl LLMGraphAnalysisResult {
|
||||
|
||||
fn process_relationships(
|
||||
&self,
|
||||
source_id: &str,
|
||||
mapper: Arc<Mutex<GraphMapper>>,
|
||||
) -> Result<Vec<KnowledgeRelationship>, AppError> {
|
||||
let mut mapper_guard = mapper
|
||||
@@ -130,6 +131,7 @@ impl LLMGraphAnalysisResult {
|
||||
Ok(KnowledgeRelationship::new(
|
||||
source_db_id.to_string(),
|
||||
target_db_id.to_string(),
|
||||
source_id.to_string(),
|
||||
rel.type_.clone(),
|
||||
None,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user