Skip to content

Commit

Permalink
fix: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marieaurore123 committed Dec 4, 2024
1 parent 88ba481 commit 0e8f492
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rig-core/src/vector_store/in_memory_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ impl<D: Serialize + Eq> InMemoryVectorStore<D> {
if let Some((distance, embed_doc)) = embeddings
.iter()
.map(|embedding| {
println!("Embedding: {:?}: {:?}", embedding, embedding.cosine_similarity(prompt_embedding, false));
println!(
"Embedding: {:?}: {:?}",
embedding,
embedding.cosine_similarity(prompt_embedding, false)
);
(
OrderedFloat(embedding.cosine_similarity(prompt_embedding, false)),
&embedding.document,
Expand Down

0 comments on commit 0e8f492

Please sign in to comment.