Commit Graph

416 Commits

Author SHA1 Message Date
Mamadou DICKO
7f9ea9d64c
feat: remove <BrainConfigProvider /> (#1154) 2023-09-12 18:04:35 +02:00
Mamadou DICKO
7cc90ef258
feat: add polling for pending notifications (#1152)
* feat: add notification controller

* feat: add polling logic on pending notifications

* feat: refecth notifications on Feed
2023-09-12 18:00:46 +02:00
Mamadou DICKO
10af0c949a
feat: add notifications components (#1148)
* feat: rename ChatMessages to MessagesDialog

* feat: rename history to messages

* feat: add notifications to ChatContext

* feat: add getNotificationsFromChatHistory

* feat: add getMergedChatHistoryWithReducedNotifications

* refactor: update useActionBar

* refactor: update <ChatMessage />-n

* feat: update crawler and endpoint notifications content

* feat: display notifications

* test: update <MessageDialog /> tests

* feat: rename ChatMessage to QADisplay

* feat: rename ChatHistory to ChatMessage

* feat(upload): throw error when file missing

* feat: rename getMergedChatHistoryWithReducedNotifications to getMergedChatMessagesWithReducedNotifications

* feat: change history wording to message

* feat: move getFileIcon to lib

* refactor(NotificationDisplayer): move types to types.ts

* chore: improve ux

* feat: rename MessagesDialog to ChatDialogue
2023-09-12 17:44:15 +02:00
Mamadou DICKO
72659709a8
fix: update crawl and upload endpoints (#1142) 2023-09-08 11:03:14 +02:00
Mamadou DICKO
7e1e13fab5
feat(feedBrain): add request pending message #1135 (#1136)
* feat(feed brain): add pending message

* feat: add 'filesUploading' translation

* feat(chatPage): update tests
2023-09-08 09:57:21 +02:00
Mamadou DICKO
9464707d40
feat: merge chat history with chat notifications (#1127)
* feat: add chat_id to upload and crawl payload

* feat(chat): return chat_history_with_notifications

* feat: explicit notification status on create

* feat: handle notifications in frontend

* feat: delete chat notifications on chat delete request
2023-09-07 17:23:31 +02:00
Mamadou DICKO
a14c033da5
feat: allow user to chat while feed process is pending (#1120)
* feat: remove 'ux-upload' feature flag

* feat: publish a message at the end of feed process

* feat: hide feed card during feed process
2023-09-07 10:15:19 +02:00
Mamadou DICKO
711eff0863
feat: add multiple upload and crawl in parallel (#1118)
* feat: explicit accepted files

* feat: un-synchronize upload and chat FileUploader

* feat: add uploading file new ui

* feat: rename +UrlDisplayer to FeedTitleDisplayer

* feat: add icon per file type

* feat: remove file extension on display

* feat: send feed items to backend

* feat: track file upload

* chore: improve dx
2023-09-07 10:00:45 +02:00
Zineb El Bachiri
eb7b677fef
🚑 add growthbook to csp headers (#1117) 2023-09-06 11:40:07 +02:00
Mamadou DICKO
f230bc10de
feat(crawler): add multiple urls support (#1112)
* feat(Field): add icon support

* feat(Crawler): replace submit button with send icon

* feat(crawler): add multiple urls support

* feat: add <FeedItems/> component to display adding items

* feat(FeedItems): add remove icon

* feat: add url displayer

* feat: add invalid url message

* fix: add crawler to upload page

* feat: clean sueCrawler

* feat: rename Feed to KnowledgeToFeed

* feat: add tracking
2023-09-05 18:47:18 +02:00
Zineb El Bachiri
34708c51ea
🚑 fix feature flags -> add it back to context (#1106) 2023-09-05 11:43:03 +02:00
Mamadou DICKO
9b163e5b65
feat: add <Feed /> component in chat page (#1103)
* refactor: update uploadPage structure

* feat: show upload component from chatbar

* refactor: move <Feed/> from upload page to chat page
2023-09-05 10:49:29 +02:00
Mamadou DICKO
14e44ac6ec
feat: add FeedBrainInput component (#1101)
* feat: add FeedBrainInput component

* feat: add upload button

* feat: update translations add feed_brain_placeholder

* refactor(uploadPage): add config.ts

* feat(lib): add MentionInput

* feat: add <BrainSelector/> component

* feat: update FeedBrainInput
2023-09-04 15:27:06 +02:00
Mamadou DICKO
2a479419a7
fix: prevent submit on share button click (#1098) 2023-09-04 10:25:48 +02:00
Mamadou DICKO
bea275f2ff
feat: add tanstack query and optimistic fetch on brains settings page (#1087)
* refactor: remove <TrackingWrapper />

* feat: add tanstack query

* feat: add optimistic fetch to brain settings page
2023-09-01 15:14:35 +02:00
Mamadou DICKO
46e19e8ac2
fix: fix hash redirection (#1085) 2023-08-31 18:25:06 +02:00
Mamadou DICKO
51bd020a2f
fix: update hash routing logic (#1082) 2023-08-31 18:08:39 +02:00
Mamadou DICKO
47b8d697c6
fix(openAiKey): handle nullish values (#1080) 2023-08-31 16:28:26 +02:00
Mamadou DICKO
aaf841136c
feat: change share brain button logic (#1078) 2023-08-31 16:02:32 +02:00
Zineb El Bachiri
55a387d740
🔒️ add url api.openai to CSP headers (#1077) 2023-08-31 15:50:16 +02:00
Mamadou DICKO
4306f60959
feat: truncate long chatname (#1076) 2023-08-31 14:54:57 +02:00
Mamadou DICKO
e769eddd76
feat: remove mic button (#1075) 2023-08-31 14:53:43 +02:00
Mamadou DICKO
bd2358f425
fix: fix minor bugs (#1070)
* fix: update get_user_id_by_user_email type

* fix: update getEditorText logic

* feat(mentionSuggestions): render empty popover
2023-08-31 10:41:02 +02:00
Mamadou DICKO
23b21026c2
feat(chatMessage): update attributes display (#1067) 2023-08-30 16:28:10 +02:00
Mamadou DICKO
22935583f3
feat(newBrain): update data validation logic and add * on required fields (#1065)
* feat(createBrain): add * on required fields

* fix: update brain data validation logic
2023-08-30 15:53:51 +02:00
Mamadou DICKO
a6333acdbe
feat: make chatlist scrollable (#1064) 2023-08-30 15:53:10 +02:00
Mamadou DICKO
5fe8807261
fix(invitationPage): avoid multiple re-rendering (#1062) 2023-08-30 13:40:48 +02:00
Zineb El Bachiri
3227b1175f
feat(chat): remove /files from chat bar placeholder (#1060) 2023-08-30 12:55:58 +02:00
Mamadou DICKO
1b63141b26
feat: add prompt and brain change tracking (#1058) 2023-08-30 11:28:15 +02:00
Mamadou DICKO
04e9f572a4
feat: add openai api key validation (#1057) 2023-08-30 11:20:28 +02:00
Mamadou DICKO
5612c2b455
feat: add name missing error in new brain modal (#1055)
* feat: update toast z index

* feat(brain modal): add name missing message
2023-08-30 11:04:03 +02:00
Mamadou DICKO
bcf954135c
feat: handle new chat button click (#1054) 2023-08-30 09:45:11 +02:00
Mamadou DICKO
c5a7b8faef
feat: update header and remove prompt / brain on backspace (#1052)
* feat: update header

* feat: remove selected prompt / brain on backspace

* feat(chat): update suggestions component

* refactor: add getAxiosErrorParams
2023-08-29 15:52:22 +02:00
Mamadou DICKO
6e43e6f16f
feat: add headless question tracking (#1051) 2023-08-29 12:26:08 +02:00
Mamadou DICKO
072d97adb1
feat: add prompt trigger through # (#1023)
* feat: add prompt trigger to mention input

* feat: update chat shortcuts

* test: update BrainProviderMock

* feat: improve ux

* feat: update message header position

* feat: improve mention input dx

* fix(MentionInput): fix minor bugs

* feat: refactor <ShareBrain/>

* feat: add brain sharing button

* fix: make popover buttons click working

* feat: update backspace handle logic

* feat: update add new brain button ui
2023-08-29 10:50:36 +02:00
Elie
77863e78bd
Fix English grammar translation.json (#1046) 2023-08-27 16:30:54 +02:00
ChloeMouret
d7a508acdd
feat: add 2 save buttons on Brain management tab (#1039)
* add 2 save buttons

* use translation
2023-08-25 18:37:56 +02:00
Mamadou DICKO
66bafcf2c5
feat(messagesList): auto scroll on new message (#1040) 2023-08-25 12:05:04 +02:00
Zineb El Bachiri
a9411c973a
fix(analytics): june debug for real (#1033)
* 🔥 remove Suspense because no ssr in front anymore

*  add debugging

* 🔥 remove debugger and better logs

* 🐛 fixed tracker by adding it to dependencies

* 🚨 add dependencies to hooks

* 🚨 remove linter warning from unawaited promise
2023-08-25 10:33:14 +02:00
ChloeMouret
d36217be80
feat: Remove chat id from chat list (#1031)
* update hover color : blue for modifying and red for delete

* remove chat id from chat lists
2023-08-24 19:44:42 +02:00
Ikko Eltociear Ashimine
152f237d9e
chore(chat): fix typo in useConfigModal.ts (#1021)
occured -> occurred
2023-08-23 10:10:10 +02:00
Zineb El Bachiri
2b74ebc1f0
fix(Analytics): no tags tracking for upload & crawl (#1024)
* 🚚 create useCrawlApi to use in useCrawler hook

* 🚑 fix tracking in Crawl

* 🧑‍💻 add hot reloading within docker containers

* 🚑 fix tracking for upload

* 🚚 create useUploadApi for fileUpload request

* 📈 add june tag for Language change

* 🩹 revert dependencies
2023-08-23 10:03:10 +02:00
Mamadou DICKO
b967c2d2d6
feat: add brain prompt overwritting from chat (#1012) 2023-08-22 14:23:27 +02:00
Zineb El Bachiri
4b1f4b1412
feat(prompts): add public prompts to SQL db (#1014)
*  add public prompts to SQL scripts

* 🚨 fix: missing zh-cn translation key
2023-08-22 13:14:31 +02:00
Buer
e328ab81b3
feat(translation): Added Simplified Chinese translation,Fix pt-br not working (#1011)
* 🌐 Add Chinese translation, fix pt-br errors.

* 🌐 Fix syntax errors.
2023-08-22 12:04:54 +02:00
Mamadou DICKO
8e94f22782
feat(chat): add brain selection through mention input (#969)
* feat(chat): add brain selection through mention input

* feat: detect mention deletion from editor

* feat: improve ux

* chore: improve dx

* feat: update translations

* feat: improve mention popover ui

* fix: update failing tests

* feat: add mentions suggestion popover

* feat: update translations

* feat: remove add new brain button
2023-08-22 10:05:52 +02:00
Zineb El Bachiri
20d5294795
explicit too many request in chat error (#1000) 2023-08-21 16:07:07 +02:00
Zineb El Bachiri
9aaedcff51
Fix/requests limiting (#980)
* 🗃️ Rename users table into user_daily_usage

* 💥 replace User model with UserIdentity model

* 🗃️ New UserDailyUsage class for database interaction

* 🐛 fix daily requests rate limiting per user

* 🐛 fix user stats and properties update

* ✏️ add typing and linting

* 🚚 rename user_dialy_usage Class  into user_usage & requests_count into daily_requests_count

* 🚑 fix some rebase errors
2023-08-21 14:05:13 +02:00
Gustavo J. Maciel
3a44f54d6b
fix(settings): select proper brain model (#943)
* fix(settings): select proper brain model

* feat(settings): save model on change
2023-08-18 12:12:17 +02:00
Zineb El Bachiri
74da7dde2d
Crawl/update env variables (#931)
* 📝 add env variable for crawl

* 🐛 make CharQuestion with optional attributes

* 💡 make chatQustion config optional
2023-08-18 11:59:20 +02:00
Stepan Lebedev
600ff1ede0
feat(Unplug): chatting without brain streaming (#970)
* feat(Unplug): Adds new basic headless llm

* feat(Unplug): adds chatting without brain option when no streaming

* feat(Unplug): adds chatting without brain option when streaming
2023-08-18 10:32:22 +02:00
Aditya Mundhalia
85ae06c829
correcting scroll & chat response view better code (#960) 2023-08-16 14:16:36 +02:00
Mamadou DICKO
f99f81d10f
feat: add brain missing message (#958) 2023-08-16 10:47:38 +02:00
Mamadou DICKO
9235a848d1
feat: change messages position (#946) 2023-08-14 10:43:10 +02:00
Zineb El Bachiri
d80178a848
fix(translations): pr portuguese translations (#933)
*  add typing to translations

* 🐛 add removed brain key in some languages

* 🐛 put correct translations for fr/es/ru

* fix(translation): missing a few

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-08-12 18:54:41 +02:00
Gabriel Rodrigues Eger
cb020c0e63
Portuguese language added, "Select a Quivr Personality" btn is now supporting translations as well (#925)
* Added Portuguese Language + Translation of "Select A Quivr Personality" btn

* Added Portuguese Language + Translation of "Select A Quivr Personality" btn

* Undoing changes to yarn.lock from previous commits (had run on windows)
2023-08-11 13:19:21 +02:00
Mamadou DICKO
80be40ad34
feat: update chat ui (#907)
* feat: remove react-mentions

* feat: add chat header

* feat: remove v2/chat

* feat: add fature flag

* feat: add new chat UI

* feat: add prompt and brain name to messages
2023-08-11 10:06:20 +02:00
Zineb El Bachiri
f3d9c89163
🚑 fix vercel yarn run build fail (#919) 2023-08-10 13:07:22 +02:00
Gustavo J. Maciel
1360ce801d
feat(invitation): add translations (#909) 2023-08-10 09:55:40 +02:00
Stepan Lebedev
672eec08bc
feat: Russian language translation (#903)
* feat(Russian Translation): Adds Russian Language option

* fix: Corrects Failedtofetch field in English Version

* fix: Adds missing translations on upload page
2023-08-09 11:17:12 +02:00
Mamadou DICKO
69a73f5d5a
feat: add new chat bar (#896)
* feat: add ActionsBar

* feat: add brain trigger
2023-08-08 17:28:34 +01:00
Gustavo J. Maciel
69d08937de
fix(es): spanish translations (#895)
Fix some typos on spanish translations
2023-08-08 17:18:28 +01:00
Stepan Lebedev
71e142ba3c
feat: deleting brains on brain manager page (#893)
* fix: new libraries for translation

* feat(deleting-brains-on-brain-management-page): adding a delete brain button and a confirmation modal on a management page

* feat(deleting-brains-on-brain-management-page): adding tests for confirmation Modal

* feat(deleting-brains-on-brain-management-page): Adding translation to the delete button and modal
2023-08-08 17:18:05 +01:00
Mamadou DICKO
c43e0c01c4
feat: add new chat page (#890) 2023-08-08 14:01:17 +01:00
ChloeMouret
e9ebeef72a
feat: gpt4 is not available for brains if there is no given openAiKey (#850)
* rename defineMaxToken

* use gpt-3.5-turbo instead of gpt-3.5-turbo-0613

* gpt4 not available if no open ai key
2023-08-07 16:35:23 +02:00
Stan Girard
1160e16014
feat(fr): added language (#884)
* feat: 🎸 french

added language

* perf: ️ images

improved with shark package for nextjs
2023-08-07 15:59:02 +02:00
Mamadou DICKO
b0514d6149
fix(i18n): update tests for french and spanish (#878)
* add libraries for traslation purposes

* Add button and service for language selection

* add spanish translation on login page

* add spanish translation on upload page

* Add spanish translations for explore page

* Add translations on user page

* Add translations for config page

* Add spanish translations on chat page

* add translations for brain page

* fix GUI and save on local storage

* fix (i18n) init and types

* fix (i18n): typos

* add translation on new brain modal

* add translations on metadata

* Add translations on home page

* fixes types

* fix(frontend-tests): use get by id instead of text

---------

Co-authored-by: Gustavo Maciel <gustavo_m13@outlook.com>
2023-08-07 14:13:41 +02:00
Stan Girard
6d74aea729
Revert "Revert "feat: remove private prompts on related brain delete (#842)" (#870)" (#876)
This reverts commit 6184dfadfe.
2023-08-07 10:15:38 +02:00
Stan Girard
6184dfadfe
Revert "feat: remove private prompts on related brain delete (#842)" (#870)
This reverts commit 4c15fe2bfd.
2023-08-07 09:16:43 +02:00
Mamadou DICKO
4c15fe2bfd
feat: remove private prompts on related brain delete (#842)
* feat: remove private prompts on brain deletion

* ui: improve personnality picker
2023-08-07 08:13:03 +02:00
renovate[bot]
d49f0771a5
chore(deps): update dependency @vitejs/plugin-react to v4.0.4 (#862)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-07 00:54:30 +02:00
Thomas Pucci
5496e9d738
fix: remove typo (#853) 2023-08-04 18:56:54 +02:00
Mamadou DICKO
b3fb8fc3bc
feat: add public prompts picker (#841)
* fix: update prompt_id logic in payload

* feat: add getPublicPrompts to sdk

* feat: add public prompt picker
2023-08-03 17:00:05 +02:00
Mamadou DICKO
99a3fa9b29
feat: add custom prompt fields on brain setting pages (#837)
* feat(sdk): add prompt apis to sdk

* feat: implement prompt creation-n

* feat: add brain custom prompt fields

* fix: change tables creation order
2023-08-03 15:41:24 +02:00
Mamadou DICKO
edcbb30e97
fix: bugs (#818)
* feat: add chat config modal

* feat: save chat config in localStorage

* feat: remove <ConfigPage/>

* feat: overwrite chat config with brain

* fix(SettingsPage): upload payload keys

* fix: update default brain marker logic

* feat: set new created brain as current selected brain
2023-08-01 16:25:02 +02:00
Stan Girard
c01433c841 fix(openai): user key now used for llm model 2023-08-01 13:46:53 +02:00
Mamadou DICKO
7532b558c7
feat: add user level open ai key management (#805)
* feat: add user user identity table

* feat: add user openai api key input

* feat: add encryption missing message

* chore: log more details about 422 errors

* docs(API): update api creation path

* feat: use user openai key if defined
2023-08-01 09:24:57 +02:00
Stan Girard
b72139af60 style(import): fixed 2023-08-01 01:14:16 +02:00
Stan Girard
3166d089ee
feat(chat): added streaming (#808)
* feat(tmp): added streaming

* feat(streaming): implemented by changing order
2023-07-31 21:34:34 +02:00
Stan Girard
df42cd9959 style: 💄 imports
fixed order
2023-07-31 09:18:18 +02:00
Ashish Baravaliya
3e8ed46317
fix: Toast message hidden under the footer (#761) 2023-07-31 09:03:19 +02:00
Corey Psoinos
87c5e582a2
fix(frontend): correctly display document information in explore view details (#781)
* stringify json values and render within pre tags so react can render them

* run prettier

* add tests for first document

* prettier

* return 'Not Available' instead of 'null' string

* don't render objects in document details; add tests

* remove newlines from imports
2023-07-31 09:02:54 +02:00
Mamadou DICKO
77ea2f2aa6
Brain management 4.2 (#777)
* feat: remove save changes button

* feat: refetch brains list on update

* feat: update forn initialization logic

* feat: prevent viewer to access people tab

* feat: set current brain asbrain management default selected brain
2023-07-26 16:54:03 +02:00
Mamadou DICKO
3529222b95
Brain management 4 (#762)
* feat: add <ApiKeyConfig/>

* feat(SDK): add update brain

* feat: add removeUndefined helper

* feat: remove unnecessary autofocus flag

* add brain settings tab

* ui: add tab delimitor

* feat: improve ux
2023-07-25 23:12:46 +02:00
Zineb El Bachiri
e05f25b025
Feat/update brain fields (#756)
* 🗃️ update and add fields in brains table

*  update endpoints for more brain attribute

*  new set as default brain endpoint

* 🔥 remove update brain with file

* ✏️ fix wrong  auto imports

* 🐛 fix max tokens for model in front

* 🚑 post instead of put to set default brain

* 🚑 update brain creation endpoint with new fields
2023-07-25 15:22:17 +02:00
Mamadou DICKO
046cc3fc1d
[Brain management] Add new fields to creation modal (#755)
* refactor(ModalConfig): move defineMaxTokensto helpers

* feat(AddBrain): add new properties

* feat(sdk): update createBrain

* feat(sdk): add setAsDefaultBrain
2023-07-25 12:08:08 +02:00
Mamadou DICKO
10b0cce992
feat: add brain management people page (#754) 2023-07-25 10:13:00 +02:00
Mamadou DICKO
37f904122c
feat: add brain management tabs (#753) 2023-07-25 09:54:34 +02:00
Mamadou DICKO
cf376fb59f
Brain management 1 (#752)
* feat: add brain management button

* feat: add brains list

* feat: add brain search bar

* feat: sort brain list by name

* refactor: update brains management page structure

* feat(BrainManagement): add new brain button

* feat: update import links
2023-07-24 14:17:21 +02:00
Mamadou DICKO
8125d0858c
ui: close modal after brain creation (#720) 2023-07-20 18:21:36 +02:00
Mamadou DICKO
d27504f735
Feat/rate limiting (#719)
* feat: add max brain count

* fix: prevent page cashing when invitation is invalid

* feat: rename rights to role in frontend
2023-07-20 18:17:55 +02:00
Mamadou DICKO
eb779f9e58
Minor UX improvments (#717)
* feat: display user rights on invitation page

* feat: add brain name in invitation email
2023-07-20 15:15:43 +02:00
Mamadou DICKO
d7ca11f5d1
feat: prevent editor to share as owner (#715)
* feat(UploadPage): redirect to login if not connected

* feat: prevent editor to share as owner
2023-07-20 15:15:32 +02:00
Mamadou DICKO
6c5016c79a
[ShareableBrain]: Feat: require owner role to delete content or remove user access (#711)
* feat: require owner right to remove content from brain

* feat: require owner right to remove user access from brain
2023-07-19 17:13:02 +02:00
Zineb El Bachiri
bc33528297
add brain name to explore and upload page (#708) 2023-07-19 13:51:53 +02:00
Mamadou DICKO
aa7bc483c2
feat: check user role on brain before file upload (#709) 2023-07-19 13:41:46 +02:00
Mamadou DICKO
87458d8de1
Feat/brain access rights (#705)
* refactor(BrainUsers)

* feat: give brain share access to EDITORs

* feat(RBAC): add role enum and supports multiple roles check

* feat: make owner right read only for other permissions
2023-07-19 13:36:23 +02:00
Ashish Baravaliya
6a7bda392c
fix: brain ico click working (#701) 2023-07-19 11:20:43 +02:00
Mamadou DICKO
7a2450eaf4
[ShareableBrain]: improve UX, fix minors bugs, refactor (#695)
* feat: add empty access list message

* feat: set default role to viewer

* feat: reset user invitation form after submit

* feat: add removing access indicator

* feat: add brain name on invitation page

* feat: display brain name on chat page

* feat: clear localStorage on logout
2023-07-18 18:28:44 +02:00
Mamadou DICKO
81b57c504a
Shareable brain 9 (#677)
* feat: add 20230717173000_add_get_user_id_by_user_email

* feat(ShareableBrain): add update access endpoint

* feat(sdk): add updateBrainAccess

* feat: add brain access control

* feat: improve ux
2023-07-18 14:30:19 +02:00
Zineb El Bachiri
0b091bd8c9
Feat/shareable brains open link authenticated (#676)
* ♻️ use Single Responsibility Principle on brains_subscription

*  new brain subscription endpoints for invited user

* 📝 add documentation to endpoints

* 🎨 add base_frontend_url to send custom url for brain share

* ✏️ brains instead of brain in url

*  use origin in header for frontend url in subscription email

* 🚚 move and remove unused code

*  new subscription API for BE endpoints in frontend

*  new addBrain to  add a shared brain in frontend

* 🥚 new hook for brain invitations

*  new page for brain invitation

*  change frontend url to copy for brain subscription

* ✏️ call RBAC with wrapper function

* ✏️ last typos
2023-07-18 09:47:59 +02:00
Mamadou DICKO
430ab54479
Shareable brain 8 (#674)
* feat(ShareableBrain): add get brain users endpoints

* feat(sdk): add getBrainUsers

* feat(ShareableBrain): display users with access

* feat: rename role to rights

* fix(Brain): fecth brains on auth status change
2023-07-17 15:45:18 +02:00
Mamadou DICKO
4d00a1ec92
feat(shareBrain): use subscription delete endpoint for brain deletion (#634) 2023-07-17 14:38:34 +02:00
beran
6a436d822c
fix for timeout during installing frontend pckgs (#621) 2023-07-15 23:22:17 +02:00
Ikko Eltociear Ashimine
e822f9ad11
Fix typo in useBrainProvider.ts (#574) 2023-07-15 23:21:24 +02:00
nicksan222
c4c15a497c
Fixed pandocs (#662) 2023-07-15 23:20:47 +02:00
Matt
9f2cd7b7b6
fix: bug if no brain (#635) 2023-07-14 20:02:26 +01:00
Mamadou DICKO
bd0aa01ba1
Shareable brain 6 (#628)
* feat: add redirectToLogin helper

* feat: use redirectToLogin instead of redirect('login')

* feat: redirect to initial targeted page after login
2023-07-13 18:05:08 +02:00
Mamadou DICKO
677e6bcefe
Shareable brain 4 (#611)
* feat(useBrainApi): add subscription creation to sdk

* feat: add share brain submit handler
2023-07-12 15:45:45 +02:00
Mamadou DICKO
783f8dea76
[ShareableBrain] User email and role inputs form (#608)
* feat: add invitation emails form

* test(ShareBrain): add tests
2023-07-12 14:56:25 +02:00
Mamadou DICKO
8749ffd0bd
Shareable Brains - 2 (#601)
* feat(brains): add fetching indicator

* feat: add brain share modal
2023-07-11 14:45:18 +02:00
Stan Girard
85570d2e9e
feat: 🎸 google (#587)
added login first
2023-07-10 17:30:15 +02:00
Zineb El Bachiri
abe7cca902
add github mediasource in security headers (#551) 2023-07-07 13:00:26 +02:00
Mamadou DICKO
3ba2c92b50
Frontent/test/explore/1 (#552)
* refactor(MultipleBrain): separate providing and data fetching

* refactor(MultipleBrain): update useBrainApi

* feat(MultipleBrains): remove unnecessary data fetchings

* test(useBrainApi): update unit tests
2023-07-07 12:56:08 +02:00
Zineb El Bachiri
11cb81f40d
🚑 use security headers in prod environement only (#550) 2023-07-07 10:40:57 +02:00
Zineb El Bachiri
9e942ba959
add cors security headers (#533) 2023-07-06 19:01:38 +02:00
Mamadou DICKO
4261ddae51
Frontend/test/explore/1 (#544)
* refactor(<ExplorePage/>): add useExplore

* feat(api): add useBrainApi

* test(useBrainApi): add unit tests
2023-07-06 19:01:23 +02:00
Mamadou DICKO
0ce9c8ffcd
Frontend/test/config/2 (#542)
* test(useApiKeyConfig): add unit tests

* test(BackendConfig): add unit tests
2023-07-06 19:01:12 +02:00
Mamadou DICKO
b3a0db771a
Frontend/test/config/1 (#534)
* test(<ConfigPage />: add unit tests)

* refactor(ApiKeyConfig): add useApiKeyConfig

* test(ApiKeyConfig): add unit tests
2023-07-06 17:13:53 +02:00
Mamadou DICKO
c1535a9b86
Frontend/test/chat 4 (#523)
* refactor: move getHistory to api/chat

* test(chat): unit-tests getHistory

* refactor: rename useChatService useQuestion

* feat: add updateChat to api/chat

* test(chat): unit-tests updateChat

* refactor(ChatsListItem): add useChatsListItem

* feat: remove http request from provider and remove useChats
2023-07-05 18:33:18 +02:00
Mamadou DICKO
d51d4a1e90
Frontend/test/chat 3 (#517)
* refactor: add addQuestion to chat api

* test(chat): add unit tests to addQuestion
2023-07-05 13:39:07 +02:00
Mamadou DICKO
68642afbb8
Frontend/test/chat 2 (#516)
* feat: add chat api

* refactor(MicButton): move related hook

* feat: add nock http call example

* test(useChatApi): add unit tests
2023-07-05 13:33:26 +02:00
Mamadou DICKO
9bb7ccf651
Frontend/test/chat 1 (#508)
* feat: add providers mocks

* test(<ChatPage/>: add render test using providers
2023-07-05 09:30:22 +02:00
Aditya Nandan
02272ab0ca
Search for brains through the dropdown (#507) 2023-07-05 09:24:42 +02:00
Mamadou DICKO
4512bd05b5
test(<ChatsList />): add unit tests (#498) 2023-07-03 18:38:12 +02:00
Mamadou DICKO
6acb13d4ae
Frontend/test/chat (#496)
* refactor(<ChatPage/>)

* test(<ChatInput />): add unit tests

* test(<ChatMessages />): add unit tests
2023-07-03 17:39:59 +02:00
Matt
d840173992
fix: remove google on main (#486) 2023-07-03 15:26:58 +02:00
Mamadou DICKO
6b39dd5641
Frontend/unit tests (#485)
* test(GoogleLogin): add unit tests

* test: run tests concurrently

* test(<LogoutPage/>): add unit tests

* chore: refactor <SigupPage/>

* test(<SignUpPage />): add unit tests
2023-07-03 14:59:24 +02:00
Stan Girard
3e68000983 docs(demo): updated demo video 2023-07-02 22:30:39 +02:00
Stan Girard
a6aecea76c
chore(telemetry): added for DELETE_BRAIN (#457) 2023-07-02 18:59:15 +02:00
Ziyad El Abid
8bb8c21e04
Feat/Add unit tests to RecoverPassword component (#445)
* test(RecoverPassword): add unit tests

* Returning a promise instead of using await (lint error) + fix build issues

* Test if updateUserMock was called in case of update failure
2023-07-02 18:56:12 +02:00
Aditya Nandan
ca0591d31c
feat(brain): add a delete button (#456) 2023-07-02 18:48:32 +02:00
Stan Girard
f9b3eba973 feat(sentry): added only if env variable set 2023-07-02 14:32:16 +02:00
Aditya Nandan
315411facd
remove blank scrollbars and use predefined components (#452)
* style(chat and brains dropdown): remove blank scrollbars and use predefined components

* style(chat): use custom scrollbar style by using scrollbar class
2023-07-02 14:30:11 +02:00
Stan Girard
b444761622 fix(sentry): added fix 2023-07-02 10:54:36 +02:00
Stan Girard
3918ad3015 fix(sentry): removed from variables 2023-07-02 10:26:16 +02:00
Stan Girard
fbd1e17018
feat(sentry): added sentry (#443) 2023-07-01 21:12:13 +02:00
Stan Girard
3df2613caf docs(sponsors): padding 2023-07-01 18:47:05 +02:00
Stan Girard
2468a6da1d chore(brain): adding button event 2023-07-01 18:40:43 +02:00
Stan Girard
b76262c4f0
Fix a bunch of issues (#442)
* fix(tokens): overflow

* fix(chat): fixed deletion error of the chat

#441

* fix(default-brain): autoset default brain when on upload page

* fix(promptengineering): changed prompt a bit

* feat(growthbook): removed

* docs(readme): updated
2023-07-01 17:22:28 +02:00
Stan Girard
1e47024d17 fix(streaming): added 2023-06-30 17:32:12 +02:00
Stan Girard
ddab4a7c6c fix(streaming): removing not working 2023-06-30 17:27:34 +02:00
Mamadou DICKO
1ac9d8a0e9
Add tests to frontend/(auth)/logout (#439)
* chore: refactor <Logout/>

* test(useLogout): add unit tests
2023-06-30 13:17:38 +02:00
Zineb El Bachiri
a13219c73f
🚑 quick fix for brain temporary redirect (#427) 2023-06-30 10:57:17 +02:00
Mamadou DICKO
e8b374e8a4
Frontend tests (#426)
* test(useGoogleLogin): add unit tests

* test(useMagicLinkLogin): add unit tests

* test(usePassword): add unit tests

* test(useLogin): add unit tests

* test(Login): add unit tests
2023-06-30 10:29:15 +02:00
Matt
6f047f4a39
feat: streaming for standard brain picking (#385)
* feat: streaming for standard brain picking

* fix(bug): private llm

* wip: test

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>

* wip: almost good

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>

* feat: useFetch

* chore: remove 💀

* chore: fix linting

* fix: forward the request if not streaming

* feat: streaming for standard brain picking

* fix(bug): private llm

* wip: test

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>

* wip: almost good

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>

* feat: useFetch

* chore: remove 💀

* chore: fix linting

* fix: forward the request if not streaming

* fix: 💀 code

* fix: check_user_limit

* feat: brain_id to new chat stream

* fix: missing imports

* feat: message_id created on backend

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>

* chore: remove dead

* remove: cpython

* remove: dead

---------

Co-authored-by: Mamadou DICKO <mamadoudicko@users.noreply.github.com>
2023-06-30 10:10:59 +02:00
Zineb El Bachiri
056a68d5ed
Fix/prod (#425)
* 🐛 update db tables script

* ✏️ fix users routes

* 🐛 add '/' AGAIN in URLs
2023-06-30 10:09:50 +02:00
Zineb El Bachiri
b016413099
✏️ add / in all explore url (#415)
* ✏️ add / in all explore url

* 🐛 fix user routes

* ⚰️ remove dead code

*  add name to active brain
2023-06-30 09:08:40 +02:00
Zineb El Bachiri
4d9bd512ec
Fix/file upload explore (#412) 2023-06-29 18:26:03 +02:00
Ikko Eltociear Ashimine
ed61880a38
refactor: fix typo in useChats.ts (#393)
occured -> occurred
2023-06-29 16:48:29 +02:00
Mamadou DICKO
cd78594590
Config frontend tests (#408)
* test: configure vitest and RTL

* test: add test boilerplates

* feat(ci): added test-unit frontend

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-06-29 13:18:30 +02:00
Stan Girard
3946dbc668 fix(crawler): route 2023-06-29 08:00:34 +02:00
Stan Girard
8978c8ab37 fix(path): made sure the frontend called with a / at the end 2023-06-29 07:33:19 +02:00
Zineb El Bachiri
ccdc5bb7a7
Feat/multiple brains files (#361) 2023-06-28 19:39:27 +02:00
Mamadou DICKO
e79da8e3cd
feat(auth): add password recovery (#394) 2023-06-28 14:35:18 +02:00
Stan Girard
9d07869b03
chore(analytics): added crawled url (#389) 2023-06-27 16:12:19 +02:00
Mamadou DICKO
dc64470d5d
Ux improvment (#382)
* feat: make chat list hidden on mobile by default

* feat: autoclose chat list on click

* feat: move footer to chat lists bottom when user is logged in

* feat: fix header when user is logged in

* chore: refacto ChatMessages

* feat: reverse chat list display on fetch

* feat: fix new chat button
2023-06-27 11:28:09 +02:00
Stan Girard
56c761ed0e fix(analytics): changed for user id 2023-06-26 22:11:10 +02:00
Stan Girard
30e764497d
perf(analytics): added usage analytics (#381) 2023-06-26 19:23:48 +02:00
Stan Girard
bdccdf1a0a
perf(analytics): added tracking for file upload and chat (#376) 2023-06-26 12:54:07 +02:00
Mamadou DICKO
97d2c9de10
[Analytics]: Add tracking (#375)
* feat: add june tracking config

* feat(tracking): add page view tracking

* feat(tracking): add event tracking
2023-06-26 11:36:15 +02:00
Mamadou DICKO
59fe7b089b
feat(chat): use openai function for answer (#354)
* feat(chat): use openai function for answer (backend)

* feat(chat): use openai function for answer (frontend)

* chore: refacto BrainPicking

* feat: update chat creation logic

* feat: simplify chat system logic

* feat: set default method to gpt-3.5-turbo-0613

* feat: use user own openai key

* feat(chat): slightly improve prompts

* feat: add global error interceptor

* feat: remove unused endpoints

* docs: update chat system doc

* chore(linter): add unused import remove config

* feat: improve dx

* feat: improve OpenAiFunctionBasedAnswerGenerator prompt
2023-06-22 17:50:06 +02:00
Stan Girard
3d11e3fb51
refactor(brain): removed braintoupdate and added brain (#356)
* refactor(brain): removed braintoupdate and added brain

* feat(brain): updated
2023-06-21 10:16:44 +02:00
Mamadou DICKO
90bd49527b
fix(upload) (#355) 2023-06-20 17:41:16 +02:00
Zineb El Bachiri
9c8e0aa0e4
Feat/multiple brains frontend (#344)
* 🗑️ remove date input from fetch_user_id_from_credentials

* ♻️ refactor backend utils by splitting it into files

* 💡 comments for next actions to update /upload

* 🚚 move SupabaseProvider tp libs

* 🚚 move useAxios to hooks

* ♻️ refacto brain routes

* 🚨 update lintermfor paths

*  new brain context provider

*  new brain component in navbar

* 🚨 fix linter and async

* 🇸🇪 add feature flag for multiple-brains
2023-06-20 16:17:13 +02:00
Mamadou DICKO
e1a740472f
Feat: chat name edit (#343)
* feat(chat): add name update

* chore(linting): add flake8

* feat: add chat name edit
2023-06-20 09:54:23 +02:00
Stan Girard
c0ff030100 feat(k): increased to 16 2023-06-17 01:32:03 +02:00
Stan Girard
f833de47bc feat(openai): 16k 2023-06-16 17:52:32 +02:00
Ruben1701
377afe61ab
Chatlist standard (#339)
* auyto removed

* changed to standard being open

---------

Co-authored-by: Ruben170 <35116541+Ruben170@users.noreply.github.com>
2023-06-15 17:59:17 +02:00
Zineb El Bachiri
1d7bc8a5bc
Devx/add linter rules (#331)
* remove duplicate import

* 🚧 add new linter configuration

* 🧑‍💻  add and run prettier

* 🐛 add babel parser for linter

* 🧑‍💻 add lint-fix command

* 🚨 use lint-fix

* 🚨 remove 'FC' as a type. Use const and JSX.Element

* 🚨 enforce arrow function rule from linter

* 🔥 delete unused file

* 🚨 adding /* eslint-disable */ in failing files

* 💩 add ts-expect-error to Victory components
2023-06-15 11:52:46 +02:00
Aditya Nandan
e6e5099d6b
Feat/responsive chat bar (#314)
* feat(chat): close and open chatbar on button toggle

* feat(chat): drag to open chat bar

* fix(chat): fix warning of not being able to animate shadows

* fix(chat): make chat input a little responsive

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-06-14 22:58:37 +02:00
Cezar Vasconcelos
3b7390dd61
Feat/add new openai llm models (#334)
* feat(frontend): update OpenAi models and maxToken select's

* fix: update openai model to use the most recent

* fix: adjust max token for gpt-3 turbo

* fix: duplicating models

* fix: openai model type list
2023-06-14 21:30:52 +02:00
Matt
33f49ee289
feat: user can create api keys (#329)
* feat: user can create api keys

* fix: linting on build

* Update backend/routes/api_key_routes.py

* chore: rename and refactor AuthBearer

* chore: add types
2023-06-14 21:21:13 +02:00
Zineb El Bachiri
4c6beea626
Refactor/front fix navba (#328) 2023-06-14 15:00:05 +02:00
Zineb El Bachiri
f4aa22417f
Refactor/front (#313)
* 🚚 move footer component

* 🚚 move navbar component

* 🚚 move ui components

* 🚚 move browser tab icon to public folder

* 🚚 move Chat Provider

* 🚚 move hooks to lib

* 🚚  move helpers to lib

* 🚚 move types to lib
2023-06-13 16:33:41 +02:00
Stan Girard
de8daa04bf fix(prompt): less picky 2023-06-13 14:43:53 +02:00
Zineb El Bachiri
b3453157e6
🐛 handle click on done in Config (#304)
♻️ refactor Config Component
2023-06-12 13:15:03 +02:00
Aditya Nandan
c54a0e59d1
Fix chat sidebar scroll (#298)
* fix(chat): Use a global chat context to avoid duplicate states

* fix(chat): update chats list when creating a new chat

* fix(chat): scroll into view end
2023-06-11 15:20:59 +02:00
Aditya Nandan
52e723d534
use context to prevent having duplicate chat states (#297)
* fix(chat): Use a global chat context to avoid duplicate states

* fix(chat): update chats list when creating a new chat
2023-06-11 14:34:36 +02:00
Aditya Nandan
57f9ef6170
Sticky - chat list, navbar, chat input (#295)
* feat: sticky navbar and sticky chatlist

* fix: remove unnecessary top padding

* style(chat): sticky chat input

* style(footer): increase vertical padding

* style(chat): sticky new chat button

* fix(chat): minor fixes

* fix(chat): center ChatMessages

* fix(chat): screen height chatlist
2023-06-11 10:44:23 +02:00
Zineb El Bachiri
4112699db5
Feat/user chat history (#275)
* ♻️ refactor backend main routes

* 🗃️ new user_id uuid column in users table

* 🗃️ new chats table

*  new chat endpoints

*  change chat routes post to handle undef chat_id

* ♻️ extract components from chat page

*  add chatId to useQuestion

*  new ChatsList

*  new optional dynamic route chat/{chat_id}

* 🩹 add setQuestion to speach utils

* feat: self supplied key (#286)

* feat(brain): increased size if api key and more

* fix(key): not displayed

* feat(apikey): now password input

* fix(twitter): handle wrong

* feat(chat): basic source documents support (#289)

* ♻️ refactor backend main routes

* 🗃️ new user_id uuid column in users table

* 🗃️ new chats table

*  new chat endpoints

*  change chat routes post to handle undef chat_id

* ♻️ extract components from chat page

*  add chatId to useQuestion

*  new ChatsList

*  new optional dynamic route chat/{chat_id}

* 🩹 add setQuestion to speach utils

* 🎨 separate creation and update endpoints for chat

* 🩹 add feat(chat): basic source documents support

*  add chatName upon creation and for chats list

* 💄 improve chatsList style

* User chat history and multiple chats (#290)

* ♻️ refactor backend main routes

* 🗃️ new user_id uuid column in users table

* 🗃️ new chats table

*  new chat endpoints

*  change chat routes post to handle undef chat_id

* ♻️ extract components from chat page

*  add chatId to useQuestion

*  new ChatsList

*  new optional dynamic route chat/{chat_id}

* refactor(chat): use layout to avoid refetching all chats on every chat

* refactor(chat): useChats hook instead of useQuestion

* fix(chat): fix errors

* refactor(chat): better folder structure

* feat: self supplied key (#286)

* feat(brain): increased size if api key and more

* fix(key): not displayed

* feat(apikey): now password input

* fix(twitter): handle wrong

* feat(chat): basic source documents support (#289)

* style(chat): better looking sidebar

* resume merge

* fix(backend): add os and logger imports

* small fixes

* chore(chat): remove empty interface

* chore(chat): use const

* fix(chat): merge errors

* fix(chat): remove useSpeech args

* chore(chat): remove unused args

* fix(chat): remove duplicate components

---------

Co-authored-by: gozineb <zinebe@theodo.fr>
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
Co-authored-by: xleven <xleven@outlook.com>

* fix and refactor errors

* fix(fresh): installation issues

* chore(conflict): merged old code

* fix(multi-chat): use update endpoint

* feat(embeddings): now using users api key

---------

Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
Co-authored-by: xleven <xleven@outlook.com>
Co-authored-by: Aditya Nandan <61308761+iMADi-ARCH@users.noreply.github.com>
Co-authored-by: iMADi-ARCH <nandanaditya985@gmail.com>
Co-authored-by: Mamadou DICKO <mamadoudicko100@gmail.com>
2023-06-10 23:59:16 +02:00
Stan Girard
13a15ac926 fix(twitter): handle wrong 2023-06-10 00:05:50 +02:00
Stan Girard
0992acef97 feat(apikey): now password input 2023-06-09 23:40:16 +02:00
Stan Girard
4eb9d00c45 fix(key): not displayed 2023-06-09 23:29:06 +02:00
Stan Girard
399a3fe437 feat(brain): increased size if api key and more 2023-06-09 23:20:51 +02:00
Matt
a64df04eab
feat: self supplied key (#286) 2023-06-09 18:49:47 +02:00
Daniel
ff02e884eb
Style/chat (#278)
* 🎨style improve chat component

* ♻️ refactor code

* fix delete prop
2023-06-07 23:16:59 +02:00
Aditya Nandan
b441daf3f3
show signed in user's email on nav (#274) 2023-06-06 19:07:54 +02:00
ravikiranp123
6cbcc470e1
Fix margins on chat page for footer (#273) 2023-06-06 18:37:23 +02:00
ravikiranp123
6ca4d95de4
Save chat history locally (#267) 2023-06-06 18:11:36 +02:00
Aditya Nandan
98c409176d
Style /user route (#271)
* style(user): remove mui and complete overhaul of the layout

* docs(user): add useful comments

* fix(build): empty interface

* chore(comment): removed

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-06-06 17:32:48 +02:00
Zineb El Bachiri
cd15b74364
🐛 fix layout for authentification pages (#269) 2023-06-06 16:07:25 +02:00
Stan Girard
c26990f3a3 feat(homepage): changed to get started 2023-06-06 15:56:13 +02:00
Zineb El Bachiri
fbb841393a
Fix/footer (#268)
* 🐛 fix footer for pages (not chat page)

* 💄 make footer sticky at bottom

* 💄 fix display of chat over footer

*  multiple lines chat message input
2023-06-06 13:59:39 +02:00
Stan Girard
000933f5e0
Revert "feat(ui): improve footer (#259)" (#263)
This reverts commit a16deb682d.
2023-06-05 23:02:33 +02:00
Mamadou DICKO
48f35f0941
refactor(header): improved code modularity (#262) 2023-06-05 22:13:17 +02:00
Mamadou DICKO
67ca4e33fa
feat(auth): redirect to upload page on login (#260) 2023-06-05 22:10:12 +02:00
Mamadou DICKO
a16deb682d
feat(ui): improve footer (#259) 2023-06-05 22:03:50 +02:00
Mamadou DICKO
4c6bcf77c6
feat(upload): implement parallel file upload (#258) 2023-06-05 20:38:46 +02:00
Mamadou DICKO
93fc44b32e
fix(crawl): update link (#257) 2023-06-05 20:28:56 +02:00