Commit Graph

476 Commits

Author SHA1 Message Date
Noe
303ba72028
feat: Introduce repository pattern to prepare adding other database providers (#646)
* add sqlalchemy models

* add neon settings

* add insert brain

* abstract supabase from Brain class

* abstract supabase from Brain class

* abstract supabase from /models

* update Database to Repository

* update neon_tables to pg_tables

* update chat, api-key and message

* update vector class

* update settings

* update env vars for test

* Update backend-tests.yml

* fix test

* fix fetch_user_requests_count()

* fix fetch_user_requests_count()

* fix increment_user_request_count

* fix increment_user_request_count

* fix asset upload_response message

* fix pyright

* fix brain_subscription

* fix brain_subscription

* fix brain_subscription

* fix get user request stat

* update create_brain_user

* add delete brain vector and user

* add delete brain vector and user

* correctly call function

---------

Co-authored-by: Noé Pion <noe.pion@onfido.com>
Co-authored-by: raoufchebri <raouf@chebri.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-08-01 23:03:47 +02:00
Stan Girard
d6ebb00f86
chore(main): release 0.0.49 (#820) 2023-08-01 17:28:50 +02:00
Mamadou DICKO
d018ab6a93
feat: add chat config modal (#807)
* feat: add chat config modal

* feat: save chat config in localStorage

* feat: remove <ConfigPage/>

* feat: overwrite chat config with brain
2023-08-01 16:28:38 +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
130a3e0938 docs(readme): local llm removal 2023-08-01 14:48:29 +02:00
Stan Girard
15ebef8297
chore(main): release 0.0.48 (#819) 2023-08-01 13:58:40 +02:00
Stan Girard
c01433c841 fix(openai): user key now used for llm model 2023-08-01 13:46:53 +02:00
Stan Girard
33481eb985
chore(main): release 0.0.47 (#806) 2023-08-01 10:36:06 +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
db40f3cccd
feat(llm): removing all llms to prepare for genoss (#804)
* feat(routes): removed all except openai

* feat(deadcode): removed some deadcode and summarization feature that wasn't used

* feat(streaming): removed privateGPT from it

* chore(requirements): increased version
2023-07-31 16:01:34 +02:00
Stan Girard
1a499f494d
chore(main): release 0.0.46 (#791) 2023-07-31 10:42:58 +02:00
Stan Girard
df42cd9959 style: 💄 imports
fixed order
2023-07-31 09:18:18 +02:00
MiroStW
a609c01aa8
fix: udpate migration script doc (#793)
Co-authored-by: miro.wilms <miro.wilms@aoe.com>
2023-07-31 09:06:13 +02:00
Hans David Viloria
7513bea053
docs: Added fixed roadmap link as well (#733)
* Fix broken link to contributors 

Redirected to https://github.com/stangirard/quivr/graphs/contributors through a misspell

* Fix roadmap link

Just simply replacing the old roadmap link that redirects to brain.quivr.app and instead fully redirect it to the full roadmap link at https://brain.quivr.app/docs/roadmap :)
2023-07-31 09:04:42 +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
Stan Girard
56f254a050 feat(aws): increased size 2023-07-27 15:41:35 +02:00
Stan Girard
9809ef4119 feat(aws): increased numer of replicas to 10 2023-07-27 14:56:16 +02:00
Stan Girard
bada136312
chore(main): release 0.0.45 (#790) 2023-07-27 11:05:41 +02:00
Stan Girard
2fcff0beda
fix(release-please): use personal token to be able to trigger release (#789)
* ci(check-pr-title): made prettier

* fix(release-please): use personal token to be able to trigger release
2023-07-27 11:02:47 +02:00
github-actions[bot]
f5c14099d7
chore(main): release 0.0.44 (#787)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 10:51:34 +02:00
Stan Girard
b11b2d8658 feat(pr-title): added pr-title checlk 2023-07-27 10:45:58 +02:00
Stan Girard
16114b2c52 fix(release-please): fixed actions 2023-07-27 10:42:25 +02:00
github-actions[bot]
a9bff9e3f0
chore(main): release 0.0.43 (#776)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 10:23:00 +02:00
Ansh
f146adb4d5
Update intro.md (#772)
Updated Scripts GIthub Link
On line 96,109,107

https://github.com/stangirard/quivr/scripts  -->  https://github.com/stangirard/quivr/tree/main/scripts
2023-07-26 18:13:51 +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
Stan Girard
e6ba9e80f4 feat(workflow): added release please 2023-07-26 10:58:24 +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
25f859a31e
fix: make max_brain_size overwritable (#751) 2023-07-24 14:17:33 +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
Braden Mars
914689957d
fix(backend): FastAPI docs broken due to missing schema for NullableUUID (#739)
Just updates `NullableUUID` to extend from `UUID`. This lets FastAPI infer the correct field schema and resolves the /docs and /redocs endpoint failing to render

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
2023-07-23 11:14:42 +02:00
Huxley Mc
97fd239980
fix: backend env path in install helper and docs (#737) 2023-07-23 09:29:44 +02:00
Hans David Viloria
117395d7fb
Fix broken link to contributors (#731) 2023-07-22 13:01:15 +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
Braden Mars
b3455d3686
fix(parsers.github): AttributeError when crawling github repository. (#667)
When attempting to add new files from a crawled github repository, quivr will always fail due to a reference to a non-existant `File.add_files_to_brain` method.

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
2023-07-20 16:13:25 +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
cc1d98e9b5
📝 add migrations script to get_started doc (#698)
* 📝 add BACKEND_URL  to documentation

* 📝 add migrations script to get_started doc

* 📝 add BACKEND_URL  to documentation

* 📝 add Resend API to documentation

* 🔥 remove broken link in get_started doc
2023-07-19 15:58:00 +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