Reify Embedding
/Sha1
structs that can be (de)serialized from SQL
Co-Authored-By: Kyle Caverly <kyle@zed.dev>
This commit is contained in:
parent
c763e728d1
commit
3001a46f69
5 changed files with 180 additions and 138 deletions
|
@ -121,7 +121,7 @@ impl EmbeddingQueue {
|
|||
&mut fragment.file.lock().documents[fragment.document_range.clone()]
|
||||
{
|
||||
if let Some(embedding) = embeddings.next() {
|
||||
document.embedding = embedding;
|
||||
document.embedding = Some(embedding);
|
||||
} else {
|
||||
//
|
||||
log::error!("number of embeddings returned different from number of documents");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue