GitXplorerGitXplorer
o

llm-azure-api-embed

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
1a1ac9584a3be5d3d1bd71796d521c9a02f0274d

v0.1 add code

oorangewise committed 7 months ago
Unverified
53eea9c70541247d89e004bd94600402003464b1

first commit

oorangewise committed 7 months ago

README

The README file for this repository.

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