Skip to content

Commit dae363f

Browse files
committed
Add font, rename multimodal doc
1 parent a2fa105 commit dae363f

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed
135 KB
Binary file not shown.

app/backend/prepdocslib/blobmanager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import logging
33
import os
44
import re
5+
from pathlib import Path
56
from typing import Optional, Union
67

78
from azure.core.credentials_async import AsyncTokenCredential
@@ -78,7 +79,8 @@ async def upload_document_image(
7879

7980
font = None
8081
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)
8284
except OSError:
8385
try:
8486
font = ImageFont.truetype("/usr/share/fonts/truetype/freefont/FreeMono.ttf", 24)
File renamed without changes.

todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ TODO:
22

33
* Fix/add unit tests - check coverage
44
* Add documentation
5+
* Test vectorizer from Search Portal - requires correct permissions and vectorizer
56
* Test with agentic
67
* Add vectorizer for images field - special from https://learn.microsoft.com/en-us/azure/search/vector-search-vectorizer-ai-services-vision
78
* Update the approaches to set image_sources appropriately in run_agentic_retrieval_approach

0 commit comments

Comments
 (0)