Commit Graph

1841 Commits

Author SHA1 Message Date
Yannic Kilcher 5e342cbbdf Merge branch 'main' of github.com:LAION-AI/Open-Assistant 2023-01-29 00:37:32 +01:00
Yannic Kilcher f885e27961 added horizontal layout to inference dev setup 2023-01-29 00:37:28 +01:00
AbdBarho d37d4dcfee Merge pull request #973 from rjmacarthy/fix/locales-messages
website: Fix locale issue on messages/id page
2023-01-28 22:36:03 +01:00
rjmacarthy 86911b4453 Fix locale issue on messages/id page
Pre-commit
2023-01-28 20:25:31 +00:00
Andreas Köpf eb4c41e3c6 send full conversation (including last-message) in label tasks 2023-01-28 20:23:39 +01:00
Andreas Köpf 5747373480 fix typo Unhelful 2023-01-28 19:57:44 +01:00
Andreas Köpf 54503b7e1b reduce userstats cron defaults, fix reference error 2023-01-28 19:10:03 +01:00
Adrian Cowan ab4dce3f60 website: Support new widget types for labelling (#966)
* website: Support new widget types for labelling

Adds proper support for yes/no spam style questions as well as a simple interface for flag style labels.

Also cleaned up the Task component to fix some rerender issues.

* website: Fix some UI text, adjust yes/no button alignment

* website: Remove left over console.log

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>

---------

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-28 17:07:43 +01:00
Andreas Köpf 314c590dd2 include import.py in backend docker image 2023-01-28 16:18:31 +01:00
Andreas Köpf 19116f7251 add optional message_id query param to text_labels/valid_labels endpoint 2023-01-28 15:29:38 +01:00
Andreas Köpf 264e914225 exclude fails_task from default valid labels 2023-01-28 15:07:46 +01:00
Andreas Köpf c8d16285d0 Import message trees from jsonl file (#964)
* add new backlog_ranking tree state

* add first version of import script

* allow activation of trees during import

* add min_active_rankings_per_lang config param

* add settings docstring
2023-01-28 15:05:46 +01:00
Ikko Eltociear Ashimine b2eb94962c fix readme.md (#965)
successfull -> successful
2023-01-28 08:59:41 +00:00
Keith Stevens c47b8f175d Merge pull request #959 from LAION-AI/oasst-header
Send `x-oasst-user` header to backend
2023-01-28 16:23:07 +09:00
Keith Stevens b3f28d2bf3 Merge pull request #940 from rjmacarthy/refactor/tasks-page
website: Refactor task page routes and repetition
2023-01-28 16:07:42 +09:00
MattAlexMiracle 994dce7c76 language classifier (#963)
Co-authored-by: Alexander Mattick <alex.mattick@fau.de>
2023-01-28 00:56:56 +01:00
Seth cd3bb36db7 fixed nesting (#944) 2023-01-27 23:38:40 +00:00
Andreas Köpf 0903ec5d58 fix quility label addition 2023-01-28 00:03:52 +01:00
Andreas Köpf 8ea53a54eb add quality to valid-labels for simple text labeling tasks (anti-spam) 2023-01-28 00:01:49 +01:00
AbdBarho 4067bec03f Remove unused i18n 2023-01-27 23:12:44 +01:00
dhug 49b5999ce6 Duplicate message reply filter (#958)
* added changes for user specific message dumplication filter, added error codes, and settings variable as described in Draft PR #926, ran precommit

* removed debug statements

* add missing await to async_managed_tx_method

* add 2nd missing await to async_managed_tx_method

* added changes for user specific message dumplication filter, added error codes, and settings variable as described in Draft PR #926, ran precommit

* removed debug statements

* assert task user matches prompt_repository user

* removed assert statments

* moved duplicate_message_filter and message_length check into store_text_reply

* removed old checks in tree_manager
2023-01-27 21:52:19 +00:00
AbdBarho e4dcfe4161 Use new reply_message 2023-01-27 22:41:20 +01:00
AbdBarho ab227c5db5 Fix error in labeling tasks 2023-01-27 22:33:04 +01:00
AbdBarho 0a6d9011ea Fix semantic html nesting 2023-01-27 22:33:04 +01:00
AbdBarho 3c791efb79 Move api calls to oasst_api_client 2023-01-27 22:33:04 +01:00
AbdBarho 9429590a81 Move to factory 2023-01-27 22:33:04 +01:00
AbdBarho 59531c7d3d userless client 2023-01-27 22:33:04 +01:00
AbdBarho cdb9f2da4e Send x-oasst-user header 2023-01-27 22:33:04 +01:00
Andreas Köpf 3a32a10b23 add reply_message to LabelConversationReplyTask & LabelConversationReplyPayload 2023-01-27 22:30:27 +01:00
Andreas Köpf 4b3ce24c72 add parsing of additional x-oasst-user header field (#957)
* add parsing of additional x-oasst-user header field

* simplify passing FrontendUserId to PromptRepository, use frontend_user_id on more message enpoints

* remove unrelated change
2023-01-27 21:28:57 +01:00
AbdBarho b07c7271b8 Merge pull request #960 from notmd/fix_leaderboard_limit
Pass correct param when fetch leaderboard
2023-01-27 21:20:11 +01:00
Andreas Köpf 002f847406 add missing alembic migration script 2023-01-27 21:16:31 +01:00
Andreas Köpf 9bad3d6e74 Exclude certain users from leaderboard stats (#961)
Co-authored-by: Akhil Datla <66145155+akhil-datla@users.noreply.github.com>
2023-01-27 21:04:55 +01:00
Adrian Cowan 356fd775e9 Add emoji reactions and reporting for messages (website) (#952)
* website: Move labelling to message ... menu and add reporting and emoji reactions

We can add more emoji easily in future, we just need to pick ones that we have consistent icons for.

Also added "open in new tab" option so that messages can be navigated to from tasks on mobile.

* website: Make new label and report strings translatable.

* website: Move report api call to oasst client

* small fixes

* pre-commit

---------

Co-authored-by: AbdBarho <ka70911@gmail.com>
2023-01-27 20:52:40 +01:00
rjmacarthy bf77d4dc60 Add types for TaskType to TaskHook
Pre-commit

Apply better naming to task api hooks

Lint
2023-01-27 19:09:28 +00:00
Andreas Köpf c7692b9049 add 2nd missing await to async_managed_tx_method 2023-01-27 19:44:48 +01:00
Andreas Köpf d165987256 add missing await to async_managed_tx_method 2023-01-27 19:43:08 +01:00
notmd ce3b3c7ecc pass correct param when fetch leaderboard 2023-01-28 00:17:31 +07:00
James Melvin Ebenezer 3b04080d7b 949_transaction error handling (#950)
* fix: transaction error handling

* refactor: retry handling for all decorators as per review comments

* fix: raising retry exhausted error

* fix: avoid auto refresh on RollBack and review comments

* removed refresh_result param from managed_tx_function

---------

Co-authored-by: James Melvin <melvin@gameface.ai>
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com>
2023-01-27 18:06:25 +01:00
Yannic Kilcher 45a4b09eae added setup instructions to readme 2023-01-27 15:42:01 +01:00
Yannic Kilcher ae5d16f394 added a tmux inference dev setup script 2023-01-27 15:40:21 +01:00
Yannic Kilcher 83dc00b638 Merge branch 'main' of github.com:LAION-AI/Open-Assistant 2023-01-27 15:23:25 +01:00
Yannic Kilcher a0f4449e9f added seed to parameters 2023-01-27 15:23:19 +01:00
rjmacarthy e6009933db Rename const to taskInfo 2023-01-27 10:16:25 +00:00
rjmacarthy 24f4c08796 Refactor task page routes and repetition
Remove blank line

Lint add blank line

Link pre-commit
2023-01-27 10:16:02 +00:00
Keith Stevens 639722b0f4 Merge pull request #951 from othrayte/fix-new-label-handling
website: Fix handling of new and unknown labels
2023-01-27 15:37:42 +09:00
Adrian Cowan 1011fa527c website: Fix handling of new and unknown labels 2023-01-27 13:25:07 +11:00
Andreas Köpf da1c81d2c9 Add LabelDescription list to labeling tasks, make +1/-1 emojis exclusive (#947)
* add LabelDescription list to labeling tasks

* make +1 & -1 emoji exclusive (only one of both or none)

* add red_flag emoji to message when reported

* fix task's valid labels

* fix typo
2023-01-27 00:54:29 +01:00
Andreas Köpf f3ffde47ff add preferred lonely_children extension (#942)
* add preferred lonely_children extension

* simplify sampling process, lower the probability to 25%

* exclude parents for replies that were recently used

* lonely children := count > 0

* consider only tasks not done for parent exclusion

* increase lonely child sampling probability
2023-01-26 23:00:54 +01:00
Yannic Kilcher de00cc82d0 Merge branch 'main' of github.com:LAION-AI/Open-Assistant 2023-01-26 21:02:00 +01:00