Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"llama-cloud-services>=0.6.69",
"llama-index-workflows>=2.2.0,<3.0.0",
"llama-index-workflows>=2.4.0,<3.0.0",
"python-dotenv>=1.1.0",
"jsonref>=1.1.0",
"click>=8.2.1,<8.3.0",
"click>=8.2.1,!=8.3.0",
"httpx>=0.28.1",
"llama-index-core>=0.14.0",
"llama-index-core>=0.14.0,<0.15.0",
]

[project.scripts]
Expand Down Expand Up @@ -50,4 +50,3 @@ process-file = "{{project_name_snake}}.process_file:workflow"

[tool.llamadeploy.ui]
directory = "ui"

4 changes: 2 additions & 2 deletions src/{{ project_name_snake }}/process_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ async def record_extracted_data(
message=f"Recorded extracted data for file {event.data.file_name}",
)
)
# remove past data when reprocessing the same file
# remove past data when reprocessing the same file. Do not validate the schema in case we've changed it.
if event.data.file_hash:
existing_data = await get_data_client().search(
existing_data = await get_data_client().untyped_search(
filter={
"file_hash": {
"eq": event.data.file_hash,
Expand Down
7 changes: 3 additions & 4 deletions test-proj/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"llama-cloud-services>=0.6.69",
"llama-index-workflows>=2.2.0,<3.0.0",
"llama-index-workflows>=2.4.0,<3.0.0",
"python-dotenv>=1.1.0",
"jsonref>=1.1.0",
"click>=8.2.1,<8.3.0",
"click>=8.2.1,!=8.3.0",
"httpx>=0.28.1",
"llama-index-core>=0.14.0",
"llama-index-core>=0.14.0,<0.15.0",
]

[project.scripts]
Expand Down Expand Up @@ -50,4 +50,3 @@ process-file = "test_proj.process_file:workflow"

[tool.llamadeploy.ui]
directory = "ui"

4 changes: 2 additions & 2 deletions test-proj/src/test_proj/process_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ async def record_extracted_data(
message=f"Recorded extracted data for file {event.data.file_name}",
)
)
# remove past data when reprocessing the same file
# remove past data when reprocessing the same file. Do not validate the schema in case we've changed it.
if event.data.file_hash:
existing_data = await get_data_client().search(
existing_data = await get_data_client().untyped_search(
filter={
"file_hash": {
"eq": event.data.file_hash,
Expand Down
Loading