File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2
2
import logging
3
3
import os
4
4
import re
5
+ from pathlib import Path
5
6
from typing import Optional , Union
6
7
7
8
from azure .core .credentials_async import AsyncTokenCredential
@@ -78,7 +79,8 @@ async def upload_document_image(
78
79
79
80
font = None
80
81
try :
81
- font = ImageFont .truetype ("arial.ttf" , 24 )
82
+ font_path = Path (__file__ ).parent / "Jupiteroid-Regular.ttf"
83
+ font = ImageFont .truetype (str (font_path ), 24 )
82
84
except OSError :
83
85
try :
84
86
font = ImageFont .truetype ("/usr/share/fonts/truetype/freefont/FreeMono.ttf" , 24 )
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
3
3
* Fix/add unit tests - check coverage
4
4
* Add documentation
5
+ * Test vectorizer from Search Portal - requires correct permissions and vectorizer
5
6
* Test with agentic
6
7
* Add vectorizer for images field - special from https://learn.microsoft.com/en-us/azure/search/vector-search-vectorizer-ai-services-vision
7
8
* Update the approaches to set image_sources appropriately in run_agentic_retrieval_approach
You can’t perform that action at this time.
0 commit comments