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

Getting judgments for metrics calculation. Improving error handling and validation. #50

Merged
merged 10 commits into from
Dec 6, 2024

Conversation

jzonthemtn
Copy link
Collaborator

Getting judgments for metrics calculation. Improving error handling and validation

Copy link
Member

@epugh epugh left a comment

Choose a reason for hiding this comment

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

Good progress... I wonder, is there a CLI for opensearch and opensearch plugins that we should be wired into? in place of the various .sh scripts that we end up generating cause the REST api is too many calls ;-)

Copy link
Member

Choose a reason for hiding this comment

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

i wonder if we shoulid call this dir sample-data to reflect that it isn't "real data shipped with the plugin"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. This is kind of what sparked my thought about having data external. I don't want another repo, but it's almost to the point where putting data somewhere else would be helpful.

@@ -329,7 +333,7 @@ public String indexJudgments(final Collection<Judgment> judgments) throws Except
final Map<String, Object> judgmentsSource = new HashMap<>();
judgmentsSource.put("judgments", j);

final IndexRequest indexRequest = new IndexRequest(INDEX_JUDGMENTS)
final IndexRequest indexRequest = new IndexRequest(JUDGMENTS_INDEX_NAME)
Copy link
Member

Choose a reason for hiding this comment

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

JUDGEMENTS_INDEX_NAME ;-). J/k.

@jzonthemtn
Copy link
Collaborator Author

Good progress... I wonder, is there a CLI for opensearch and opensearch plugins that we should be wired into? in place of the various .sh scripts that we end up generating cause the REST api is too many calls ;-)

There is one but I think it's more management stuff. We might be better off making a "search relevance CLI."

https://opensearch.org/docs/latest/tools/cli/

@jzonthemtn jzonthemtn marked this pull request as draft December 4, 2024 23:25
@jzonthemtn jzonthemtn marked this pull request as ready for review December 6, 2024 12:16
@jzonthemtn jzonthemtn merged commit a8517ed into main Dec 6, 2024
18 checks passed
@jzonthemtn jzonthemtn deleted the metrics branch December 6, 2024 12:16
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