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

Adding ability to run query sets and save results on OpenSearch #49

Merged
merged 11 commits into from
Dec 3, 2024

Conversation

jzonthemtn
Copy link
Collaborator

No description provided.

@jzonthemtn jzonthemtn changed the title Opensearch query sets Adding ability to run query sets on OpenSearch Dec 2, 2024
@jzonthemtn jzonthemtn changed the title Adding ability to run query sets on OpenSearch Adding ability to run query sets and save results on OpenSearch Dec 2, 2024
Copy link
Collaborator

@wrigleyDan wrigleyDan left a comment

Choose a reason for hiding this comment

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

First glance over the code looks very good!

I left a couple of comments that I'm happy to talk about in more depth.

I'll run the defined endpoints also locally and add any findings to this review.

* @param judgments A list of {@link Judgment judgments} used for metric calculation.
* @param k The k used for metrics calculation, i.e. DCG@k.
*/
public SearchMetrics(final List<QueryResult> queryResults, final List<Judgment> judgments, final int k) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I plan to abstract out these metrics, i.e. SearchMetrics with implementations like DcgSearchMetrics and NdcgSearchMetrics to let others add search metrics.

Copy link
Collaborator

@wrigleyDan wrigleyDan left a comment

Choose a reason for hiding this comment

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

Nice work, this looks really great!

Thanks for working on my feedback so quickly

@jzonthemtn jzonthemtn merged commit c47127d into main Dec 3, 2024
18 checks passed
@jzonthemtn jzonthemtn deleted the opensearch-query-sets branch December 3, 2024 16: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.

2 participants