Skip to content
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

Feature/redbox 74 trigger embedding post ingest #108

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

gecBurton
Copy link
Collaborator

@gecBurton gecBurton commented Mar 14, 2024

Context

As a User I want the Ingest-app to add messages to the embed-queue once it has finished chunking so that the embed app knows it should embed the chunks

Changes proposed in this pull request

I have added code to publish ingested chunks to the embed queue

Guidance to review

Note that the rabbitmq tests are very flakey in so much that there is no fixture to ensure that the messages created in test do not overlap with those in your local state (obv not a problem in CI). this is probably the answer https://pypi.org/project/pytest-rabbitmq/ but is out of scope

Relevant links

https://technologyprogramme.atlassian.net/browse/REDBOX-74

Things to check

  • I have added any new ENV vars in all deployed environments
  • I have tested any code added or changed

@gecBurton gecBurton force-pushed the feature/REDBOX-74-trigger-embedding-post-ingest branch from f33e4ef to b49615d Compare March 14, 2024 14:01
docker-compose.yml Outdated Show resolved Hide resolved
items = self.file_destination.write_items(chunks)
logging.info(f"written {len(items)} chunks to elasticsearch")

for chunk in chunks:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the key change

@lmwilkigov lmwilkigov merged commit 264befe into main Mar 14, 2024
5 checks passed
@gecBurton gecBurton deleted the feature/REDBOX-74-trigger-embedding-post-ingest branch March 14, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants