A Palantir patent application claims a method for building a large language model's prompt from the document passages that best match a user's question.

The application, US20260330055A1, is titled "Data Permissioned Language Model Document Search," according to the USPTO record. It was filed January 29, 2026, and published October 22, 2026.

It is an application, not a granted patent. The USPTO lists its status as Docketed New Case - Ready for Examination. Claims in an application can be narrowed or rewritten during examination, before any patent is granted.

The inventors are Anirvan Mukherjee, Craig De Souza, Edgar Gomes de Araujo, Johannes Beil, Jessica Winssinger, Michael Zullo, Rushad Heerjee and Shubhankar Sachdev.

The description starts from a practical limit. "Because a LLM may only handle prompts within a limited size, certain embodiments described herein generate a prompt for the LLM based on portions of the large set of documents similar to the user query rather than including the large set of documents in its entirety into the prompt," it says.

The description sets a second goal: respecting the security and permissions of users, systems and data. It says the system can avoid providing impermissible documents to LLMs. It also says the system can ensure responses draw on permitted information sources that users are authorized to access.

In plain terms, the first independent claim is a method with these steps:

  • A user enters a natural-language question through an interface.
  • The system turns the question into a vector.
  • It decides a number, n, based on one or more criteria.
  • It runs a similarity search over vectors representing portions of a document set and finds at least the n closest portions.
  • It builds an LLM prompt containing at least the question and those n portions, then receives the model's output.

In our reading, the distinctive step is choosing n. Dependent claim 2 says the criteria can include a size limit on the prompt or the size of the matching portions.

Other dependent claims add:

  • a cosine similarity search (claim 14);
  • passages adjacent to the matches (claim 5);
  • a similarity threshold the user can adjust (claim 8);
  • context such as conversation history (claims 11 and 12);
  • a preview of the matched passages (claim 16);
  • storing the matched portions, and identifiers of the corresponding vectors, in a database based on an ontology (claims 3 and 4).

The application also includes a system claim and a computer program product claim. The permissioning named in the title appears in the description, not in the text of claim 1. The claims name no Palantir product.

In our view, the method fits assistants that answer questions from an organization's own documents, where who may see what matters as much as the answer. For builders and buyers of such tools, we think the thing to watch is how claim 1 reads after examination, including whether the step of choosing n survives as written.