docs: fix typo in README.md embeddings example. (#1232)

This commit is contained in:
Douglas Hanley 2024-02-29 12:55:50 -06:00 committed by GitHub
parent 8c71725d53
commit cf1fdd8a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -525,7 +525,7 @@ To generate text embeddings use [`create_embedding`](http://localhost:8000/api-r
```python ```python
import llama_cpp import llama_cpp
llm = llama_cpp.Llama(model_path="path/to/model.gguf", embeddings=True) llm = llama_cpp.Llama(model_path="path/to/model.gguf", embedding=True)
embeddings = llm.create_embedding("Hello, world!") embeddings = llm.create_embedding("Hello, world!")