mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-27 19:27:07 +02:00
chore: clean & refactor
This commit is contained in:
@@ -37,7 +37,8 @@ impl ContentProcessor {
|
||||
store_item(&self.db_client, content.clone()).await?;
|
||||
|
||||
let now = Instant::now();
|
||||
// Process in parallel where possible
|
||||
|
||||
// Perform analyis, this step also includes retrieval
|
||||
let analysis = self.perform_semantic_analysis(content).await?;
|
||||
|
||||
let end = now.elapsed();
|
||||
@@ -46,7 +47,7 @@ impl ContentProcessor {
|
||||
end
|
||||
);
|
||||
|
||||
// Convert and store entities
|
||||
// Convert analysis to objects
|
||||
let (entities, relationships) = analysis
|
||||
.to_database_entities(&content.id, &self.openai_client)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user