aws-samples / aws-samples/aws-ai-intelligent-document-processing

Error when executing notebook with latest rhubard version

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
244
Forks
129
PR merge metrics
No merged PRs in 30d

Description

I tried to run the notebooks:
[gen-ai/Bedrock/01-idp-genai-introduction.ipynb](https://github.com/aws-samples/aws-ai-intelligent-document-processing/blob/main/gen-ai/Bedrock/01-idp-genai-introduction.ipynb)]
and
[gen-ai/Bedrock/02-idp-genai-classify-summarize.ipynb](https://github.com/aws-samples/aws-ai-intelligent-document-processing/blob/main/gen-ai/Bedrock/02-idp-genai-classify-summarize.ipynb)
I am running the notebooks via the workshop [Intelligent document processing with AWS AI services](https://catalog.us-east-1.prod.workshops.aws/workshops/9469c070-3535-4c53-8c35-1b4f10f54913/en-US)

I am getting an error on the cells that use rhubarb.
The issue is resolved if I specify a previous rhubard version (v0.0.4)

```
/opt/conda/lib/python3.11/site-packages/rhubarb/analyze.py:359 │
│ """
SyntaxError: f-string expression part cannot include a backslash
```

I opened an [issue](https://github.com/awslabs/rhubarb/issues/29) in the rhubard repository.
The rhubard version should be specified explicitly, at least until the issue in the rhubarb repository is resolved

Contributor guide

Open the contributing guide

Research direction

Start with gen-ai/Bedrock/01-idp-genai-introduction.ipynb and gen-ai/Bedrock/02-idp-genai-classify-summarize.ipynb, focusing on the cells that use rhubarb. Specify rhubarb v0.0.4 as requested, then rerun those notebook cells and confirm the SyntaxError no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter-notebook, python
Domain
ai
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.