parallex 0.3.1__tar.gz → 0.3.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {parallex-0.3.1 → parallex-0.3.3}/PKG-INFO +1 -1
- {parallex-0.3.1 → parallex-0.3.3}/parallex/ai/open_ai_client.py +1 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/parallex.py +4 -1
- {parallex-0.3.1 → parallex-0.3.3}/pyproject.toml +1 -1
- {parallex-0.3.1 → parallex-0.3.3}/LICENSE +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/README.md +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/__init__.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/ai/batch_processor.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/ai/output_processor.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/ai/uploader.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/file_management/converter.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/file_management/file_finder.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/file_management/remote_file_handler.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/file_management/utils.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/batch_file.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/image_file.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/page_response.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/parallex_callable_output.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/parallex_prompts_callable_output.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/prompt_response.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/raw_file.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/models/upload_batch.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/utils/constants.py +0 -0
- {parallex-0.3.1 → parallex-0.3.3}/parallex/utils/logger.py +0 -0
@@ -106,6 +106,9 @@ async def _prompts_execute(
|
|
106
106
|
process_semaphore = asyncio.Semaphore(concurrency)
|
107
107
|
prompt_tasks = []
|
108
108
|
for batch in batch_jobs:
|
109
|
+
logger.info(
|
110
|
+
f"waiting for batch to complete - {batch.id} - {batch.trace_id}"
|
111
|
+
)
|
109
112
|
prompt_task = asyncio.create_task(
|
110
113
|
_wait_and_create_prompt_responses(batch=batch, client=open_ai_client, semaphore=process_semaphore)
|
111
114
|
)
|
@@ -174,7 +177,7 @@ async def _execute(
|
|
174
177
|
|
175
178
|
pages = [page for batch_pages in page_groups for page in batch_pages]
|
176
179
|
logger.info(f"pages done. total pages- {len(pages)} - {trace_id}")
|
177
|
-
sorted_pages = sorted(pages, key=lambda x: x.
|
180
|
+
sorted_pages = sorted(pages, key=lambda x: x.page_number)
|
178
181
|
|
179
182
|
# TODO add combined version of MD to output / save to file system
|
180
183
|
callable_output = ParallexCallableOutput(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "parallex"
|
3
|
-
version = "0.3.
|
3
|
+
version = "0.3.3"
|
4
4
|
description = "PDF to markdown using Azure OpenAI batch processing"
|
5
5
|
authors = ["Jeff Hostetler <jeff@summed.ai>", "Kevin Bao <kevin@summed.ai>"]
|
6
6
|
repository = "https://github.com/Summed-AI/parallex"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|