Skip to content

Commit

Permalink
Update the loop to only take 1 sentence instead of 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan0x6C1 committed Mar 25, 2024
1 parent 5710895 commit 80b9c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox_exploration_zone/embed_client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async fn main() {
let client = Client::new();
let url = "http://localhost:11434/api/embeddings";

for sentence in sentences.iter().take(2) {
for sentence in sentences.iter().take(1) {
let request = EmbeddingRequest {
model: "nomic-embed-text".to_string(),
prompt: sentence.to_string(),
Expand Down

0 comments on commit 80b9c1e

Please sign in to comment.