# `Nous.Memory.Embedding.Local`
[🔗](https://github.com/nyo16/nous/blob/v0.17.1/lib/nous/memory/embedding/local.ex#L1)

Generic local embedding provider for OpenAI-compatible endpoints.

Works with Ollama, vLLM, LMStudio, or any OpenAI-compatible embeddings API.

## Options

  * `:base_url` - API base URL (default: "http://localhost:11434/v1" for Ollama)
  * `:model` - Model name (default: "nomic-embed-text")
  * `:dimension` - Embedding dimension (default: 768)
  * `:api_key` - API key if needed (default: nil)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
