Assistance with renaming/classifying via chat

This is one of the most theoretically powerful uses of AI in my workflow — but I just can’t get them to work. That is, I have fairly strict naming convention / organizational requirements. I have prompts that communicate these, but I can’t call these prompts in a way where the assistant is able to perform the chat (e.g., if I run a batch process with my custom renaming prompt and have it rename to “query response” rather than “chat suggestion” I do get the name I want, but it’s buried in chat interaction dross that winds up in the file name).

I’ve tried to accomplish the same end just by modifying the role in settings, but putting these specific instructions there is both kludgy and doesn’t actually seem to work.

Maybe I’m missing something, but if not, I think the ask is: could we customize the prompting behind “classify via chat” and “rename to chat suggestions”?

I have fairly strict naming convention / organizational requirements.

You need to provide more information on the situation, starting with the LLM and prompt you’re using. If you don’t want to discuss this publicly, hold the Option key in DEVONthink and choose Report Bug.

Also, it’s quite possible AI is not the best mechanism for this process. It’s impossible to tell from what you’ve said so far.

Apologies for not being clear! Separately: continually amazed at how quickly you respond to forum messages — thank you.

Essentially, I get a lot of the same kinds of documents (court filings and opinions) from various sources that observe absolutely no file name conventions. There are standardized ways of relaying legal citation information (most importantly: “bluebooking”), and my goal is to have all my documents use their year of publication and bluebook citation as their title. Getting this right requires parsing at least some of the text so, historically, this would be fairly labor intensive. LLMs are very good at the task, but automating it within DEVONthink would be a big win for my workflow.

Similarly, I like to file these away in a manner that reflects court hierarchies. “Classify via chat” seems to think along the same lines — but it takes a random guess at how that hierarchy would be constructed rather than looking at how I’ve been doing it for years.

1 Like

Which provider/model do you use? This is as important as the prompt.

Primarily Gemini (flash light or flash for these tasks) but also Claude and Ollama. Results are different (but similarly off) across the various provider and model combinations I’ve tried.

And how does your prompt look like?

Most recently, in relevant part:

Strictly apply the following naming formats:

  1. Court Cases:
    • Format: YYYY — [Party A] v. [Party B], [Reporter Citation] ([Court] YYYY)
    • Omit the court designation in the parenthetical when citing US Supreme Court precedent
    • Example: 1935 — Douglas v. Cunningham, 294 U.S. 207 (1935)

The complete prompt would be useful too. The snippet just defines the naming format but I guess the complete prompt properly specifies what the AI should and shouldn’t return.

I’ve used a number of different approaches and — sheepishly! — I’ll admit that I looked up the version with the most limiting language about output and there was an error there in how I set up the batch process (it fell back on chat suggested title rather than query response).

Fixing that process fixed my problem.

Feeling a little sheepish, but grateful for your helping me get there.

1 Like

Good to know that you were able to fix the issue!