DEVONthink as a conversational knowledge base — how close are we?

Dear community,

I’ve been thinking about something and would love to hear your thoughts, particularly from anyone who has experimented with DEVONthink’s AI and MCP.

My dream is: I’d like to interact with my entire DEVONthink documents collection through a conversational interface such as Claude or ChatGPT.

I know that DEVONthink 4 already supports AI-powered searches and has a built-in MCP server. But I’m curious how far we can take this, especially when working with large collections of documents (in my case, hundreds of PDF documents…)

Instead of manually searching for keywords, selecting documents, I’d like to ask questions in natural language and have the AI retrieve information from across my entire collection.

For example, I might ask:

  • “What do the books in my collection say about different approaches to sourdough fermentation, and where do their recommendations differ?”

Ideally, the AI would identify relevant passages, connect information from multiple sources, and produce a coherent answer with references to the original documents.

The important distinction is that I don’t want the AI to invent answers based on its training. I want it to retrieve and synthesize information from my own documents.

My DEVONthink collection contains gigabytes of data. Obviously, sending all that information to an LLM with every query is impossible.

But perhaps that’s not how such a system should work.

I’ve been reading a bit about Retrieval-Augmented Generation (RAG). And while I lack technical ability to fully grasp the technicalities behind this approach, my understanding is that documents can be indexed in advance, allowing the system to retrieve only the relevant passages when answering a question.

This brings me to my main questions:

1. How close does DEVONthink’s existing AI/MCP integration come to this experience? Can it reliably retrieve and synthesize information from across hundreds or thousands of documents without manually selecting them…?

2. How effective is its retrieval? Can it identify relevant information based on meaning rather than exact keyword matches? Can it retrieve specific passages from multiple PDFs rather than processing entire documents?

3. I saw this comment from @cgrunenberg : RAG (Retrieval Augemented Generation) and DevonThink — where can I learn more about the RAG supported use cases?

The analogy I keep coming back to is a traditional database.

When querying a database using SQL, we don’t send its entire contents to the client. We submit a query, the database retrieves the relevant records, and we work with the results.

I’d love to interact with my DEVONthink collection in much the same way, except using natural language rather than SQL.

Essentially, DEVONthink would remain my document repository, while an LLM would become the interface through which I explore and connect the knowledge stored within it. That would be my absolute dream!

3 Likes

It is not close.

  • It requires a vector database.
  • It requires full semantic search.
  • And it would likely be a poor experience or infeasible to do with local AI.

You’ll need to keep dreaming for now :wink:

7 Likes

I see, thanks!

vector database and full semantic search — are these already technically feasible…? or do these exist only as concepts atm?

Vector databases exist since more than 15 years – I was still working when they were all the rage.
Nothing you’d run on your Mac at home, though.

2 Likes

perhaps, a silly question, but why would you not run it on a home Mac?

RAM, CPU. You’d run a vector database on powerful machines in a grid, iirc.
I doubt that anyone offers a vector database for macOS.

2 Likes

@anton I can’t say anything meaningful in response to your question. Instead, I’d like to ask you something.

If I understand correctly, you want an AI to search only your data.

Why would that lead to better results than if the AI searched the entire body of knowledge in the world?

If you’re worried that an AI might “invent” facts, then the obvious solution would be to ask multiple AIs.

Consider that your data might be outdated or “invented” as well. And even if an AI were to analyze only your data, it could still draw the wrong conclusions.

I have a collection of resources that I’ve carefully curated because I know they’re relevant to my needs. The best analogy I can think of is a personal library.

Imagine having hundreds of books that you’ve selected over the years. You know that the information you’re looking for is somewhere in that collection. You don’t need to search the entire internet because you’ve already identified and collected sources you trust.

Of course, I could organize everything with tags, annotations, wiki links, index cards, and so on to make information easier to retrieve. But to me, these are still workarounds.

What I really want is to interact with my existing document library using natural language, taking advantage of the retrieval, reasoning, and data transformation capabilities of modern LLMs.

For example, I’d like to ask, “How do I make a blond roux?” and receive a conversational answer based specifically on my own collection, with references linking back to the relevant documents and passages.

And I’d like to go beyond simple retrieval: compare techniques described in different books, synthesize information across multiple sources, extract structured data, or transform existing content into something more useful.

Essentially, I want my curated library to become an interactive knowledge base, where the AI helps me access and work with the knowledge I’ve already collected, rather than relying on generic answers from the internet.

1 Like

But everyone already knows how to do that… right? :wink:

You are imagining things beyond what is possible now, especially when run locally.

4 Likes

First off: there have been some similar discussions here already. Might be worth reading them, as they align to your intent and are in context (DEVONthink):

• most to your point of interest:
https://discourse.devontechnologies.com/t/pkm-ai-wiki-for-navigating-and-organizing-dt4

• a detour/lateral way of going about it:
https://discourse.devontechnologies.com/t/devonthink-and-mojopad-mcpA

• lot of cursory overlap:
https://discourse.devontechnologies.com/t/what-would-you-do-with-an-mcp-serverAs

To some of the substantial/strategical questions involved:

This is of course one of the challenges. I would treat it architecturally rather than simply technical. I.e., for me, the insight means one has to construct an intermediate step; fortunately DT is well equipped on preparing the grounds for a more efficient way to pass on pre-selected data, even on the semantic level, IMU.
As I said before: “I do think the excellent search automation scripts graciously shared by @pete31 would help in any such analogous system in DT. In a way, I consider/use them as a proto-automated Wiki-system ever since I discovered them here on the forum…” (from here).

There are always different schools of thoughts and personal styles involved in PKM, as it touches upon a whole stack of systematic questions. So each to their own.
For me personally the development (convergence) of classical PKM, LLM, MCP + agentics, and rise of self-referential/iterative concepts and scaffoldings like RAG and Karpathy Wiki, which also belong to this circle, seems unmissable.
Personally it led me to finally embrace Obsidian, as it allows for all this in a very easy, organic and ergonomic way. Using LLM integration (local/servers/hybrid), exposing knowledge bases/gardens via MCP to other tools locally works like a charm, turnkey. E.g. local vectorization is not an issue (see FN)
Even Karpathy-Wiki (something that has been noted as desirable for some people here, in different conversation/threads), connected to your personally curated knowledge heaps, is just setting up a plugin. 2, 3 settings and off you go…
See Karpathy LLM Wiki - Obsidian Plugin

Given the often stated fact, that DT and Obsidian can work in parallel on the same body (files + folders) of accrued information/data, we´re back to the architectural… There are several doors and ports you can build, in different ways and styles, to interlace all this.

Gardeners, architects, and librarians of all ways finally can have their party together, and do not to be treated like species from different planets or worlds any more.

So, all this runs very well on my home Mac (from 2021).

–––

FN: "Yes. LLM Hub for Obsidian generates and stores embeddings locally, building a local vector database used for semantic (vector-based) search over your vault content. It injects the most relevant chunks into LLM conversations via a local RAG pipeline — no external RAG server or cloud API is required 1 3.

In short: embeddings are created on your machine, stored locally, and queried via vector search to retrieve relevant notes for prompt context 2 4.

3 Likes

You might not actually need it. What you chase is often not what you need most.

1 Like

See RAG (Retrieval Augemented Generation) and DevonThink - #2 by cgrunenberg

You can do RAG with DEVONthink on your Mac right now. Background, I’m Agile/Scrum educator I have a ~50GB database of papers, books, etc in DEVONthink. Right now, I’m trying to find how people are talking about uncertainty in the world of work. I asked Claude to use the Miyo MCP to search my DEVONthink database. Claude generated the following summary of my use last week.

The question: Is there research showing that uncertainty is worse than bad news?

What DEVONthink’s own search did (I ran it just now to check)

  • uncertainty alone matched 913 records. That’s too many to read.
  • uncertainty "bad news" matched 47 records, ranked by how often those words appear. The top results were Cialdini’s Influence, leprechauns and User Story Mapping.
  • Two of the best papers on the question were not among the 47:
    • Matta et al., Is Consistently Unfair Better Than Sporadically Fair?
    • Brosschot et al., responses-to-uncertainty
  • Neither paper uses the phrase “bad news”, so a keyword search can’t find them.

What Miyo did

  • I gave Miyo the question in plain words, plus two rewordings: “ambiguity aversion and anxiety about the unknown” and “intolerance of uncertainty stress at work.”
  • Both papers came back, each with the passage that answers the question. Example from Brosschot: “All that is needed is a lack of information (uncertainty)…”

How Miyo finds related content

  • Indexing Miyo runs locally. It splits each document into passages and stores an embedding vector for each one.
  • Search Miyo embeds the question and returns the closest passages. That’s how “uncertainty is worse than bad news” matched “a lack of information” and “justice variability and stress.”
  • Rewordings Miyo searches each rewording separately, then merges the results into one ranking. That finds papers that use different vocabulary.
  • RAG split Miyo handled retrieval. The helper agent handled generation: it pulled verbatim quotes from the retrieved passages, without opening about 50 PDFs.

What DEVONthink added afterwards

  • Miyo reports raw file paths from inside the database, such as Files.noindex/pdf/3d/Is Consistently Unfair Better Than Sporadically Fair- An Investigation….pdf.
  • I looked up that file name through the DEVONthink connector. DEVONthink returned:
    • the exact record name, with its “?”
    • the group it sits in (Papers)
    • the DOI
    • a link that opens the record in DEVONthink

–
In an ideal world DEVONthink would include the equivalent of Miyo’s RAG in the system.

6 Likes

Well, there are a bunch of things in the pipeline… :wink:

7 Likes

+1,000,000 - amazing. If you need beta testers I’m happy to be on ground 0. Visualizing the vector space (if that’s what you’re doing) is dead clever.

As to the content: “ nein sprechen deutsch” - which is also the limit of my German :wink:

this is incredibly valuable, thanks for sharing. I’m researching it now!

Sort of, at least close in spirit.

That was just intended as an example of how vector databases can overcome language barriers.

1 Like

@BLUEFROG Jim, I’ve been thinking about this further, and there’s something I’m struggling to understand, particularly, why exactly what I’m asking is not possible…? where it seems at least some part of the equation are already feasible:

DEVONthink already maintains a full-text index of my documents. If I search for something like “spaghetti carbonara,” it can identify all the documents containing those keywords.

So couldn’t we build a relatively straightforward RAG workflow using the existing search capabilities?

For example, imagine the following process:

  1. I ask an LLM: “How do I make spaghetti carbonara, according to the documents in my DEVONthink collection?”
  2. Through MCP, the LLM searches DEVONthink and retrieves all matching documents.
  3. It extracts the relevant passages surrounding those keyword matches, rather than loading entire PDFs into its context window.
  4. Those passages are passed to the LLM, which synthesizes the information into a coherent answer, with references to the original DEVONthink documents.

I understand that this wouldn’t provide genuine semantic search. For example, it might miss a relevant passage that describes the technique without explicitly mentioning “carbonara.”

But wouldn’t this already allow me to interact conversationally with my document collection, at least for queries where keyword retrieval is sufficient?

In other words, I see semantic search and vector embeddings as improvements to retrieval quality, rather than absolute prerequisites for the workflow itself.

Is there a technical limitation in DEVONthink’s existing MCP implementation that would prevent this…? For example, does MCP expose matching records but not the individual passages or their locations within documents?

I’m genuinely curious because it seems like much of the necessary infrastructure already exists.

I’d appreciate your thoughts!

2 Likes

That’s already possible but your mileage will vary as it highly depends on the prompt and how the LLM interprets it, meaning which search term, keywords and synonyms it’s going to use.

2 Likes

Thank you for sharing this! This is remarkably close to what I was having in mind.

Just to make sure I understand your setup correctly:

You’re using Miyo to index (is that the right term?) the actual documents stored inside DEVONthink’s database package and perform semantic searches at the “passage” level, right?

Then Claude retrieves the relevant passages through Miyo MCP, synthesizes the information, and uses DEVONthink’s own MCP connector to resolve the original documents and generate proper DEVONthink links.

Is that correct?

I’m particularly curious about three things:

  • Does Miyo automatically keep its index updated when you add, delete, or modify documents in DEVONthink…?
  • How reliably can you link retrieved passages back to their original DEVONthink records, ideally to specific pages?
  • Are you running both Miyo MCP and DEVONthink MCP simultaneously in Claude? Could you please share your specific setup?

Thanks!!

1 Like