Commit Graph

1809 Commits

Author SHA1 Message Date
Antoine Dewez
b1684312eb
fix(frontend): next step impossible if no knowledge when creating brain if no onboarded (#2688)
# 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-18 17:40:58 +02:00
Antoine Dewez
faaf9b6dba
feat(frontend): new chat interface (#2687)
# 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-18 17:37:28 +02:00
Antoine Dewez
b464ed3660
feat(frontend): rephrase from Url to from Website's page (#2683)
# 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-17 13:40:07 +02:00
Antoine Dewez
bfec25be0e
feat(frontend): set from connections by default in knowledge to feed (#2680)
# 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-17 11:43:27 +02:00
Antoine Dewez
a22fa9bb55
fix(frontend): rephrase unpaid to free (#2679)
# 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-17 11:39:27 +02:00
Stan Girard
e52dbf639a
chore(main): release 0.0.267 (#2676)
🤖 I have created a release *beep* *boop*
---


## 0.0.267 (2024-06-14)

## What's Changed
* fix(frontend): scroll modal payment by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2675


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.266...v0.0.267

---
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-14 02:32:51 -07:00
Antoine Dewez
8d3872eaeb
fix(frontend): scroll modal payment (#2675)
# 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-14 11:12:54 +02:00
Stan Girard
25b4485b2e
chore(main): release 0.0.266 (#2674)
🤖 I have created a release *beep* *boop*
---


## 0.0.266 (2024-06-13)

## What's Changed
* fix: Add logic to filter active subscriptions in
check_if_is_premium_user function by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2673


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.265...v0.0.266

---
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-13 13:49:03 -07:00
Stan Girard
f546fd4d54
fix: Add logic to filter active subscriptions in check_if_is_premium_user function (#2673)
# 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-13 13:45:01 -07:00
Stan Girard
7b3d5d81dd
chore(main): release 0.0.265 (#2671)
🤖 I have created a release *beep* *boop*
---


## 0.0.265 (2024-06-13)

## What's Changed
* feat: Add timezone conversion for premium user check by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2670


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.264...v0.0.265

---
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-13 01:57:49 -07:00
Stan Girard
52d121b96f
feat: Add timezone conversion for premium user check (#2670)
This commit adds timezone conversion to the premium user check in the
`check_if_is_premium_user` function. It imports the `pytz` library and
retrieves the current time in the "Europe/Paris" timezone. This ensures
that the comparison of the current period end with the current time is
accurate, taking into account the correct timezone. The Paris time is
logged for debugging purposes.

Co-authored-by: Stan Girard <stan@quivr.app>

# 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-13 01:54:26 -07:00
Stan Girard
092ac43c0e
chore(main): release 0.0.264 (#2666)
🤖 I have created a release *beep* *boop*
---


## 0.0.264 (2024-06-13)

## What's Changed
* fix: name passed in sync authorize by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2665
* feat: Add premium user check in celery task by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2668


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.263...v0.0.264

---
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-13 01:38:33 -07:00
Stan Girard
ec58935d9b
feat: Add premium user check in celery task (#2668)
"This pull request adds a new celery task called
`check_if_is_premium_user` that checks if a user is a premium user based
on their subscription status. The task retrieves the list of active
subscriptions and the list of customers from the Supabase database. It
then matches the subscriptions with the customers and updates the user
settings with the corresponding premium features if a match is found. If
a user is not found or their subscription is expired, the user settings
are deleted. This task will run periodically to keep the user settings
up to date with the subscription status.

---------

Co-authored-by: Stan Girard <stan@quivr.app>
2024-06-13 01:14:12 -07:00
Stan Girard
6bd1a5b334
fix: name passed in sync authorize (#2665)
# 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-12 05:20:10 -07:00
Stan Girard
e2f7ad1a45
chore(main): release 0.0.263 (#2664)
🤖 I have created a release *beep* *boop*
---


## 0.0.263 (2024-06-12)

## What's Changed
* fix: Add error handling for syncing in tasks.py by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2663


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.262...v0.0.263

---
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-12 02:46:23 -07:00
Stan Girard
83f06dc5d2
fix: Add error handling for syncing in tasks.py (#2663)
This pull request adds error handling for the syncing process in the
tasks.py file. Previously, if an error occurred during the syncing
process, the program would crash. With this change, any exceptions that
occur during syncing will be caught and logged, allowing the program to
continue running. This improves the stability and reliability of the
syncing functionality.

Co-authored-by: Stan Girard <stan@quivr.app>
2024-06-12 02:42:16 -07:00
Stan Girard
6f95a2d51c
chore(main): release 0.0.262 (#2662)
🤖 I have created a release *beep* *boop*
---


## 0.0.262 (2024-06-12)

## What's Changed
* Update README.md by @ferozemohideen in
https://github.com/QuivrHQ/quivr/pull/2660
* feat: Normalize file names in sync module by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2661


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.261...v0.0.262

---
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-12 02:19:55 -07:00
Stan Girard
8e5af2c8c5
feat: Normalize file names in sync module (#2661)
This commit adds a new utility function `remove_special_characters` to
the `normalize.py` module in the `sync/utils` directory. The function
removes special characters from file names by normalizing the input
string and using regular expressions to remove non-alphanumeric
characters.

The function is then used in the `list_files.py` module in the
`sync/utils` directory to normalize the names of files retrieved from
Google Drive and Azure Drive. This ensures that the file names are free
of special characters, improving consistency and compatibility with
other parts of the system.

Co-authored-by: Stan Girard <stan@quivr.app>
2024-06-12 02:08:48 -07:00
Feroze Mohideen
a04ceea899
Update README.md (#2660) 2024-06-11 16:15:03 +02:00
Stan Girard
58f88b751b
chore(main): release 0.0.261 (#2659)
🤖 I have created a release *beep* *boop*
---


## 0.0.261 (2024-06-11)

## What's Changed
* feat: Update Google authorization URL with prompt for consent by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2658


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.260...v0.0.261

---
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-11 04:43:03 -07:00
Stan Girard
92ac7ae493
feat: Update Google authorization URL with prompt for consent (#2658)
The code changes in `google_sync_routes.py` update the authorization URL
for Google authentication. The `prompt` parameter is added with the
value "consent" to ensure that users are prompted to grant consent when
authorizing the application. This improves the user experience and
ensures that the necessary permissions are obtained.

# 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-11 04:36:42 -07:00
Stan Girard
5908dfd725
chore(main): release 0.0.260 (#2636)
🤖 I have created a release *beep* *boop*
---


## 0.0.260 (2024-06-11)

## What's Changed
* feat: Add extra_hosts configuration to docker-compose.dev.yml by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2635
* fix: sync creation fixed by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2637
* chore: Set default value for "last_synced" column in "syncs_active"
table to '2024-06-01 15:30:25+00' by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2638
* fix: integrations by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2642
* feat(frontend): sharepoint and gdrive integration by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2643
* fix(frontend): display bug on add knowledge by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2644
* fix: files_metadata by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2645
* fix(google): auth is now in state by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2647
* fix(frontend): add brain modal integration doestn t work by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2649
* fix(frontend): tooltip on folder line by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2650
* feat: telemetry improved by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2651
* feat: Add force_sync option to SyncsActiveUpdateInput by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2652
* Update license to include enterprise features by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2653
* fix(frontend): onboarding bug by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2655
* Update README.md by @ferozemohideen in
https://github.com/QuivrHQ/quivr/pull/2656

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

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

---
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-11 02:03:00 -07:00
Feroze Mohideen
f8f68c0b30
Update README.md (#2656)
# 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):

View rich diff
2024-06-11 02:01:52 -07:00
Antoine Dewez
e631fa897a
fix(frontend): onboarding bug (#2655)
# 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-10 15:37:38 -07:00
Stan Girard
9d1b2911a5
Update license to include enterprise features (#2653)
This pull request updates the license to include enterprise features.
The license now specifies that certain folders or files within the
distribution may be subject to different license terms and conditions,
which will be specified in a separate LICENSE file or within the file
itself. Additionally, a new Quivr Enterprise license has been added,
which restricts the use of the software to production environments only
if the user has a valid Quivr Enterprise license for the correct number
of user seats. The license also clarifies that modifications and patches
to the software can only be used with a valid Quivr Enterprise license.
Finally, the license includes a disclaimer of warranties and limitations
of liability.
2024-06-10 09:42:14 -07:00
Stan Girard
d0cd634d7c
feat: Add force_sync option to SyncsActiveUpdateInput (#2652)
This commit adds a new optional boolean field, force_sync, to the
SyncsActiveUpdateInput class in the sync module. The force_sync field
allows users to manually trigger a sync operation, bypassing the regular
sync interval. By default, force_sync is set to False.

The force_sync field is used in the GoogleSyncUtils and AzureSyncUtils
classes to determine whether to perform a sync operation even if the
regular sync interval has not elapsed. If force_sync is True, the
last_synced timestamp is updated and the sync operation is executed.

This enhancement provides more flexibility and control over the
synchronization process, allowing users to manually trigger sync
operations when needed.
2024-06-10 07:17:09 -07:00
Stan Girard
76930363ee
feat: telemetry improved (#2651)
# 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-10 06:28:14 -07:00
Antoine Dewez
aac7c15151
fix(frontend): tooltip on folder line (#2650)
…isabled state

# 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-10 02:17:00 -07:00
Antoine Dewez
ca6c0a86dc
fix(frontend): add brain modal integration doestn t work (#2649)
# 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-10 01:17:06 -07:00
Stan Girard
11a2e888da
fix(google): auth is now in state (#2647)
# 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-09 13:23:50 -07:00
Stan Girard
7467707da4
fix: files_metadata (#2645)
# 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-09 10:01:36 -07:00
Antoine Dewez
7670a2d22c
fix(frontend): display bug on add knowledge (#2644)
# 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-09 09:53:34 -07:00
Antoine Dewez
3d3e6b7306
feat(frontend): sharepoint and gdrive integration (#2643)
# 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-09 09:43:18 -07:00
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