-
Notifications
You must be signed in to change notification settings - Fork 1
draft: [CAI-204] Chatbot/presidio in docker for local development #1201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: marcobottaro <[email protected]>
…eveloper-portal into chatbot/docker-compose-complete
|
Co-authored-by: marcobottaro <[email protected]>
57d712c
to
d97640a
Compare
|
||
CMD ["fastapi", "dev", "src/app/main.py", "--port", "8080"] | ||
RUN python -m spacy download it_core_news_md | ||
RUN python -m spacy download en_core_web_md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here are missing to download: es_core_news_md
, de_core_news_md
, fr_core_news_md
, el_core_news_md
, hr_core_news_md
, and sl_core_news_md
.
chromedriver-py = "^129.0.6668.91" | ||
llama-index-postprocessor-presidio = "^0.2.0" | ||
presidio-anonymizer = "^2.2.355" | ||
presidio-analyzer = "^2.2.355" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove presidio-anonymizer
and presidio-analyzer
and install llama-index-postprocessor-presidio
as in the pyproject.toml
in main. Check this out.
In the end, why chromedriver-py
?
profile_name = locals().get('profile_name', None), | ||
region_name=locals().get('region_name', None) | ||
region_name=AWS_DEFAULT_REGION | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in boto3 session are missing the aws_access_key_id
and aws_secret_access_key
apps/chatbot/src/app/main.py
Outdated
queriedAt: str | None = None | ||
|
||
if (os.getenv('environment', 'dev') == 'local'): | ||
profile_name='dummy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw this dummy
in many files. isn't better to but this profile_name
in config/params.yaml
or in a enviroment variable?
'dynamodb', | ||
endpoint_url=os.getenv('CHB_DYNAMODB_URL', 'http://localhost:8000'), | ||
region_name=AWS_DEFAULT_REGION | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws_access_key_id
and aws_secret_access_key
are missing
'dynamodb', | ||
region_name=AWS_DEFAULT_REGION | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws_access_key_id
and aws_secret_access_key
are missing
|
||
ssm = boto3.client( | ||
"ssm", | ||
aws_access_key_id=AWS_ACCESS_KEY_ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws_access_key_id
and aws_secret_access_key
are missing, but this is already handled in main
if file in dynamic_htmls: | ||
# FIX: resolve webdriver.Chrome "self.assert_process_still_running" error in docker | ||
# if file in dynamic_htmls: | ||
if 6 == 9: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix this
Jira Pull Request LinkThis Pull Request refers to the following Jira issue CAI-204 |
now it works with Presidio |
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: