Files
ollama-rs/examples/embed.rs
André Cipriani Bandarra 0f796f1a2f Add embed endpoint (POST /api/embed)
Implement the Ollama POST /api/embed endpoint for generating vector
embeddings from text input.

- Add EmbedInput, EmbedRequest, EmbedResponse types in src/types/embed.rs
- Add OllamaClient::embed() async method in src/lib.rs
- Register embed module in src/types/mod.rs
- Add usage example in examples/embed.rs
- Update README with embed endpoint documentation
2026-02-01 21:26:44 +00:00

797 B