Highlighting by Chat Assistant?

Would you consider a tool to allow AI to highlight specific words or other content? That could be quite useful.

It might even be a simple enough computing task for a local LLM to perform - therefore allowing a degree of private and free indexing or summarization even to large documents.

Currently I get:

Thanks for the suggestion but there are currently no such plans. What’s the actual usage scenario?

The usage would be just about any situation where currently someone might do a toolbar search for a particular word or phrase in a document - except that instead of it being a 1-time search this would call attention to those items when later reading the document.

For example perhaps I am documenting an individual’s history of migraine headache frequency. It would be helpful to highlight the word migraine so I can easily find it when reading the document.

In fact this might also be doable and useful not even as an AI tool but simply as part of the standard DT4 interface. The UI already does this sort of highlight any time I search for something in a toolbar search. It would be helpful to simply have a button to highlight all of those found occurrences permanently - not just during that one-off search.

1 Like

Indeed. Not everything that could be done via AI has to be done that way. At least as long as AI remains unreliable, slow & expensive.

2 Likes

I second @rkaplan! Though for his second suggestion in just making it a DT function, rather than AI. We are in the same area, though he’s on the expert side of things. This would be a very useful tool.

@cgrunenberg

As for your question about use case- another benefit of this is that if these highlights were created as annotations, then I would be able to use the existing Summarize Annotations tool in order to get a nice report of all these highlights with corresponding page links.

That would be super useful.

Related question - Suppose I have a recurring list of keywords that I would want to highlight in documents. Is there any form of automation - Script, Smart Rule, or Batch Process - which I could use to iterate through my list of keywords and highlight all occurrences of each of those words?

Only via a custom script using the PDFkit framework.

So I would refer to the PDFKit documentation and use the Objective C bridge to write an Applescript?

Exactly. As far as I remember @chrillek and others already posted scripts using the PDFkit., both AppleScript and JavaScript.

1 Like

There’s this:

Might get you started. PLEASE see the last post in the thread, as the write part is important.

1 Like

Thanks - much appreciated