Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orangewise/llm-azure-api-embed
Create embeddings using the Azure API
https://github.com/orangewise/llm-azure-api-embed
Last synced: 8 days ago
JSON representation
Create embeddings using the Azure API
- Host: GitHub
- URL: https://github.com/orangewise/llm-azure-api-embed
- Owner: orangewise
- License: apache-2.0
- Created: 2024-06-26T09:06:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T11:01:11.000Z (5 months ago)
- Last Synced: 2024-11-04T04:18:39.731Z (12 days ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# llm-azure-api-embed
[![PyPI](https://img.shields.io/pypi/v/llm-azure-api-embed.svg)](https://pypi.org/project/llm-azure-api-embed/)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/orangewise/llm-azure-api-embed/blob/main/LICENSE)Create embeddings using the Azure OpenAI API
## Installation
Install this plugin in the same environment as [LLM](https://llm.datasette.io/).
```bash
llm install llm-azure-api-embed
```
## UsageSetup your deployemnts in ``
```json
[
{
"deployment": "ada",
"api_base": "https://.openai.azure.com",
"api_version": "2023-05-15",
"api_key_name": ""
}
]
```You can then use your Azure embedding models like this:
```bash
llm embed -m azure/ada -c "hello world"
```See [the LLM embeddings documentation](https://llm.datasette.io/en/stable/embeddings/index.html) for more you can do with the tool.
## Development
### Install
```
llm install -e .
```Confirm installation:
```
llm plugins
```