Repository navigation
feat: list a project's datapoints with filters and pagination - #2
Merged
Merged
Conversation
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.
Adds
GET /api/v1/datapointsto make it easier to see what is stored for a project when debugging.What it does
limit(1 to 200, default 50) and an opaquecursor; the response carriesnextCursor,nullon the last page.sourceId(direct lookup, no scan),audience(projectmeans none),label(case-insensitive substring),occurredFrom/occurredTo.includeContent=trueadds content; it is off by default since it costs an extra read per datapoint.contentTokens,contentSha256,embeddingModelandembeddingDim, without the vector.Trade-offs
idorder, so S3 can list them incrementally withStartAfter, rather than sorted by time.nextCursor.Docs
README: documents the endpoint, adds the seed script to the quick start, fixes which endpoints return
503while loading, and refreshes the status and "Not yet" sections.Testing
cargo test --test datapoints -- --ignoredagainst LocalStack: paging, each filter, listing while loading, validation.🤖 Generated with Claude Code