Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperoni21 committed Nov 11, 2023
2 parents 89cbed1 + 40e273e commit 73398db
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 73398db

Please sign in to comment.