Skip to content

feat | LAY-896 Added pagination for results resource. Updated and add…#8

Merged
Robert-H-Leonard merged 3 commits into
mainfrom
feat/LAY-896-paginated-response-results-resource
Aug 14, 2025
Merged

feat | LAY-896 Added pagination for results resource. Updated and add…#8
Robert-H-Leonard merged 3 commits into
mainfrom
feat/LAY-896-paginated-response-results-resource

Conversation

@Lzok

@Lzok Lzok commented Aug 13, 2025

Copy link
Copy Markdown
Collaborator

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

…ed unit tests where coverage was missing. Updated docs.
Comment thread docs/examples/advanced-usage.md Outdated
import gc
from atlas import Atlas

def memory_efficient_processing(evaluation_id: str):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this one is needed.

Comment thread src/atlas/_models.py Outdated
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]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We have two metric properties here. One is "global", in the parent object. They are optional because some configurable metrics could not be present.

The other metrics are the ones inside each result. Both of them are mapped in the models.

Do we want to remove the parent ones?

image

@Robert-H-Leonard Robert-H-Leonard Aug 13, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yep here we are dealing with the Results entity here so the later in the image.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Metrics should be the key:value map of floats.

Comment on lines +20 to +21
page: Optional[int] = None,
page_size: Optional[int] = None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need default values here? Like defaulting to the first page of results?

@Robert-H-Leonard Robert-H-Leonard self-requested a review August 14, 2025 11:46
@Robert-H-Leonard Robert-H-Leonard merged commit 729575c into main Aug 14, 2025
6 checks passed
@m-peko m-peko deleted the feat/LAY-896-paginated-response-results-resource branch February 24, 2026 08:18
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.

2 participants