Skip to content

Commit

Permalink
Merge pull request #93 from openrewrite/add-timings-generative-model
Browse files Browse the repository at this point in the history
add query to suggested method patterns table
  • Loading branch information
justine-gehring authored Aug 5, 2024
2 parents 0288d29 + c452bad commit 52d8622
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
if (resultGenerativeModel || resultEmbeddingModels == 1) {
suggestedMethodPatternsTable.insertRow(ctx, new SuggestedMethodPatterns.Row(
method.printTrimmed(getCursor()),
methodPattern
methodPattern,
resembles
));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ public static class Row {
@Column(displayName = "Method Pattern",
description = "Method invocation pattern.")
String methodPattern;

@Column(displayName = "Query",
description = "The natural language search query.")
String query;
}
}

0 comments on commit 52d8622

Please sign in to comment.