chore: rename get_id to id, add doc comments, pre-allocate format_history

This commit is contained in:
Per Stark
2026-05-27 18:06:16 +02:00
parent 224a7db451
commit 30bb59f243
16 changed files with 52 additions and 25 deletions
+2 -2
View File
@@ -240,7 +240,7 @@ impl PipelineServices for DefaultPipelineServices {
) -> Result<(Vec<EmbeddedKnowledgeEntity>, Vec<KnowledgeRelationship>), AppError> {
analysis
.to_database_entities(
content.get_id(),
content.id(),
&content.user_id,
&self.openai_client,
&self.db,
@@ -271,7 +271,7 @@ impl PipelineServices for DefaultPipelineServices {
.await
.map_err(|e| AppError::InternalError(format!("FastEmbed embedding for chunk failed: {e}")))?;
let chunk_struct = TextChunk::new(
content.get_id().to_string(),
content.id().to_string(),
chunk_text,
content.user_id.clone(),
);