feat | LAY-896 Added pagination for results resource. Updated and add…#8
Merged
Robert-H-Leonard merged 3 commits intoAug 14, 2025
Merged
Conversation
…ed unit tests where coverage was missing. Updated docs.
Robert-H-Leonard
suggested changes
Aug 13, 2025
| import gc | ||
| from atlas import Atlas | ||
|
|
||
| def memory_efficient_processing(evaluation_id: str): |
Contributor
There was a problem hiding this comment.
I don't think this one is needed.
Comment on lines
+44
to
+47
| min_toxicity_score: Optional[float] | ||
| max_toxicity_score: Optional[float] | ||
| min_readability_score: Optional[float] | ||
| max_readability_score: Optional[float] |
Contributor
There was a problem hiding this comment.
The format of the metrics are a key:value pair of metricName: float value.
Right now the supported metrics are:
- readability
- toxicity
- hallucination
The results themselves have metric values and not a range. See results here for example: https://app.layerlens.ai/evaluations/689343c659f37b1398a677b2
Collaborator
Author
There was a problem hiding this comment.
Contributor
There was a problem hiding this comment.
Yep here we are dealing with the Results entity here so the later in the image.
Contributor
There was a problem hiding this comment.
Metrics should be the key:value map of floats.
Comment on lines
+20
to
+21
| page: Optional[int] = None, | ||
| page_size: Optional[int] = None, |
Contributor
There was a problem hiding this comment.
Do we need default values here? Like defaulting to the first page of results?
…ources. Removed memory mgmnt docs. Added unit test for the default page behavior
Robert-H-Leonard
approved these changes
Aug 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

…ed unit tests where coverage was missing. Updated docs.