Skip to content

Commit 57b53fd

Browse files
authored
Merge pull request #7 from mattgotteiner/matt/update-prepskills
Matt/update prepskills
2 parents e906fb5 + ba1a997 commit 57b53fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/backend/prepdocslib/blobmanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ async def upload_blob(self, file: File) -> str:
424424
await container_client.create_container()
425425

426426
# Re-open and upload the original file
427-
if file.url is None:
427+
# URL may be a path to a local file or already set to a blob URL
428+
if file.url is None or os.path.exists(file.url):
428429
with open(file.content.name, "rb") as reopened_file:
429430
blob_name = self.blob_name_from_file_name(file.content.name)
430431
logger.info("Uploading blob for document '%s'", blob_name)

app/backend/prepdocslib/cloudingestionstrategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ async def run(self) -> None:
304304
configuration=IndexingParametersConfiguration(
305305
query_timeout=None,
306306
# markdown_parsing_submode=None,
307-
data_to_extract="contentAndMetadata",
307+
data_to_extract="storageMetadata",
308308
# markdown_header_depth=None,
309309
allow_skillset_to_read_file_data=True,
310310
)

0 commit comments

Comments
 (0)