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/get file chunks #151

Merged
merged 15 commits into from
Mar 27, 2024
Merged

Feature/get file chunks #151

merged 15 commits into from
Mar 27, 2024

Conversation

gecBurton
Copy link
Collaborator

@gecBurton gecBurton commented Mar 26, 2024

Context

As an User I want a way to retrieve Chunks associated with a File so that I can see that the chunks:

  1. are being produced
  2. are being embedded

Changes proposed in this pull request

A new endpoint /file/{file_uuid}/chunks has been added that returns list[Chunk]

Guidance to review

Relevant links

Things to check

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

@gecBurton gecBurton changed the base branch from main to feature/simply-model-api March 26, 2024 13:57
@gecBurton gecBurton marked this pull request as draft March 26, 2024 14:02
@gecBurton gecBurton marked this pull request as ready for review March 26, 2024 16:02
res = [
item["_source"]
for item in self.es_client.search(
index=target_index, query={"bool": {"filter": [{"term": {"parent_file_uuid": str(parent_file_uuid)}}]}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use the scan functionality shown further up to ensure proper retrieval of large results.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that would explain why my test didn't pass!

@gecBurton gecBurton merged commit e307d31 into main Mar 27, 2024
7 checks passed
@gecBurton gecBurton deleted the feature/get-file-chunks branch March 27, 2024 08:30
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