llama-index tools azure_cv integration
Project description
Azure Computer Vision Tool
This tool connects to a Azure account and allows an Agent to perform a variety of computer vision tasks on image urls.
You will need to set up an api key and computer vision instance using Azure, learn more here: https://azure.microsoft.com/en-ca/products/cognitive-services/computer-vision
Usage
This tool has a more extensive example usage documented in a Jupyter notebook here
Here's an example usage of the AzureCVToolSpec.
from llama_index.tools.azure_cv import AzureCVToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = AzureCVToolSpec(api_key="your-key", resource="your-resource")
agent = FunctionAgent(
tools=tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4.1")
)
await agent.run(
"caption this image and tell me what tags are in it https://portal.vision.cognitive.azure.com/dist/assets/ImageCaptioningSample1-bbe41ac5.png"
)
await agent.run(
"caption this image and read any text https://portal.vision.cognitive.azure.com/dist/assets/OCR3-4782f088.jpg"
)
process_image: Send an image for computer vision classification of objects, tags, captioning or OCR.
This loader is designed to be used as a way to load data as a Tool in a Agent.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_azure_cv-0.5.0.tar.gz.
File metadata
- Download URL: llama_index_tools_azure_cv-0.5.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c831b3981845e34a5e7bfb137c1336626db493aed7df01745d8014e0d2b6076
|
|
| MD5 |
b585f9979a796c097f366c79c3071566
|
|
| BLAKE2b-256 |
148f61a78a5f55ed4319e6549b30ea75fea633bba719683c359294e630a3fae0
|
File details
Details for the file llama_index_tools_azure_cv-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_azure_cv-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a978001db86b01b74c6ac9000013e593c62c6219fc811171fb6840073e3e2be
|
|
| MD5 |
a9aaff656db6aa05029ed3a7fca298c1
|
|
| BLAKE2b-256 |
90cba585f382871480a4639b30a6f360a65156235194142650a564937219a18f
|