Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperoni21 authored Nov 11, 2023
1 parent 7cd1199 commit 40e273e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It was made following the [Ollama API](https://github.com/jmorganca/ollama/blob/
### Add ollama-rs to your Cargo.toml
```toml
[dependencies]
ollama-rs = { git = "https://github.com/pepperoni21/ollama-rs" }
ollama-rs = "0.1.0"
```
### Initialize Ollama
```rust
Expand Down Expand Up @@ -88,4 +88,4 @@ ollama.delete_model("mario_copy".into()).await.unwrap();
let prompt = "Why is the sky blue?".to_string();
let res = ollama.generate_embeddings("llama2:latest".to_string(), prompt, None).await.unwrap();
```
*Returns a `GenerateEmbeddingsResponse` struct containing the embeddings (a vector of floats).*
*Returns a `GenerateEmbeddingsResponse` struct containing the embeddings (a vector of floats).*

0 comments on commit 40e273e

Please sign in to comment.