Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dropdown on FE to allow user to switch LLM #14

Open
woodthom2 opened this issue Mar 24, 2024 · 2 comments
Open

Add dropdown on FE to allow user to switch LLM #14

woodthom2 opened this issue Mar 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@woodthom2
Copy link
Contributor

Description

Related to API fix: harmonydata/harmonyapi#4

if you look at the API call
https://api.harmonydata.ac.uk/docs#/Text/match_text_match_post
there is already a parameter in the API to say which model we use

image

but we don't use it
I would like the Harmony API repo to allow you to send "openai" and "gpt-4" or whatever so that it uses one of those
once the API had this implemented we can add it to the front end as a dropdown like in this mockup
image

so the dropdown should defualt to the huggingface model which harmony is already using
but if they change it, then we use the third party LLMs
I don't think we have enough users that it would be expensive but if that changes, we can start to ask users to paste their OpenAI API key

Rationale

the problem is, psychologists are using the tool but are sometimes unhappy with the matching. e.g. sometimes it thinks words are similar when they are not
this is because the LLM I am running is an open source one from HuggingFace and Google and OpenAI's LLMs are better but they are 3rd party and need to be called via an API

@ronnyTodgers
Copy link
Collaborator

ronnyTodgers commented Mar 24, 2024 via email

@ronnyTodgers
Copy link
Collaborator

We will need a "models available" field to be added to the status endpoint to achieve this - if it contains more than one model then the drop down is shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants