Commit Graph

155 Commits

Author SHA1 Message Date
Antoine Dewez
0d6c4dcaa5
feat(frontend): design menu (#2116) 2024-01-30 13:34:32 -08:00
Antoine Dewez
053ed0961d
feat(frontend): add sources to metadata (#2113)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-29 07:55:38 -08:00
Antoine Dewez
4e1e4937a1
fix(frontend): fix li markdown on chat (#2110)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-28 14:02:24 -08:00
Antoine Dewez
1d21897cc1
feat(frontend): chat page ui/ux design (#2106)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-28 01:07:57 -08:00
Antoine Dewez
7a66af55c5
fix(frontend): click on mention list on search bar in modal bug (#2098)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-26 17:43:58 -08:00
Antoine Dewez
2baa405991
feat(frontend): search modal - remove parameters and explore buttons (#2094)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-26 16:06:01 -08:00
Stan Girard
ef31cd9eb2 fix: 🐛 build
fixed unused
2024-01-25 22:08:49 -08:00
Antoine Dewez
67c71bbc1d
fix(frontend): clean related Brains useEffect (#2091)
# Description

- Select current Brain from brain_id instead of brain_name
- Avoid multiple calls of useEffect

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-25 18:57:14 -08:00
Stan Girard
6c5496f797
feat: 🎸 sources (#2092)
added metadata object a bit bigger

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-25 18:56:54 -08:00
王春跃
7c9fdd28ed
fix(streaming): Data Truncation Issue in useHandleStream Function (#2079)
**Description**
This PR introduces modifications to the useHandleStream function in the
useHandleStream.ts file, aiming to resolve the issue of data truncation
leading to incomplete display of Q&A on the front end. By optimizing
data handling logic and enhancing error management, this change ensures
the integrity of data streams and accurate display on the front end.

**Changes Made**
Introduced a variable incompleteData to store and process incomplete
data fragments.
Implemented logic to concatenate incomplete data with new chunks and
parse them once complete.
Added error handling to gracefully manage the parsing of incomplete data
and data strings.
Improved the handling of the first data chunk, enhancing the coherence
of data processing.
**Motivation and Context**
The primary motivation for these changes is to address the issue of
incomplete front-end display, caused by data stream truncation under
unstable network conditions. This optimization is intended to enhance
the stability and reliability of the application when handling large
volumes of real-time data streams, ensuring that the user interface
correctly displays complete Q&A information.

**Checklist before requesting a review**
 My code follows the style guidelines of this project.
 I have performed a self-review of my own code.
 I have commented in hard-to-understand areas of my code.
 I have made corresponding changes to the documentation (if applicable).
I have added tests that prove my fix is effective or that my feature
works (if applicable).
 New and existing unit tests pass locally with my changes.
Any dependent changes have been merged and published in downstream
modules (if applicable).
**Screenshots (if appropriate)**

![image](https://github.com/StanGirard/quivr/assets/80630709/fb4f4c7f-5541-418c-8d9a-2cdc8ea641b9)

Co-authored-by: qcloud <ubuntu@localhost.localdomain>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2024-01-25 18:03:08 -08:00
Antoine Dewez
4aebcc54aa
fix(frontend): clear message input on submit (#2087)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-25 17:10:29 -08:00
Antoine Dewez
66ffc6b9aa
feat(panel): added (#2088)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-25 12:44:24 -08:00
Antoine Dewez
b5e2d5ad9c
feat(frontend): Add Brain On Search Page (#2067)
# Description

- Implement Icon Component
- Implement TextButton Component
- Change Add Brain Button And Set it in the Search Page
- Fix Errors When sending empty message
- Change EsLint rules

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-22 17:37:45 -08:00
Antoine Dewez
f17e22ca49
fix(frontend): remove actions modal (#2054)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-21 22:36:06 -08:00
Antoine Dewez
e7fa4e28f1
fix(frontend): font size on chat feed (#2051)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-21 19:45:13 -08:00
Antoine Dewez
1cf0e1a164
feat(frontend): handle mentions in search bar (#2049)
# Description

- Handle mentions in search bar
- Add a Loader Icon component and use it in Search Bar
- Custom Placeholder possible on Editor Component
- Remove unused useEditorStateUpdater
- Fix Bug when Enter was typed

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-21 18:13:20 -08:00
Antoine Dewez
cdf5398ff5
fix(frontend): don't set default brain as current brain and remove change brain button (#2047)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-21 16:12:30 -08:00
Antoine Dewez
fe42c9a82d
fix(frontend): set chat messages only if needed (#2040)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-20 18:39:27 -08:00
Antoine Dewez
a99d23cf83
fix(frontend): don t load chat items on search (#2036)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-20 13:23:38 -08:00
Antoine Dewez
1dfd5dccca
fix(frontend): chat refreshed on first search request (#2033)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-20 12:04:03 -08:00
Stan Girard
577fbb4053
feat: adding search (#2031)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):

---------

Co-authored-by: Zewed <dewez.antoine2@gmail.com>
Co-authored-by: Antoine Dewez <44063631+Zewed@users.noreply.github.com>
2024-01-19 22:56:24 -08:00
Stan Girard
d0b8b797f6
feat(search): new way to interact with Quivr (#2026)
Co-authored-by: Zewed <dewez.antoine2@gmail.com>
Co-authored-by: Antoine Dewez <44063631+Zewed@users.noreply.github.com>
2024-01-19 20:34:30 -08:00
Zewed
775118b90f
fix(frontend): wrong placeholder message date (#2023)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-01-17 14:49:39 -08:00
Zewed
97efbc13ca
fix(frontend): remove right panel and reduce chat section width (#2012)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):

---------

Co-authored-by: Antoine Dewez <antoinedewez@MacBook-Pro-de-Antoine.local>
2024-01-13 14:52:21 -08:00
Mamadou DICKO
e885574d1e
feat: update brains library (#1903)
Issue: https://github.com/StanGirard/quivr/issues/1889

Demo:



https://github.com/StanGirard/quivr/assets/63923024/f9853b7e-e358-4c98-9281-4b0752a29632
2023-12-15 14:09:57 +01:00
Mamadou DICKO
e2c1a027b0
feat: add chat view new design (#1897)
Issue: https://github.com/StanGirard/quivr/issues/1888

- Add Spinner when history is loading
- Change chat messages fetching logic
- Add cha view new design

Demo:



https://github.com/StanGirard/quivr/assets/63923024/c4341ccf-bacd-4720-9aa1-127dd557a75c
2023-12-14 16:22:09 +01:00
Mamadou DICKO
cb4148fc50
feat: add default feed button label (#1892)
Demo: 



https://github.com/StanGirard/quivr/assets/63923024/c25e5892-be59-47ed-b1ea-8ce6bcc50214
2023-12-14 11:33:59 +01:00
Mamadou DICKO
bc2b012e47
fix: update chat history fetching logic (#1891)
Demo:



https://github.com/StanGirard/quivr/assets/63923024/fb2b5e83-5387-4198-afc5-4374281f0a32
2023-12-14 11:29:04 +01:00
Mamadou DICKO
9eb6120c6f
feat: allow user to feed brain from Actions bar (#1882)
Issue: https://github.com/StanGirard/quivr/issues/1881

Demo:



https://github.com/StanGirard/quivr/assets/63923024/348c7b17-84ca-46a3-89e3-3a00a621af69
2023-12-14 09:48:46 +01:00
Mamadou DICKO
3ed0ea15bb
feat: allow user to control left panel from Chat input (#1880)
Issue: https://github.com/StanGirard/quivr/issues/1866

- Use context to control sidebar open status
- Control sidebar through chat bar
- Persist sidebar status after page change

Demo:



https://github.com/StanGirard/quivr/assets/63923024/b9750198-e68d-47a7-b266-627a01586512
2023-12-13 20:56:07 +01:00
Mamadou DICKO
5f114c26d6
feat: add chat history to Actions modal (#1877)
Issue: https://github.com/StanGirard/quivr/issues/1865

Demo:


https://github.com/StanGirard/quivr/assets/63923024/e7a2fec9-0eac-4f92-9e99-a0bf3cec8e73
2023-12-13 15:02:49 +01:00
Mamadou DICKO
14537524df
feat: add action modal change brain button (#1876)
Issue: https://github.com/StanGirard/quivr/issues/1864

Demo:



https://github.com/StanGirard/quivr/assets/63923024/3160d56d-2200-4c96-bb80-25cf45510fcb
2023-12-13 11:55:15 +01:00
Mamadou DICKO
64953d1d77
feat: add selected brain tag and new discussion button to actions modal (#1873)
Issue: https://github.com/StanGirard/quivr/issues/1863

Demo:


https://github.com/StanGirard/quivr/assets/63923024/d1ca33de-6095-41a9-8d87-4ae6f841f5de
2023-12-13 09:21:30 +01:00
Mamadou DICKO
a30042f0fc
feat: add new actions modal (#1870)
Issue: https://github.com/StanGirard/quivr/issues/1861
- Update Quivr font
- Add Actions modal
- Update Popover component
- Move Chat config to Actions modal

Demo:


https://github.com/StanGirard/quivr/assets/63923024/df3ac138-6950-46fe-8e40-6276005c7ef1
2023-12-13 08:54:35 +01:00
Stan Girard
2c7f2cadcc Fix submodule path and update chat page styles 2023-12-12 23:26:31 +01:00
Mamadou DICKO
7aec3462d8
feat: add brains list overflow indicator (#1842)
Issue: https://github.com/StanGirard/quivr/issues/1835

Demo:



https://github.com/StanGirard/quivr/assets/63923024/efd0795e-dd4a-45d6-bc53-56f630e94cb6
2023-12-06 18:54:22 +01:00
mamadoudicko
ab58f95d48 feat: update onboarding questions answer 2023-12-06 15:37:30 +01:00
Jezla
0fb4587161
fix: text not clear in dark mode (#1804)
# Description
Text color was being overridden.

Removed `text-gray-800` in MessageContent.tsx.

## Checklist before requesting a review

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code

## Screenshots (if appropriate):
Before:

![287382835-049862f4-a5b3-4899-88fa-569edade0e66](https://github.com/StanGirard/quivr/assets/32915176/f81c30f1-a4ad-4e25-a2a8-cce705ec3966)

After:

![image](https://github.com/StanGirard/quivr/assets/32915176/472bf6ed-1739-40be-85e2-1ccda4515043)

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-12-05 00:36:48 +01:00
Mamadou DICKO
604b55a99e
feat: track response source usage (#1810)
Issue: https://github.com/StanGirard/quivr/issues/1774
2023-12-04 12:41:12 +01:00
Mamadou DICKO
8d173bdcc6
fix: update editor state update logic (#1809)
Issue: https://github.com/StanGirard/quivr/issues/1779

Demo:


https://github.com/StanGirard/quivr/assets/63923024/5c5ff2fb-7856-4600-ad0b-82561793af78
2023-12-04 12:04:18 +01:00
Mamadou DICKO
68da22aa1d
feat: update models logic (#1767)
- The frontend no longer sets a default model
- Either a model is chosen by the user, or it will be done by the
backend

Issue: https://github.com/StanGirard/quivr/issues/1747
2023-11-30 22:08:36 +01:00
Mamadou DICKO
13b174b202
feat: add optimistic update on new message (#1764)
Demo: 



https://github.com/StanGirard/quivr/assets/63923024/3aecb83f-3acd-46d4-900d-a042814c6638


Issue: https://github.com/StanGirard/quivr/issues/1753
2023-11-30 12:49:04 +01:00
Mamadou DICKO
00f11f93f2
fix: update mention suggestion filtering logic (#1763)
Issue: https://github.com/StanGirard/quivr/issues/1762

Demo: 


https://github.com/StanGirard/quivr/assets/63923024/c578b9f0-5b1d-4196-85cf-042a93acd9c6
2023-11-30 10:31:48 +01:00
Mamadou DICKO
77c6ef6d98
feat(chatInput): use tiptap editor (#1752)
Issue:  

- https://github.com/StanGirard/quivr/issues/1700
- https://github.com/StanGirard/quivr/issues/1722

Follow-up: 

- https://github.com/StanGirard/quivr/issues/1753

Demo: 



https://github.com/StanGirard/quivr/assets/63923024/1e2f8ed9-2a08-48fa-ac19-60910feb4f8d
2023-11-29 17:59:23 +01:00
Stan Girard
5b5faf03eb feat: 🎸 logs
display logs in message
2023-11-24 23:14:18 +01:00
Mamadou DICKO
65e656f04e
feat: add api brain steps log (backend) (#1705)
Issue https://github.com/StanGirard/quivr/issues/1697
2023-11-24 14:58:33 +01:00
Mamadou DICKO
d9a72b368a
feat: allow updating api brain definition (#1682)
Issue: 
https://github.com/StanGirard/quivr/issues/1683


Demo:


https://github.com/StanGirard/quivr/assets/63923024/67cf2a0f-4cfe-420c-9181-baffaa584c78




https://github.com/StanGirard/quivr/assets/63923024/eee57598-1520-4c11-bd64-887869878f46
2023-11-22 11:15:14 +01:00
Mamadou DICKO
09fe076134
feat(feedBrain): add manage button (#1674)
Demo:

![Screenshot 2023-11-20 at 17 57
45](https://github.com/StanGirard/quivr/assets/63923024/abdd89ae-7c0c-421e-b716-9d7d3eb98c1f)
![Screenshot 2023-11-20 at 17 57
32](https://github.com/StanGirard/quivr/assets/63923024/3ef096ee-668b-4e25-85eb-60aa60e56038)
2023-11-21 09:33:07 +01:00
Mamadou DICKO
d902e78ffa
feat(apiBrain): improve ux (#1672)
Demo:


https://github.com/StanGirard/quivr/assets/63923024/71efe888-285a-41ed-aa89-44e5f0b99162
2023-11-20 18:22:06 +01:00
Mamadou DICKO
3da64c0b0e
feat: update brain modal in chat input (#1668)
Issue: https://github.com/StanGirard/quivr/issues/1571

Demo:



https://github.com/StanGirard/quivr/assets/63923024/e7a6118e-29f8-44aa-af4b-0ea1b8013a33
2023-11-20 18:04:26 +01:00