Search

Trip Database Blog

Liberating the literature

Month

September 2023

Advanced search: volunteers need to test!

We have just pushed out the revamped Advanced Search onto our test site:

We’re testing it in-house but are keen to get some external users to test it. So, if you are interested please contact me via jon.brassey@tripdatabase.com.

Relevancy: Experiments with ChatGPT

As mentioned in the previous post we have been spending a lot of effort trying to improve our search and the current focus (possibly obsession) is removing low relevancy results from the search.

TLDR long documents might mention the search term only once, in say 50,000 words. In that situation it’s almost an incidental result – but it’s still a true hit as it contains the user’s search terms even though it’s irrelevant to the user’s intention. One approach we have tried is to create a pseudo-abstract of guidelines – typically long documents – to see how that fared (by removing terms not linked to the core themes of the guideline). And here’s an example search taken from our testing site:

This image shows a search for diabetes and metformin and it returns 19 UK guidelines and the top results all look good. However, one was Guidelines for the investigation of chronic diarrhoea in adults. This contains the word metformin 1 time and diabetes 8 times in a 21 page document. So, another example of a result that is a poor match! This next image is when we searched just the ChatGPT summary:

3 results, so removing 16 results, including Guidelines for the investigation of chronic diarrhoea in adults. So, that’s good. However, it also removed Diabetes (type 1 and type 2) in children and young people: diagnosis and management, from NICE. In this 91 page document it mentions metformin 28 times. It is entirely feasible that a user, searching for diabetes and metformin, might think the NICE document was relevant!

Bottom line: Using the ChatGPT summary, as we have, means the search is too specific. So, on to the next approach….

Relevancy

Relevancy is a key element of search. A user types a term and the intention it to retrieve a document related to the term(s) used. But relevancy is relative and in the eye of the beholder. If someone searches for measles and the document has measles in the title, then it’s clear it’s relevant. But there might be another document, about infectious diseases, which has a chapter on measles. The document is 10,000 words long and has 50 mentions of measles = 0.5%. So, that seems a reasonable matche.

But what about a 100,000 word document, entitled prostate cancer, which mentions measles once = 0.001%. The document is a true match – as in it mentions the search term – but the reality is it’s clearly not about measles. Another example from a recent presentation I gave:

It’s a contrived example, but helps illustrate the issue!

For most searches this isn’t really a big deal as most of the time the top results will always be relevant. If the search returns 50 pages of results the low relevancy results will appear towards the end of the search – say from page 40. Not many people go to that results page – so it’s not an issue.

However, it is an issue when you have few results – either a very specific search OR if you click on a filter (eg UK guidelines) – then if 75% of the results are relevant and 25% poor – you can see some fairly poor results even on the first page. True hits as they contain the search terms but not really relevant to the user’s intention!

So, we’re exploring multiple options to help for instance An alternative search button? But another approach is to summarise long documents into shorter ones – so removing very low frequency words. We’ve experimented with ChatGPT and that summarised too much, so the search went from too sensitive to too specific. So, another approach is to do text analysis to explore word frequency (how often a word appears in a document) and remove those terms that are rarely mentioned (perhaps remove those terms only mentioned 1-3 times (depending on the document length.

We took one NICE guideline and analysed the frequency of words across the document and it looks like this:

The Y-axis denotes the number of times words appear in the document. With more granularity:

So, we’re going to run some tests where we remove terms mentioned 1 time, 2 times or 3 times (so, three separate tests). These don’t remove many terms but will hopefully remove the terms that cause problematic sensitivity. In the search example above, removing terms that appear once, would remove the term measles, while removing terms that are mentioned twice will remove prostate cancer.

This issue has been frustrating me for years so hopefully we’re edging closer to solving it!

What is the difference between Trip and PubMed? What ChatGPT thinks

After a user asked the Q about the differences I gave my answer – in a nutshell it’s quality over quantity. But then I thought, why not ask ChatGPT? The answer is below and it’s pretty good (but not perfect), a few observations:

Anyway, the answer it provided is below:

The Trip Database and PubMed are both search engines for retrieving biomedical and clinical literature, but they have some key differences in terms of scope, focus, user interface, and types of content they index. Here are some of the differences:

Scope and Focus:

  • PubMed: Primarily focused on research articles in the biomedical field, PubMed is a free search engine that primarily indexes MEDLINE, a large database of biomedical and life sciences journal articles.
  • Trip Database: Trip (Turning Research Into Practice) is geared towards evidence-based medicine and clinical guidelines. It aims to provide clinicians, researchers, and others with high-quality clinical evidence for decision-making.

Types of Content:

  • PubMed: Contains more than 30 million citations for biomedical literature, including research articles, reviews, case reports, clinical trials, and more.
  • Trip Database: Contains a more limited set of documents but includes different types of high-quality evidence such as systematic reviews, clinical guidelines, and other “pre-appraised” evidence. It also provides links to primary research articles.

User Interface:

  • PubMed: Offers more advanced search features like MeSH (Medical Subject Headings) terms, filters for article types, and more. It’s more suited for academic research.
  • Trip Database: Designed with a simpler, more user-friendly interface aimed at clinicians who need quick answers to clinical questions.

Access to Full Text:

  • PubMed: Provides citations and abstracts, and sometimes links to full-text articles, but many articles are behind paywalls.
  • Trip Database: Attempts to link directly to free full-text articles when available and offers a PICO search function to answer clinical questions.

Grading of Evidence:

  • PubMed: Does not grade the quality or level of evidence.
  • Trip Database: Often grades the quality of evidence and links to the highest level of evidence available (e.g., systematic reviews and guidelines).

Target Audience:

  • PubMed: Aimed at researchers, clinicians, and academics.
  • Trip Database: More targeted towards practicing clinicians who need to make quick and evidence-based clinical decisions.

Both platforms have their own unique strengths and weaknesses, and the choice between the two may depend on your specific needs.

Advanced search overhaul

Our current advanced search has been static for years and since then other advanced search systems have evolved and people have become comfortable with these newer approaches. Bottom line: our existing advanced search is a bit clunky! So we have prioritised work on this and here is the first look:

As mentioned early days, but you can see the direction we’re taking. I’d like to think we can have the proper version released in the next 2 months.

Blog at WordPress.com.

Up ↑