Skip to content
Citations Citations
Blog About Request Access

How Libraries Can Measure Reader Demand Without Storing AI Queries

Francois-Xavier Bioul
Francois-Xavier Bioul · CCO at Citations LLC
12 min read

A question typed into a library’s AI assistant can disclose an illness, a religious belief, financial hardship or a political opinion. When the question relates to an identifiable patron, information about health, religious beliefs or political opinions can fall within the special categories of personal data under Article 9 of the GDPR.

Acquisitions staff need something else from those questions. They need to know whether a need recurs, across enough patrons, and whether the collection serves it poorly. For that decision, the exact wording of each question rarely has to reach the report sent to acquisitions.

In short

A library can use AI assistant queries to guide purchasing without keeping the queries. The design has four levels. The query answers the patron and is not stored by default. Each query is reduced to the few fields a purchasing decision needs. A category becomes an acquisition signal only when it matches a gap the library can observe. A privacy threshold, set apart from any purchase threshold, keeps rare categories out of the report.

Removing names and query text does not by itself make a report anonymous. The privacy threshold must state what it counts, queries or distinct patrons, and it must hold when two successive reports are compared. A library can check all of this with synthetic data before connecting an assistant to its catalog.

Why patron queries to an AI assistant are sensitive data

Reference questions have always carried personal information. An AI assistant changes the volume and the format: each question arrives as text, often in the patron’s own words, and a system can log it automatically.

Under the GDPR, data revealing health, religious or philosophical beliefs or political opinions belong to the special categories of Article 9, and processing them is prohibited unless one of the listed exceptions applies. A question about financial hardship is not an Article 9 category, but it remains personal data when linked to a patron. Article 5 adds two principles that bear directly on query logs: data must be limited to what the purpose requires (data minimisation) and kept in identifiable form no longer than that purpose requires (storage limitation).

US libraries reach a similar position through professional standards and state confidentiality laws. The American Library Association’s privacy guidelines for library websites, catalogs and discovery services, revised in 2020, say that a saved search history should be a feature the patron opts into, and should not be switched on by default.

How San José Public Library separates patrons from circulation statistics

San José Public Library has published a privacy audit of its Access Services department. Its circulation statistics, compiled monthly, are used among other purposes for purchasing decisions and for identifying trends. No customer information is gathered when those statistics are collected.

The library does not keep a general borrowing history: once materials are returned, they are removed from the patron’s account. The audit lists operational exceptions, each tied to a stated purpose: records of overdue items and fines, records of lost or damaged materials kept for financial purposes, and the last borrower stored on an item record until the item is checked out again.

The audit covers loans in the library’s Sierra system, not queries to an AI assistant, and its internal references date from 2017–2018. It still shows a working service that governs the data used to serve one patron separately from the statistics used to guide the collection. The four levels below apply that separation to AI queries.

Level 1: The query answers the patron and is not kept by default

A query exists to answer the patron at the moment it is asked. The service may need to process it, send it to the catalog and return a result. None of that requires the full text to become analytics data or a history attached to the patron’s account.

If the exact text is no longer useful once the answer has been delivered, keeping it needs a specific purpose, a fixed retention period and written documentation. Service quality and troubleshooting can be legitimate purposes, and each one needs its own retention period and its own list of people with access. A single “analytics” purpose is too broad to justify different retention periods.

Personalization and acquisitions reporting are separate functions, even when the same interface performs both. Where patrons want a history, the ALA guidelines point to the model: a feature the patron chooses to turn on.

Level 2: Each query is reduced to a purchasing category

A system can keep only the fields that serve a purchasing decision: subject, language, format, whether the title is in the catalog, and the type of need, such as a known title or a topic. A question then becomes “local history, Spanish, audiobook, title not held.” The patron’s wording disappears, and the report should no longer allow anyone to reconstruct the original question.

The reduction itself needs governance. The European Data Protection Board’s draft Guidelines 02/2026 on anonymisation, adopted for public consultation on July 7, 2026, treat anonymisation as a processing activity in its own right. Until the output is effectively anonymous, the raw queries and intermediate records remain personal data. A library should therefore document which component performs the classification, which temporary identifiers it sees, when those identifiers are deleted and which fields reach the report.

Removing the name is not enough. The EDPB draft assesses anonymity against three criteria: no record isolation, no linkage and no inference. In a small town or a specialized community, a precise combination of subject, language and format that appears once can fail the first criterion on its own. Generalizing the subject, widening the reporting period or removing the row protects the patron better than publishing a precise category with a count of one.

Level 3: A category becomes an acquisition signal when it meets a gap

A single request does not justify a purchase.

A purchasing category becomes usable when it coincides with a gap the library can observe: repeated searches with no result, a title missing from the catalog, a holds queue, a long wait, or recurring requests in one language. Each indicator answers a different question and should keep its own definition.

Searches with no result need particular care. A failed search can reveal a collection gap, and it can also reflect a spelling error, weak metadata or poor ranking. Acquisitions should not count every failure as unmet demand until the service can tell those causes apart.

Acquisitions then receives an indicator of need. It does not receive a patron profile.

Level 4: A privacy threshold, set apart from the purchase threshold

A privacy threshold decides whether a category may appear in the report. An acquisition threshold decides when demand deserves a purchase decision. A category can be frequent enough to show and still too weak to justify a purchase. Another can matter to the collection and still be too rare to show at a precise level.

One workable rule is to show a category only above a minimum count fixed in advance. Below that count, the category is merged into a broader one or removed from the report.

The rule must state what it counts. Thirteen queries can come from thirteen patrons, from one patron trying thirteen phrasings, or from an automated retry. A query count measures activity, and a distinct-patron count measures breadth. Counting distinct patrons requires matching queries from the same person during processing. Under Recital 26 of the GDPR, pseudonymised data that can be attributed to a person with additional information are still personal data, so the matching belongs inside the controlled processing step, its identifiers need a short and documented lifetime, and only the resulting count should reach the report.

No single number suits every library, and neither the GDPR nor the EDPB draft sets one for library reports. The right threshold depends on the size of the population served, the sensitivity of the subject, the precision of the categories, the people who receive the report and the other data it could be combined with.

How two successive reports can break a privacy threshold

A privacy threshold must also hold when two reports are compared. If a cumulative report shows 12 requests in a category at the end of October and 13 at the end of November, the comparison reveals that exactly one event was added. In a small community, that single event can become identifiable when someone combines it with what they know about a visit, a local event or a conversation, even though each report meets the stated threshold.

Statistical agencies call this disclosure by differencing. The US Federal Committee on Statistical Methodology addresses it for published tables through complementary suppression: when a sensitive cell is hidden, other cells are hidden as well, so that the hidden value cannot be recovered by subtraction from the totals. The same risk arises within a single report when overlapping views, by branch, format, language or period, can be combined to rebuild a category that should stay hidden.

For a library report, several design choices reduce the risk. The report can cover fixed, non-overlapping periods instead of running totals, with each period meeting the threshold on its own. The same merge rule can apply in every period, so that a category does not appear in one export and vanish from the next. A total should not be published next to a breakdown that hides a single small category, and fine-grained drill-downs can be limited. Some national statistics offices also add controlled noise to counts: the Office for National Statistics applied cell key perturbation to Census 2021 outputs.

What a library demand report should specify

The table lists the elements a library can require in writing before approving a demand report, with the question each element must answer.

Report element

Question the specification must answer

Purpose

Which collection decision does the report support?

Fields

Which subject, language, format, catalog-status and title-level fields are necessary?

Counting unit

Are the values queries, sessions, distinct patrons, or more than one of these?

Period

Is the report monthly, rolling or cumulative, and can periods be compared?

Low-count rule

When is a row removed, merged, rounded or generalized, and does the rule change with the sensitivity of the subject?

Deduplication

How are distinct patrons counted without exposing them or keeping a lasting record of their activity?

Access

Who may receive the report, export it or drill into a category?

Retention

How long are raw queries, intermediate classifications and released reports kept?

Validation

How will the library test two successive exports for isolation, linkage and inference?

The objection: a threshold hides the rare needs a library wants to serve

Suppressing small categories means that rare needs disappear from the report. A single patron looking for a language the collection does not cover will not show up in it.

That loss is the cost of the protection, and the library has other channels for an individual need: a purchase suggestion the patron submits knowingly, or a conversation at the desk. The aggregated report detects patterns, and individual needs reach acquisitions through channels where the patron chooses to speak.

Broader categories and longer periods also recover part of the signal. “Spanish-language audiobooks” over a quarter may pass a threshold that “Spanish local history audiobooks” in a single month does not.

Questions and a two-export test before connecting an AI assistant to the catalog

Before connecting an assistant to its catalog, a library can put three questions to the provider.

  1. Which data derived from patron queries are actually retained: raw text, responses, identifiers, intermediate classifications, logs and exports, each listed separately?

  2. For how long, and for what purpose?

  3. Which privacy threshold applies, what does it count, and does it hold when two reports are compared?

The answers should be checked on a test report built from synthetic queries and test accounts. Staff should not submit real sensitive questions for the exercise, and the expected result should be agreed before any report is generated, as with the tests a library runs on each circulation event an AI connector creates.

  1. Seed low-count categories. Send one, two and several synthetic queries into categories of different sensitivity and precision, and check that each is removed, merged or generalized as specified.

  2. Repeat queries from one account. Submit several phrasings from the same test patron and check that a distinct-patron count, if offered, stays at one while the query count rises.

  3. Cross the threshold. Add enough distinct test patrons to make a category eligible, and check that the report shows only the authorized fields and none of the identifiers used for deduplication.

  4. Run a second export. Add one event, change one category and compare the two exports to see whether the difference reveals a suppressed event or a single patron.

  5. Combine overlapping views. Request the same data by branch, format, language and period, and check whether the allowed views together rebuild a hidden category.

  6. Check deletion. Confirm when raw text, temporary identifiers and intermediate categories are removed, and keep evidence that the configured rule actually ran.

These checks cover the demand report only. Logging, model training, subprocessors, deletion and audit rights belong to the wider vendor review mapped in ALA’s ten questions on logging, retention and deletion.

How this applies to Citations

Disclosure of interest: Citations provides infrastructure connecting libraries, publishers and AI assistants, and has a commercial interest in how library usage is reported. In its pilot, the library receives a monthly report, title by title, of what its readers discovered and read through AI, including titles the library does not yet own. The report is designed to carry no reader identity and never the text of a query. The sample report on the Citations Libraries page uses a simulated library.

A title-level count is itself a very precise category. The three questions and the two-export test in this article apply to that report as they apply to any other, and libraries in the Charleston Circle pilot, which is open and free, can put them to Citations directly.

Request a pilot place or a demo

Questions libraries ask about patron query data

Is a patron query anonymous once the name is removed?

Not necessarily. A query can identify a person through its content, such as a rare condition, a local event or a named relative, even with no name attached. Under the EDPB’s draft guidelines, data are anonymous only if no record can be isolated, linked or used to infer information about a person, taking into account what a recipient can reasonably combine with them.

Should a privacy threshold count queries or distinct patrons?

The two measure different things: queries show activity, distinct patrons show breadth. A report can contain both if each is defined and protected, but repeated queries from one person should never be presented as demand from several patrons, and a threshold of ten queries does not protect ten people.

Can a library keep raw queries to improve the assistant?

It can if the purpose is documented, access is limited, a retention period is set and the purpose genuinely requires the full text. Where queries may reveal health, beliefs or political opinions, the legal basis should be reviewed with the library’s data protection officer before any retention begins.

Further reading

The operations a library should test before patrons rely on an AI connector, from catalog search to a hold, are set out in AI library connectors: what to test between discovery and a hold.

The questions on logging, training use, retention and audit rights that libraries now put to AI vendors are mapped in ALA’s AI vendor checklist.

Who checks a reported number before it drives a payment is the publisher-side version of the same problem, covered in usage reporting in AI licensing deals.

Sources

San José Public Library — “Access Services Privacy Audit,” undated (internal references to 2017–2018), consulted November 16, 2026
Access Services Privacy Audit

American Library Association — “Library Privacy Guidelines for Library Websites, OPACs, and Discovery Services,” approved June 24, 2016, revised January 26, 2020
Library Privacy Guidelines for Library Websites, OPACs, and Discovery Services

European Union — Regulation (EU) 2016/679 (General Data Protection Regulation), Articles 5 and 9 and Recital 26, April 27, 2016
Regulation (EU) 2016/679

European Data Protection Board — “Guidelines 02/2026 on Anonymisation,” version 1.0, adopted for public consultation July 7, 2026, consultation closed October 30, 2026
Guidelines 02/2026 on Anonymisation

Federal Committee on Statistical Methodology — “Statistical Policy Working Paper 22: Report on Statistical Disclosure Limitation Methodology,” revised 2005 (archived)
Statistical Policy Working Paper 22

UK Statistics Authority — “Statistical Disclosure Control update and Differential Privacy suitability assessment” (EAP215), December 2024
Statistical Disclosure Control and Differential Privacy (EAP215)

Citations — “For libraries,” pilot reporting statements checked November 16, 2026
Citations for libraries

This article is operational analysis for library and publishing teams, not legal advice.