Open asfoorial opened 1 year ago
@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.
Is this feature going to be available in the plugin any time soon?
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. In meantime can you provide the use case which you are trying to solve with Highlight feature.
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.
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