Skip to content

Releases: brunoamaral/gregory-ai

The Ichabod Crane edition

11 Oct 15:47
158f402
Compare
Choose a tag to compare

Gregory lost its head, just in time for Halloween, the website code was shot dead.

With the AI engine now standalone, this can be the setting stone for many opportunities ahead.
On fresh install you get an AI and an API, letting you build the frontend you wish. But there's more than this.

We already had the concept of sources from where we fetch the papers. Think of PubMed, the same source can bring us several journals from several publishers. Gregory now saves this information as strings in the database. (We may extend this in the future)

But there's more.

Gregory is an open book, but not all papers are open access. We are now using Unpaywall to tag which articles are free access and which are restricted.

You can get a list of open access papers through the api: https://api.gregory-ms.com/articles/open/
Or you can get it from an rss feed: https://api.gregory-ms.com/feed/articles/open/

The rss feeds were also missing the item pubDate field, we fixed that.

A lot of the information comes from crossref.org, we made that code a lot cleaner and less disperse.

If you need the full details, here they are.

What's Changed

Full Changelog: v11...v12

Still there? Here's the important bit. With the website detached from the AI we are opening the door to get much more done with Gregory and getting more flexibility in areas or fields where we can apply this method. Some thoughts include getting the takeaways from articles, finding biomedical entities in the abstracts, asking Gregory to answer specific questions within a subject.

Imagine asking, "what are the current disease modifying therapies available for MS?", and getting back a list of them all, sorted by category and date. It's a long shot, but we'll keep working on this ... 🙂

Thank you, and have a great Halloween!

The Flavio Amiel Edition

02 Aug 15:35
d417f0e
Compare
Choose a tag to compare

Take a seat, grab your favorite brew, there's a lot in this release for you.

1. SEO and Content

This release is a thank you to Flavio Amiel, he took some time to look at the website and offer some suggestions to improve the SEO and content.

This release implements some of those suggestions in content and in the url of articles listed. Previous URL was domain.com/articles/<article_id>, the new URL is domain.com/articles/<article_id>/<slug>, and the slug is taken from the noun_phrases found for each article title, to keep it a bit more relevant for search engines.

Content was also reviewed to include search keywords when possible.

Flavio was important not just because he took the time to look at our project but also because he took. a fresh look at a part of it that was ... overlooked.

If you're facing the same issues, you can reach him on twitter or schedule a call.

2. Setting up Gregory

We like to automate the boring stuff and making things easier for everyone.

If you're installing Gregory for the first time, run setup.py and it will take care of 80% of the work in setting up the database and the containers. This little sentence took quite some time but it's worth it to help people get their research up and running faster.

3. Filter feeds and API endpoints

Gregory has the concept of 'subject'. In this case, Multiple Sclerosis is the only subject configured. A Subject is a group of Sources and their respective articles. There are also categories that can be created. A category is a group of articles whose title matches at least one keyword in list for that category. Categories can include articles across subjects.

The one thing it didn't have was a way to filter by subject and category. So we added those options to the API and RSS Feeds in the format articles/category/ and articles/subject/ where and is the lowercase name with spaces replaced by dashes.

RSS Feeds

API endpoints

4. Science paper, news, trials

What's in the news? Before this release Gregory could only understand science papers and clinical trials. We now have the option to include news articles without getting them mixed up with the other articles. You'll have to edit your current sources to make sure they have 'science paper' as the value of source for.

We're doing this to help follow the full process of scientific discovery, from publishing hypothesis, running clinical trials, and making it known to the people outside the scientific community.

5. Ignore SSL, if you must

In the past we had some issues reading RSS feeds whose web server didn't have the SSL certificate configured properly, and we were using a workaround that wasn't ideal because it turned off SSL verification for every request. This was fixed now, and each Source can be configured independently to bypass the certificate check if you really must.

What's Changed

Full Changelog: v10.7...v11

The Rock edition

24 Jul 12:23
3c18610
Compare
Choose a tag to compare

Content is alive and should evolve, live, and thrive.

Because I don't want anything too set in stone, you can edit the email title and footer in the new custom settings.

Careful on the upgrade ! Pull your changes and run to migrate:

sudo docker exec -it admin /bin/sh
./manage.py makemigrations && ./manage.py migrate

Visit the backoffice and edit the new settings.

This release also includes an example configuration for nginx.

Careful with your flows ! We are also moving away from running a custom version of the @node-red container.

Run sudo docker-compose pull && sudo docker-compose up -d to make the change. You may need to install node-red packages you had installed previously.

What's Changed

Full Changelog: v10.6.11...v10.7

The "Mise en place" edition

11 Jul 15:59
5d22414
Compare
Choose a tag to compare

You got it, this is for the setup.py script to get you up to speed without missing a beat.
Not going to be verbose because the changelog should be right on the nose.

Send me a note to [email protected] or comment with any questions.

What's Changed

Full Changelog: v10.6...v10.6.5

v10.6

26 Jun 21:56
86855e9
Compare
Choose a tag to compare

Just some polishes and fixes to issues and other near misses.

What's Changed

Full Changelog: v10.5.4...v10.6

The happy birthday edition

19 Jun 20:03
2c631bc
Compare
Choose a tag to compare

Not much happening, but I got some wind under my wing, took a deep breath and looked at what was left.

@dippas took some weight off my shoulders by fixing a few bugs on the frontend. Meanwhile, today I looked at all the information Gregory likes to send. The emails and the rss feeds are now listed in the readme file.

Also took a look at the install instructions, because I don't like to be vile, added more info, clarified.

And while we are at it, there were some amazing donations, from at least three nations. We have enough budget to keep the site running for the next 12 months.

I don't like stunts, so I'm adding that information to the next annual review. Transparency is a goal that I'm more than happy to pursue.

That's it, thank you for reading up to this bit.

What's Changed

New Contributors

Full Changelog: v10...v10.5.4

The Frankenstein edition

27 May 13:28
9d9dd27
Compare
Choose a tag to compare

Gregory is made of several bits and we're trying to make sure everything fits.

So we moved the website files into their own directory, hugo and updated the build script to match. Some directories were renamed to be more descriptive, and others deleted.

Things will break and you should be careful not to lose your database. Otherwise, this makes way for a system that is easier to understand and evolve.

Also, it seems that this release includes a bug, the mobile menu isn't working and I will look into it sometime next week. #137

What's Changed

Full Changelog: v9.4...v10

The Rosie Jetson edition

27 Apr 21:42
67be97a
Compare
Choose a tag to compare

This is mostly some house cleaning

What's Changed

  • fix listing of articles for physical therapists by @brunoamaral in #112
  • categories now use "terms" as a way to tag articles @brunoamaral in #116
  • fixes excessive listing of articles in the weekly digest by @brunoamaral in #118
  • creates a new RSS feed to post articles and clinical trials on twitter by @brunoamaral in #119

Full Changelog: v9...v9.1

Breaking the flow

15 Apr 17:30
69ef14f
Compare
Choose a tag to compare

I know, I know, we got to keep the flow.

What you don't want to miss for this release is the new subscription lists for alerts and the django-cron implementation to keep the database up to date and complete.

Subscriptions

You can now create a list to notify people of new clinical trials, send admin digests. The following notifications are included using django-cron:

  • subscriptions.admin_summary
  • subscriptions.weekly_summary
  • subscriptions.trials_notification

Db maintenance

Previously, we had node-red flows to update authors and make sure articles were properly categorized. That is now done with django-cron as well using the following tasks:

  • db_maintenance.get_authors
  • db_maintenance.rebuild_categories

Same goes for the prediction of relevant articles and calculation of noun phrases:

  • gregory.noun_phrases
  • gregory.predict

Node-red was also fetching some rss feeds using a python script that read from the database. You guessed it, it's now a django-cron task:

  • gregory.feedreadertask

Building the system

The latest developments have slowly made the system easier to install with docker containers, right now you should be up and running by setting up the correct .env variables, and running docker-compose up -d.

What's broken

Training the Machine Learning models inside the container is not working, seems to run out of memory. The workaround is to build locally and place the files in the ml_models directory.

What's Changed

Full Changelog: v8.5...v9

Who wrote this?

07 Apr 23:43
cec633d
Compare
Choose a tag to compare

Just a quick improvement, Gregory now comes with a script that fetches author information and adds it to the database.

What's Changed

Full Changelog: v8.2...v8.5