Skip to content

Conversation

batdevis
Copy link
Collaborator

List of Changes

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@batdevis batdevis requested a review from a team as a code owner October 14, 2024 15:59
Copy link

changeset-bot bot commented Oct 14, 2024

⚠️ No Changeset found

Latest commit: b3c8a33

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@christian-calabrese christian-calabrese force-pushed the chatbot/presidio-in-docker branch from 57d712c to d97640a Compare October 16, 2024 15:27
@batdevis batdevis changed the title draft: [CAI-204] Chatbot/presidio in docker for local development [CAI-204] Chatbot/presidio in docker for local development Oct 21, 2024
@batdevis batdevis changed the title [CAI-204] Chatbot/presidio in docker for local development draft: [CAI-204] Chatbot/presidio in docker for local development Oct 21, 2024

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
Copy link
Collaborator

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"
Copy link
Collaborator

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
)
Copy link
Collaborator

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

queriedAt: str | None = None

if (os.getenv('environment', 'dev') == 'local'):
profile_name='dummy'
Copy link
Collaborator

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
)
Copy link
Collaborator

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
)

Copy link
Collaborator

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,
Copy link
Collaborator

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:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix this

@github-actions github-actions bot removed the infra label Oct 23, 2024
Copy link
Contributor

github-actions bot commented Oct 23, 2024

Jira Pull Request Link

This Pull Request refers to the following Jira issue CAI-204

@batdevis batdevis closed this Oct 30, 2024
@batdevis
Copy link
Collaborator Author

now it works with Presidio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants