/llm-azure-api-embed

Create embeddings using the Azure API

Primary LanguagePythonApache License 2.0Apache-2.0

llm-azure-api-embed

PyPI License

Create embeddings using the Azure OpenAI API

Installation

Install this plugin in the same environment as LLM.

llm install llm-azure-api-embed

Usage

Setup your deployemnts in ``

[
  {
    "deployment": "ada",
    "api_base": "https://<endpoint name>.openai.azure.com",
    "api_version": "2023-05-15",
    "api_key_name": "<your key name>"
  }
]

You can then use your Azure embedding models like this:

llm embed -m azure/ada -c "hello world"

See the LLM embeddings documentation for more you can do with the tool.

Development

Install

llm install -e .

Confirm installation:

llm plugins