-
Notifications
You must be signed in to change notification settings - Fork 73
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
[FEATURE] Sentence Highlighter #145
Comments
@asfoorial This is an interesting feature, and I remember the same request for the highlight feature at the time the RFC was created for this plugin.
Highlight feature was not in our roadmap, as team was busy in making plugin GA, but we would really like this feature to be present in plugin. @asfoorial on the approaches suggested I need to take a deep-look to see if that is feasible or not. |
Please +1 if you are looking for this feature to help prioritize |
+1 for highlight over neural searches and hybrid searches. I think this could be helpful when building RAG-based workflows when you're trying to export portions of larger documents to extract just the portion of the text that's being matched. |
[Catch All Triage - 1, 2, 3, 4] |
Is your feature request related to a problem?
No
What solution would you like?
I would like to have a highlighter that supports the neural search capability. It should highlight the most relevant sentences in the neural search resulting documents.
What alternatives have you considered?
There are no available alternatives at the moment. So the only choice is to develop one.
Do you have any additional context?
I tried to implement it myself but faced the following challenges:
@OverRide
public HighlightField highlight(FieldHighlightContext fieldContext) {
System.out.println("Query: "+fieldContext.context.query());
}
@OverRide
public HighlightField highlight(FieldHighlightContext fieldContext) {
System.out.println("highlighting..");
List responses = new ArrayList<>();
String queryText = get query text from fieldContext.context.query()
Having said the above, I hope that you tell what is the route to take here. Is this feature going to be available in the plugin any time soon?
Thanks
The text was updated successfully, but these errors were encountered: