mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-30 06:12:00 +02:00
refactor: add openai client and improve reference handling
This commit is contained in:
@@ -101,7 +101,7 @@ impl ContentProcessor {
|
||||
|
||||
// Could potentially process chunks in parallel with a bounded concurrent limit
|
||||
for chunk in chunks {
|
||||
let embedding = generate_embedding(&self.openai_client, chunk.to_string()).await?;
|
||||
let embedding = generate_embedding(&self.openai_client, chunk).await?;
|
||||
let text_chunk = TextChunk::new(content.id.to_string(), chunk.to_string(), embedding);
|
||||
store_item(&self.db_client, text_chunk).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user