-
Notifications
You must be signed in to change notification settings - Fork 1k
Python: Basic I/O for Encoded Image #1868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new Python sample demonstrating image analysis with Azure AI observability integration. The sample shows how to load an image, encode it as base64, send it for analysis using Azure OpenAI, and collect telemetry via Application Insights.
- Integrates image processing with Azure AI observability features
- Demonstrates base64 encoding of images for multimodal input
- Shows tracing setup for monitoring AI agent interactions
Comments suppressed due to low confidence (8)
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:6
- Import of 'json' is not used.
import json
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:8
- Import of 'datetime' is not used.
Import of 'timezone' is not used.
from datetime import datetime, timezone
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:9
- Import of 'Any' is not used.
from typing import Any
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:10
- Import of 'Annotated' is not used.
from typing import Annotated
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:11
- Import of 'BytesIO' is not used.
from io import BytesIO
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:14
- Import of 'ChatAgent' is not used.
from agent_framework import ChatMessage, DataContent, Role, TextContent, ChatAgent
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:16
- Import of 'Field' is not used.
from pydantic import Field
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py:23
- Import of 'SQLiteImageStore' is not used.
from db_setup import SQLiteImageStore
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
python/samples/getting_started/image_spec_poc/basic_input_output_with_observability.py
Outdated
Show resolved
Hide resolved
5fab578 to
051becd
Compare
|
Can refer to trace id - Also, the path for the image might vary |
moonbox3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We appreciate the contribution. What exact scenario are we trying to solve with these samples? Do we have a gap?
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ut_with_observability.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
d36ec13 to
4f71496
Compare
This is a POC for an image specification for semantic conventions which will ultimately be raised in upstream opentelemetry. This is not a gap but something we are working on to present in upstream OTEL. Sorry for the confusion. |
29aa6ba to
1595d24
Compare
Image Spec POC