Skip to content

Commit e53e323

Browse files
committed
2 parents d4426c0 + fe02e58 commit e53e323

15 files changed

+632
-2148
lines changed
127 KB
Loading
223 KB
Loading
39.9 KB
Binary file not shown.

assets/images/send_to_harmony.png

115 KB
Loading

content/en/_index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ blocks:
103103
- block: feature-2
104104
padding: top
105105
heading: "Use Harmony in R"
106-
subheading: R users can now import Harmony as an R package for data harmonisation.
106+
subheading: R users can now import Harmony as an R package for data harmonisation. By default, Harmony R connects to the Harmony API but you can also point it to Harmony API running on Docker and then you can run Harmony R on a computer without internet (see below).
107107
links:
108108
- text: R package on Github
109109
url: https://github.com/harmonydata/harmony_r
@@ -137,7 +137,7 @@ blocks:
137137
# padding: top
138138
align: right
139139
heading: "Harmony Docker container/API"
140-
subheading: We've released Harmony as a Docker container on [Dockerhub](https://hub.docker.com/), running a REST API using FastAPI.
140+
subheading: We've released Harmony as a Docker container on [Dockerhub](https://hub.docker.com/), running a REST API using FastAPI. Check [Dockerhub](https://hub.docker.com/r/harmonydata/harmonyapi/tags) for the latest tag. You can run these commands in Windows Command Prompt or Terminal on Mac/Linux.
141141
links:
142142
- text: Dockerhub
143143
url: https://hub.docker.com/r/harmonydata/harmonyapi
@@ -147,8 +147,7 @@ blocks:
147147
url: https://raw.githubusercontent.com/harmonydata/harmonyapi/main/docs/API_reference.pdf
148148
code: |
149149
```vshell
150-
docker pull harmonydata/harmonyapi
151-
docker run -p 8000:8000 -p 3000:3000 harmonydata/harmonyapi
150+
docker run -p 8000:80 harmonydata/harmonyapi:20250311105945_1df2e89
152151
```
153152
154153
- block: logos

content/en/blog/chrome-plugin.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "'Send to Harmony' Chrome plugin"
3+
description: "'Send to Harmony' Chrome plugin"
4+
date: 2025-03-14
5+
categories: ["development"]
6+
image: /images/send_to_harmony.png
7+
8+
url: "/chrome/"
9+
---
10+
11+
[Beta mode: we are currently testing this extension]
12+
13+
We have developed a browser extension for Harmony called "Send to Harmony" which lets you send selected text to Harmony with a right-click. For PDFs, use the popup to paste your selected text.
14+
15+
{{< youtube l4aR2jNGKUA >}}
16+
17+
18+
19+
Send to Harmony enables users to send selected text to the Harmony Data Harmonization (https://harmonydata.ac.uk/) platform for analysis. This plugin provides a right-click or context menu item which allows users to easily bring text from into their harmonisations, making it easier to compare and analyze different measurement scales across research studies.
20+
21+
Simply select the text you want to send to Harmony, right click and select "Send to Harmony" - Your items will open in a new tab.
22+
23+
24+
{{< grid columns="2" >}}
25+
{{< card heading="Try the browser extension" copy="Click here to add the Chrome browser extension to Harmony." url="https://chromewebstore.google.com/detail/send-to-harmony/cdicmbkodhojpdagoipkdgmnkempjdjj" >}}
26+
{{< card heading="Join our Discord" copy="Join the Harmony Discord server. Check out the 🏅「design-challenge」 channel!" url="https://discord.com/invite/harmonydata" >}}
27+
{{< /grid >}}
28+
29+
30+

content/en/blog/design-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Help Design Harmony - UX Design Challenge"
33
categories:
4-
- "development"
4+
- "challenges"
55
image: "/images/Design_Challenge_New_Date.png"
66
date: 2025-01-13
77
url: "/design-challenge/"

content/en/blog/doxa-parsing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Improve Harmony's PDF parsing on DOXA AI"
33
categories:
4-
- "ai-in-research"
4+
- "challenges"
55
image: "/images/parsing-banner.png"
66
date: 2024-12-20
77
url: "/doxa-parsing/"
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: "Harmony updates in March 2025"
3+
description: Harmony updates in March 2025
4+
date: 2025-03-11
5+
categories: ["development"]
6+
image: "/images/harmony-change-model.png"
7+
8+
url: "/open-source-for-social-science/harmony-updates-r-and-fine-tuned-llm/"
9+
---
10+
11+
We have a number of exciting updates to Harmony including:
12+
13+
* some improvements to the R library which have been asked for by researchers around the world who have been using Harmony on studies in lots of different topics as well as
14+
* making our own fine tuned large language model available in the web UI, which is José's winning model from the [DOXA challenge which ended on 10 January 2025](/matching-challenge-winner-announcement/).
15+
16+
## Harmony has its own Large Language Model!
17+
18+
Over a period of a few months ending in January 2025 we made a dataset public and available for people all over the world to download and fine tune their own sentence transformer model. We ran this as a challenge on [DOXA AI](https://doxaai.com/competition/harmony-matching).
19+
20+
The motivation for this challenge was that users were reporting that Harmony often lacked psychology specific domain knowledge and tends to group items together if they appear superficially similar, e.g. items to do with the topic of "sleep", and a mental health specific model with needed which would better differentiate topics within the mental health domain. We found that Harmony and other open weights and proprietary LLMs had [varying performances on different datasets](/nlp-semantic-text-matching/measuring-the-performance-of-nlp-algorithms/) and we thought it would be nice to try making our own LLM - or rather, asking our community to do it!
21+
22+
We received a fantastic number of submissions to the matching challenge, including a flurry of changes to our model leaderboard in the last few hours before the competition closed the [winner was announced](/matching-challenge-winner-announcement/) as José Inés Martínez Berard and the second place was awarded to Rafi Ahmed Riyaz Ahmed Patel. Both received prizes. We also appreciate the many runners up who submitted models to the challenge.
23+
24+
## Using the model on the web tool
25+
26+
You can now try José's winning model on Harmony on the web. Just select `harmonydata/mental_health_harmonisation_1` from the model dropdown.
27+
28+
{{< youtube mD5ZyDV8RDU >}}
29+
30+
31+
## Using José's model from your code
32+
33+
If you are coding in Python, you can run this command to set an environment variable before you import Harmony
34+
```
35+
export HARMONY_SENTENCE_TRANSFORMER_PATH=harmonydata/mental_health_harmonisation_1
36+
```
37+
38+
then you can use Harmony as usual in the Python terminal
39+
40+
```
41+
import harmony
42+
instruments = [harmony.example_instruments["CES_D English"],
43+
harmony.example_instruments["GAD-7 Portuguese"]]
44+
match_response = harmony.match_instruments(instruments)
45+
similarity = match_response.similarity_with_polarity
46+
for cluster in match_response.clusters:
47+
print (f"Cluster #{cluster.cluster_id}: {cluster.text_description}")
48+
for question in cluster.items:
49+
print ("\t", question.question_text)
50+
```
51+
52+
53+
The model is also available on HuggingFace Hub under the model ID [harmonydata/mental_health_harmonisation_1](https://huggingface.co/harmonydata/mental_health_harmonisation_1). The model converts English texts to 768 dimensions and has been trained by José to better differentiate mental health specific items.
54+
55+
56+
57+
## Updates to the R library
58+
59+
Here are the updates to the R library from Omar Hassoun. The R library is on CRAN at: https://cran.r-project.org/web/packages/harmonydata/index.html
60+
61+
Check out the example R notebook in Google Colab: https://colab.research.google.com/github/harmonydata/experiments/blob/main/Harmony_R_example.ipynb
62+
63+
The new library:
64+
65+
1. lets you see clusters found by Harmony
66+
2. shows instrument to instrument similarities
67+
3. has an easier way to create an instrument from a list or something similar
68+
4. outputs crosswalk tables
69+
5. allows users to turn the negation on/off
70+
6. allows users to turn within-instrument matches on/off
71+
72+
We would be grateful if you could give it a try and let us know if anything's unclear
73+
74+
There are a few other issues that we are working on, such as allowing users to harmonise response options and choose their own topics. We also welcome your contributions in these areas - check out the repo and issue board for the [Harmony R library](https://github.com/harmonydata/harmony_r)!
75+
76+
## Would you like to improve Harmony?
77+
78+
If you missed the DOXA competition, don't worry... there's another one! We're running a competition with £1000 in vouchers as first prize, where the challenge is to improve Harmony's questionnaire parsing. [Find out more here](/doxa-parsing/).
79+
80+
## Find us at AI UK
81+
82+
If you'd like to meet us in person, Harmony is an official sponsor of AI UK 2025, run by the Alan Turing Institute, and we will have a [stand at the event](https://harmonydata.ac.uk/ai-uk/) from 17 to 18 March at the QEII Conference Centre in London.

content/en/blog/matching-challenge-winner-announcement.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Well done 👏👏👏 your prize will be emailed to you soon
3636
**A big thank you to everyone else that took part in the competition, if you weren't successful this time round, fear not, as our [next competition is already open](https://doxaai.com/competition/harmony-parsing) and the prizes are even BIGGER!**
3737

3838

39+
{{< youtube 1cfvvDLYcDI >}}
40+
41+
**Above: watch a video interview with José and Rafi, winners of the challenge.**
42+
43+
3944
{{< grid columns="2" >}}
4045
{{< card heading="Join our next challenge" copy="Harmony: PDF Parsing Challenge. Develop an improved algorithm for identifying mental health survey questions." url="https://doxaai.com/competition/harmony-parsing" >}}
4146
{{< card heading="Join our Discord" copy="Join the Harmony Discord server. Check out the 🏅「parsing-challenge」 channel!" url="https://discord.com/invite/harmonydata" >}}
@@ -44,6 +49,8 @@ Well done 👏👏👏 your prize will be emailed to you soon
4449

4550

4651

52+
53+
4754
## See other events
4855

4956
* 23 January 2025: [Harmony at AI for Good at Newspeak House](/psychology-ai-tool/newspeak-house/)

0 commit comments

Comments
 (0)