Commit Graph

1776 Commits

Author SHA1 Message Date
Stan Girard
47c6e24bf1
fix: integrations (#2642)
This pull request adds support for recursive folder retrieval in the
`get_files_folder_user_sync` method. Previously, the method only
retrieved files from the specified folder, but now it can also retrieve
files from all subfolders recursively. This enhancement improves the
functionality and flexibility of the method, allowing for more
comprehensive file retrieval in sync operations.
2024-06-08 02:55:11 -07:00
Stan Girard
ca6341372d
chore: Set default value for "last_synced" column in "syncs_active" table to '2024-06-01 15:30:25+00' (#2638)
# 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-06-06 10:11:10 -07:00
Stan Girard
31d3cce97f
fix: sync creation fixed (#2637)
This pull request includes updates to the `docker-compose.dev.yml` and
`Dockerfile.dev` files. The changes aim to improve performance and fix
bugs. The updates include:

- Removing unnecessary workers configuration in the
`docker-compose.dev.yml` file.

- Updating the base image in the `Dockerfile.dev` to use a slim version.

- Adjusting the schedule for a specific task in the code.

- Modifying the time interval for retrieving active syncs.

- Changing the loader class for processing PowerPoint files.

- Refactoring the file existence check logic.

- Adding debug logs for file existence check and file removal.

- Adjusting the file synchronization logic.

These changes are intended to enhance the performance and stability of
the application.
2024-06-06 10:06:21 -07:00
Stan Girard
6ea4a4513b
feat: Add extra_hosts configuration to docker-compose.dev.yml (#2635)
# 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: Stan Girard <stan@quivr.app>
2024-06-05 13:51:18 -07:00
Stan Girard
e2f25cf1c9
chore(main): release 0.0.259 (#2634)
🤖 I have created a release *beep* *boop*
---


## 0.0.259 (2024-06-04)

## What's Changed
* feat(upload): async improved by @AmineDiro in
https://github.com/QuivrHQ/quivr/pull/2544

## New Contributors
* @AmineDiro made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2544

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.258...v0.0.259

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-05 05:04:54 -07:00
AmineDiro
675885c762
feat(upload): async improved (#2544)
# Description
Hey,

Here's a breakdown of what I've done:

- Reducing the number of opened fd and memory footprint: Previously, for
each uploaded file, we were opening a temporary NamedTemporaryFile to
write existing content read from Supabase. However, due to the
dependency on `langchain` loader classes, we couldn't use memory buffers
for the loaders. Now, with the changes made, we only open a single
temporary file for each `process_file_and_notify`, cutting down on
excessive file opening, read syscalls, and memory buffer usage. This
could cause stability issues when ingesting and processing large volumes
of documents. Unfortunately, there is still reopening of temporary files
in some code paths but this can be improved further in later work.
- Removing `UploadFile` class from File: The `UploadFile` ( a FastAPI
abstraction over a SpooledTemporaryFile for multipart upload) was
redundant in our `File` setup since we already downloaded the file from
remote storage and read it into memory + wrote the file into a temp
file. By removing this abstraction, we streamline our code and eliminate
unnecessary complexity.
- `async` function Adjustments: I've removed the async labeling from
functions where it wasn't truly asynchronous. For instance, calling
`filter_file` for processing files isn't genuinely async, ass async file
reading isn't actually asynchronous—it [uses a threadpool for reading
the
file](9f16bf5c25/starlette/datastructures.py (L458))
. Given that we're already leveraging `celery` for parallelism (one
worker per core), we need to ensure that reading and processing occur in
the same thread, or at least minimize thread spawning. Additionally,
since the rest of the code isn't inherently asynchronous, our bottleneck
lies in CPU operations rather than asynchronous processing.

These changes aim to improve performance and streamline our codebase. 
Let me know if you have any questions or suggestions for further
improvements!

## 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
- [x] I have ideally added tests that prove my fix is effective or that
my feature works

---------

Signed-off-by: aminediro <aminediro@github.com>
Co-authored-by: aminediro <aminediro@github.com>
Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2024-06-04 06:29:27 -07:00
Stan Girard
a8e20c5ee3
chore(main): release 0.0.258 (#2625)
🤖 I have created a release *beep* *boop*
---


## 0.0.258 (2024-05-29)

## What's Changed
* feat: Update QuivrRAG and run_evaluation.py files by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2615
* fix: modify thought prompt by @chloedia in
https://github.com/QuivrHQ/quivr/pull/2626
* feat(llamaparse): Update parsing instructions in common.py by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2627
* feat(sync): retrieve user email used for the connection by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2628
* fix: Refactor conversational_qa_chain initialization in
KnowledgeBrainQA by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2629


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.257...v0.0.258

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-02 02:46:19 -07:00
Stan Girard
41dec746a7
fix: Refactor conversational_qa_chain initialization in KnowledgeBrainQA (#2629)
# 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-05-29 13:31:25 -07:00
Stan Girard
043bcd17ce
feat(sync): retrieve user email used for the connection (#2628)
# 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-05-29 06:39:13 -07:00
Stan Girard
a89db0cd5a
feat(llamaparse): Update parsing instructions in common.py (#2627)
This pull request updates the parsing instructions in the `common.py`
file for the `llamaparse` feature. The previous parsing instruction for
transforming checkboxes into text has been modified to also extract
tables and transform them into key-value pairs. Additionally, the
instruction now allows for duplicate keys if needed. The example
instructions have also been updated to provide clearer examples for both
tables and checkboxes.
2024-05-29 02:25:15 -07:00
Chloé Daems
da9a3c1897
fix: modify thought prompt (#2626)
# Description

Change the prompt of the thoughts feature to have more steps.

## 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-05-28 08:31:56 -07:00
Stan Girard
ff4ecb86e5
feat: Update QuivrRAG and run_evaluation.py files (#2615)
# 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: chloedia <chloedaems0@gmail.com>
2024-05-28 07:47:31 -07:00
Stan Girard
e944a621e7
chore(main): release 0.0.257 (#2622)
🤖 I have created a release *beep* *boop*
---


## 0.0.257 (2024-05-28)

## What's Changed
* Add Privacy & Compliance Documentation by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2620
* docs(security): added compliance by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2621
* fix(frontend): upgrade button on user page by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2623
* feat(frontend): Add ThoughtsButton component for displaying thoughts
by @StanGirard in https://github.com/QuivrHQ/quivr/pull/2624


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.256...v0.0.257

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-28 05:20:08 -07:00
Stan Girard
e6531f1313
feat(frontend): Add ThoughtsButton component for displaying thoughts (#2624)
This pull request adds a new component called ThoughtsButton for
displaying thoughts in the chat messages. The ThoughtsButton component
is used to show a tooltip with the thoughts text when the user hovers
over the button.
2024-05-28 04:56:00 -07:00
Antoine Dewez
3be1f09893
fix(frontend): upgrade button on user page (#2623)
# 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-05-28 12:38:09 +02:00
Stan Girard
d3962ae819
docs(security): added compliance (#2621)
# 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-05-27 06:59:17 -07:00
Stan Girard
e1a141a3c7
Add Privacy & Compliance Documentation (#2620)
Adds a new "Privacy & Compliance" page to the Quivr documentation.

- **Introduces a comprehensive overview** of Quivr's commitment to
privacy and compliance, including the open-source security model,
responsible telemetry use, row-level policy enforcement, local data
handling, and LLM compatibility.
- **Details the open-source security model**, emphasizing transparency
and community-driven security enhancements.
- **Explains the responsible use of telemetry**, highlighting minimal
data collection, anonymization, secure storage, and opt-out options.
- **Describes row-level policy enforcement** for database security,
ensuring controlled data access.
- **Clarifies local data handling**, ensuring all data remains local
with no external data transfer without user consent.
- **Highlights compatibility with any LLM**, including local server-run
models, offering flexibility for user needs.
- **Includes information on SOC2 compliance** through partnership with
Porter & Oneleet, aiming for compliance within 90 days for managed
instances.


---

For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/QuivrHQ/quivr?shareId=e9ecbf64-d06d-45b6-ab73-c04b9ed7916d).
2024-05-27 06:16:30 -07:00
Stan Girard
5aff3c4f31
chore(main): release 0.0.256 (#2619)
🤖 I have created a release *beep* *boop*
---


## 0.0.256 (2024-05-26)

## What's Changed
* feat(rag): follow-up questions and thoughts with spanish fix by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2618


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.255...v0.0.256

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-26 09:05:41 -07:00
Stan Girard
877e8500bb
feat(rag): follow-up questions and thoughts with spanish fix (#2618)
This pull request refactors the generate_answer and generate_stream
functions in order to improve code readability and maintainability. It
also adds new fields to the cited_answer model and updates the system
message template.
2024-05-26 08:43:38 -07:00
Stan Girard
c06500086c
chore(main): release 0.0.255 (#2602)
🤖 I have created a release *beep* *boop*
---


## 0.0.255 (2024-05-24)

## What's Changed
* feat: Add Google Drive & Sharepoint sync in backend by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2592
* Revert "feat: Add Google Drive & Sharepoint sync in backend" by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2603
* Feat/auth-playground by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2605
* feat: add init to create packages by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2606
* Add additional modules to celery.autodiscover_tasks() by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2607
* Feat/celery import by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2608
* feat: self-reflect brain by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2610
* feat: ragas improved testing by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2611
* fix(frontend): less agressive colors by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2612
* fix(frontend): important buttons by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2613
* fix(frontend): fix white colors by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2614
* fix(frontend): using dark mode in tiptap by @ramonzaca in
https://github.com/QuivrHQ/quivr/pull/2616

## New Contributors
* @ramonzaca made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2616

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.254...v0.0.255

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-24 11:11:59 -07:00
Agustín Dye
a266066d25
fix(frontend): using dark mode in tiptap (#2616)
# Description

Applying dark mode to icons in tiptap.

## Checklist before requesting a review

Please delete options that are not relevant.

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

## Screenshots:
<img width="906" alt="image"
src="https://github.com/QuivrHQ/quivr/assets/33584382/c8d86fa2-0f58-4c44-82d2-5162a5e025cd">
2024-05-24 10:27:47 +02:00
Antoine Dewez
1a8303ce2a
fix(frontend): fix white colors (#2614)
# 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-05-23 17:43:47 +02:00
Antoine Dewez
ed325c1b58
fix(frontend): important buttons (#2613)
# 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-05-23 17:26:23 +02:00
Antoine Dewez
802a657cb6
fix(frontend): less agressive colors (#2612)
# 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-05-23 17:13:21 +02:00
Stan Girard
b1fbbc8b02
feat: ragas improved testing (#2611)
# 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-05-23 01:36:10 -07:00
Stan Girard
c287fceb5b
feat: self-reflect brain (#2610)
This pull request adds the SelfBrain integration to the list of
available brain integrations.
2024-05-22 08:51:15 -07:00
Stan Girard
287cbb3347
Feat/celery import (#2608)
# 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-05-21 14:36:51 -07:00
Stan Girard
5c28f16a09
Add additional modules to celery.autodiscover_tasks() (#2607)
# 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-05-21 14:13:25 -07:00
Stan Girard
b06af57a1e
feat: add init to create packages (#2606)
# 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-05-21 13:42:07 -07:00
Stan Girard
d41a0b4be4
Feat/auth-playground (#2605)
# 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-05-21 13:20:35 -07:00
Stan Girard
848aed46ea
Revert "feat: Add Google Drive & Sharepoint sync in backend" (#2603)
Reverts QuivrHQ/quivr#2592
2024-05-21 08:37:08 -07:00
Stan Girard
8303aca9d9
feat: Add Google Drive & Sharepoint sync in backend (#2592)
# 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-05-21 07:53:04 -07:00
Stan Girard
da2c2e9e94
chore(main): release 0.0.254 (#2601)
🤖 I have created a release *beep* *boop*
---


## 0.0.254 (2024-05-21)

## What's Changed
* fix: sender email address in resend_invitation_email.py by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2600


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.253...v0.0.254

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-21 03:28:13 -07:00
Stan Girard
d84b8e79d6
fix: sender email address in resend_invitation_email.py (#2600)
This pull request fixes the sender email address in the
`resend_invitation_email` function in the `resend_invitation_email.py`
file. The `from` field has been changed to `sender` to ensure that the
correct email address is used when sending the invitation email.
2024-05-21 03:27:05 -07:00
Stan Girard
9f2a7ac80b
chore(main): release 0.0.253 (#2590)
🤖 I have created a release *beep* *boop*
---


## 0.0.253 (2024-05-14)

## What's Changed
* fix(frontend): Implement persistent dark mode setting and & Implement
persistent dark mode setting by @elazarnaaman in
https://github.com/QuivrHQ/quivr/pull/2423
* fix(frontend): hover effect on profile Button by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2587
* fix(frontend): user invite UI on Mobile by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2586
* feat: Update ChatLiteLLM model and add RLS optimization for
notifications by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2591

## New Contributors
* @elazarnaaman made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2423

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.252...v0.0.253

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-21 02:37:00 -07:00
Stan Girard
1b60f59ad7
feat: Update ChatLiteLLM model and add RLS optimization for notifications (#2591)
This pull request updates the ChatLiteLLM model to "gpt-4o" and adds a
row-level security (RLS) optimization for notifications. It also
includes a new SQL script to drop and create a policy for allowing user
access to all notifications.
2024-05-14 01:43:01 -07:00
Antoine Dewez
59124ba0d4
fix(frontend): user invite UI on Mobile (#2586)
# 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-05-14 09:48:48 +02:00
Antoine Dewez
4d457a9010
fix(frontend): hover effect on profile Button (#2587)
# 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-05-14 09:48:40 +02:00
Elazar Naaman
c5157186e0
fix(frontend): Implement persistent dark mode setting and & Implement persistent dark mode setting (#2423)
# 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.

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

## Screenshots (if appropriate):


<!--
ELLIPSIS_HIDDEN
-->


----

| <a href="https://ellipsis.dev" target="_blank"><img
src="https://avatars.githubusercontent.com/u/80834858?s=400&u=31e596315b0d8f7465b3ee670f25cea677299c96&v=4"
alt="Ellipsis" width="30px" height="30px"/></a> | 🚀 This PR
description was created by [Ellipsis](https://www.ellipsis.dev) for
commit bb45566f8a. |
|--------|--------|

### Summary:
This PR updates the `useLanguageHook` and `UserSettingsProvider`
functions to use the `shortName` of the selected language when changing
the language and to retrieve and store the dark mode setting from and to
local storage, respectively.

**Key points**:
- Updated `useLanguageHook` in
`/frontend/app/user/components/LanguageSelect/hooks/useLanguageHook.ts`
to use `shortName` of selected language when changing language.
- Updated `UserSettingsProvider` in
`/frontend/lib/context/UserSettingsProvider/User-settings.provider.tsx`
to retrieve dark mode setting from local storage.
- Updated listener for `change` event on `mediaQueryList` in
`UserSettingsProvider` to store updated dark mode setting in local
storage.


----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)



<!--
ELLIPSIS_HIDDEN
-->

---------

Co-authored-by: Zewed <dewez.antoine2@gmail.com>
2024-05-14 09:30:24 +02:00
Stan Girard
257a3127f9
chore(main): release 0.0.252 (#2581)
🤖 I have created a release *beep* *boop*
---


## 0.0.252 (2024-05-13)

## What's Changed
* docs: Update GPT4 documentation with available tools and use cases by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2580
* docs: Add docstrings to integration brains by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2582
* fix: Update import statements for OllamaEmbeddings by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2584
* feat: Add support for gpt-4o model by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2589


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.251...v0.0.252

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-13 14:39:33 -07:00
Stan Girard
cd927ebdcf
feat: Add support for gpt-4o model (#2589)
This pull request adds support for the gpt-4o model to the existing
codebase. It includes changes to the BrainConfig, openAiFreeModels,
defineMaxTokens, model_compatible_with_function_calling, create_graph,
main, and process_assistant functions.
2024-05-13 14:07:41 -07:00
Stan Girard
3086891cb7
fix: Update import statements for OllamaEmbeddings (#2584)
This pull request fixes the import statements for OllamaEmbeddings in
multiple files. The import statements are updated to use the correct
package name "langchain_community.embeddings" instead of
"langchain.embeddings.ollama". This ensures that the code can be
compiled and executed without any import errors.
2024-05-11 11:50:13 -07:00
Stan Girard
a1b74d00f5 Update BRAVE_SEARCH_API_KEY in .env.example 2024-05-11 16:56:54 +02:00
Stan Girard
2f3cbb67d2 Update api_key default value in WebSearchTool 2024-05-10 23:49:08 +02:00
Stan Girard
b60a31e561
docs: Add docstrings to integration brains (#2582)
This pull request adds comprehensive docstrings to the Brain classes
within the `backend/modules/brain/integrations` directory, enhancing
code documentation and readability. The changes include:

- **BigBrain (`Big/Brain.py`)**: Adds a class-level docstring explaining
the purpose and functionality of the BigBrain class, along with
method-level docstrings detailing the operations performed by each
method.
- **ClaudeBrain (`Claude/Brain.py`)**: Introduces a class-level
docstring that describes the ClaudeBrain class's integration with the
Claude model for conversational AI capabilities, and method-level
docstrings that clarify the purpose of each method.
- **GPT4Brain (`GPT4/Brain.py`)**: Updates include a detailed
class-level docstring outlining the GPT4Brain's integration with GPT-4
for real-time answers and tool support, along with method-level
docstrings explaining the functionality of each method.
- **NotionBrain (`Notion/Brain.py`)**: Adds a class-level docstring that
describes the NotionBrain's role in leveraging Notion data for
knowledge-based responses.
- **ProxyBrain (`Proxy/Brain.py`)**: Incorporates a class-level
docstring explaining the ProxyBrain's function as a dynamic language
model selector and method-level docstrings detailing the operations of
each method.

These additions ensure that each Brain class and its methods are
well-documented, providing clear insights into their purposes and
functionalities.


---

For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/QuivrHQ/quivr?shareId=b4e301ad-828e-4424-95ec-6e378d5d3849).
2024-05-10 14:46:55 -07:00
Stan Girard
bbcca2a8fe
docs: Update GPT4 documentation with available tools and use cases (#2580)
Updates the GPT-4 documentation and the `GPT4Brain` class to include
detailed information about the tools available for GPT4Brain and their
use cases.

- **Documentation (`docs/brains/gpt4.mdx`):**
- Adds a new section titled "Tools Available for GPT4Brain" that
describes specific tools: WebSearchTool, ImageGeneratorTool,
URLReaderTool, and EmailSenderTool.
- Provides use cases for each tool, demonstrating how they can be
utilized within GPT4Brain for various scenarios, such as generating
images, reading content from URLs, and sending emails.

- **Code (`backend/modules/brain/integrations/GPT4/Brain.py`):**
- Updates the class documentation to include information about the tools
available for GPT4Brain and outlines use cases for WebSearchTool,
ImageGeneratorTool, URLReaderTool, and EmailSenderTool.
- Maintains the existing functionality of the `GPT4Brain` class,
ensuring compatibility with the newly documented tools and use cases.


---

For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/QuivrHQ/quivr?shareId=2c2c1666-e5fb-4a06-bb08-ca967f4fe276).
2024-05-10 09:33:21 -07:00
Stan Girard
28efaf5658
chore(main): release 0.0.251 (#2578)
🤖 I have created a release *beep* *boop*
---


## 0.0.251 (2024-05-10)

## What's Changed
* feat(tool): Add URLReaderTool by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2577
* feat(email): Add email sender tool and update image generator tool by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2579


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.250...v0.0.251

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-10 08:44:02 -07:00
Stan Girard
01c6e7b3bb
feat(email): Add email sender tool and update image generator tool (#2579)
This pull request adds a new email sender tool and updates the image
generator tool.
2024-05-10 07:56:51 -07:00
Stan Girard
105a2b8ecc
feat(tool): Add URLReaderTool (#2577)
This pull request adds the URLReaderTool to the list of tools in the
GPT4Brain class. The URLReaderTool allows for reading the content of a
URL.
2024-05-10 05:03:21 -07:00
Stan Girard
62f9b5bed2
chore(main): release 0.0.250 (#2567)
🤖 I have created a release *beep* *boop*
---


## 0.0.250 (2024-05-10)

## What's Changed
* feat(gpt4): Add search functionality by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2566
* [ImgBot] Optimize images by @imgbot in
https://github.com/QuivrHQ/quivr/pull/2568
* feat(gpt4): image generation by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2569
* fix(front): Add NEXT_PUBLIC_AUTH_MODES to .env.example by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2570
* fix: NEXT_PUBLIC_AUTH_MODES in docker-compose.yml by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2572
* docs: Add Supabase configuration documentation by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2574
* docs(gpt4): Update GPT-4 Documentation by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2573
* chore: tools by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2575
* feat(brave-search): Update GPT4Brain tools and add WebSearchTool by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2576

## New Contributors
* @imgbot made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2568

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.249...v0.0.250

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-05-10 04:43:14 -07:00