1
1
mirror of https://github.com/QuivrHQ/quivr.git synced 2024-12-26 08:32:03 +03:00
Commit Graph

1663 Commits

Author SHA1 Message Date
cvermand
21740a1b27
fix: ollama migration documentation ()
# Description


38de2e7440/docs/developers/contribution/llm/ollama.mdx (L20-L25)

Due to architectural changes in the file system, the ollama
documentation is out of date.



The sql files are now nested inside a `migrations` directory instead of
at the root of the supabase directory.

Fixed by adding `migrations` to the path 

```bash
mv supabase/migrations/local_20240107152745_ollama.sql supabase/migrations/20240107152745_ollama.sql
supabase db reset
```

## 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
2024-02-23 15:10:08 -08:00
Stan Girard
38de2e7440
chore(main): release 0.0.210 ()
🤖 I have created a release *beep* *boop*
---


## 0.0.210 (2024-02-22)

## What's Changed
* feat: Update memory allocation in task definition by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2243
* fix: get_brain_details API to include user_id parameter by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2242
* feat(chat): Add follow up questions functionality by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2241
* Reduce sampling rate for Sentry traces by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2245
* Revert "feat(chat): Add follow up questions functionality" by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2246
* Add max_input and max_tokens parameters to KnowledgeBrainQA
constructor by @StanGirard in https://github.com/QuivrHQ/quivr/pull/2247


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.209...v0.0.210

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-22 15:58:11 -08:00
Stan Girard
e4f920120f
Add max_input and max_tokens parameters to KnowledgeBrainQA constructor ()
This pull request adds the `max_input` and `max_tokens` parameters to
the `KnowledgeBrainQA` constructor. These parameters allow for setting
the maximum input length and maximum number of tokens for the
KnowledgeBrainQA model. This provides more flexibility and control over
the input size and tokenization process.
2024-02-22 15:38:25 -08:00
Stan Girard
81072b3841
Revert "feat(chat): Add follow up questions functionality" ()
Reverts 
2024-02-22 15:35:39 -08:00
Stan Girard
44312dc617
Reduce sampling rate for Sentry traces ()
This pull request reduces the sampling rate for Sentry traces to 0.1.
This change ensures that only a small percentage of traces are captured,
which helps to reduce the impact on performance and storage.
2024-02-22 14:48:45 -08:00
Stan Girard
5f862e7c31
feat(chat): Add follow up questions functionality ()
This pull request adds the ability to ask follow up questions in the
chat. It also includes various code improvements and bug fixes.
2024-02-22 13:02:29 -08:00
Stan Girard
73d5e7b808
fix: get_brain_details API to include user_id parameter ()
This pull request fixes the `get_brain_details` API by adding a
`user_id` parameter. Previously, the API did not include the `user_id`
parameter, which caused issues when retrieving brain details. This fix
ensures that the `user_id` is passed correctly to the API, allowing for
accurate retrieval of brain details.
2024-02-22 12:48:34 -08:00
Stan Girard
bc52146430
feat: Update memory allocation in task definition ()
# 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-02-22 12:46:24 -08:00
Stan Girard
5d165f0e57
chore(main): release 0.0.209 ()
🤖 I have created a release *beep* *boop*
---


## 0.0.209 (2024-02-22)

## What's Changed
* fix(frontend): fix share brain by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2238
* fix(frontend): don't preselect core brain by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2239


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.208...v0.0.209

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-22 11:36:03 -08:00
Antoine Dewez
65fd60cd78
fix(frontend): don't preselect core brain ()
# 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-02-22 11:18:03 -08:00
Antoine Dewez
fd88709096
fix(frontend): fix share brain ()
# 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-02-22 11:17:21 -08:00
Stan Girard
02d6a58893
Update devcontainer.json 2024-02-22 10:13:16 -08:00
Stan Girard
9ba7beeb5b
Create devcontainer.json 2024-02-22 09:58:14 -08:00
Stan Girard
e6eb77b255
chore(main): release 0.0.208 ()
🤖 I have created a release *beep* *boop*
---


## 0.0.208 (2024-02-21)

## What's Changed
* feat: Add pricing calculation method to GPT4Brain class and update
user usage in chat controller by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2216
* Enable Porter Application quivr by @porter-deployment-app in
https://github.com/QuivrHQ/quivr/pull/2220
* Delete Porter Application quivr by @porter-deployment-app in
https://github.com/QuivrHQ/quivr/pull/2221
* Enable Porter Application preview-quivr by @porter-deployment-app in
https://github.com/QuivrHQ/quivr/pull/2222
* Enable Porter Application prod-quivr by @porter-deployment-app in
https://github.com/QuivrHQ/quivr/pull/2223
* feat(brains): added description by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2224
* feat: Add integration_logo_url to MinimalUserBrainEntity by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2225
* Add Redis configuration to celery_config.py by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2227
* Remove unused 'model' variable and logging statements by @StanGirard
in https://github.com/QuivrHQ/quivr/pull/2228
* feat: Add max_files attribute to MinimalUserBrainEntity and
BrainsUsers repository by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2229
* Feature: Add animations to foldable section by @johnfewell in
https://github.com/QuivrHQ/quivr/pull/2202
* feat(frontend): first custom brain live by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2226
* fix(frontend): legacy on foldable section animation pr by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2230
* Fix: API endpoint for getting integration brains by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2231
* feat: Update dependencies and remove unnecessary logging statements by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2232
* feat: implement elasticache by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2234
* fix(frontend): ellipsis overflow on large brain or prompt names by
@Zewed in https://github.com/QuivrHQ/quivr/pull/2233

## New Contributors
* @porter-deployment-app made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2220
* @johnfewell made their first contribution in
https://github.com/QuivrHQ/quivr/pull/2202

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.207...v0.0.208

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-21 11:23:59 -08:00
Stan Girard
f5fb444bc8 fix: Update Celery config to remove SSL certificate requirement 2024-02-20 19:56:14 -08:00
Antoine Dewez
f11eabe309
fix(frontend): ellipsis overflow on large brain or prompt names ()
# 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-02-20 19:54:38 -08:00
Stan Girard
19c11944bc
feat: implement elasticache ()
# 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-02-20 19:52:14 -08:00
Stan Girard
3c2d83b22f
feat: Update dependencies and remove unnecessary logging statements ()
# 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-02-20 16:59:58 -08:00
Stan Girard
193d181eda
Fix: API endpoint for getting integration brains ()
This pull request fixes the API endpoint for getting integration brains.
Previously, the endpoint was missing a trailing slash, causing the
request to fail. This PR adds the missing slash to the endpoint,
ensuring that the request is successful.
2024-02-20 16:01:46 -08:00
Antoine Dewez
6941490d9f
fix(frontend): legacy on foldable section animation pr ()
# 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-02-20 15:36:15 -08:00
Antoine Dewez
b09878f332
feat(frontend): first custom brain live ()
# 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-02-20 15:11:03 -08:00
John Fewell
ec5679072f
Feature: Add animations to foldable section ()
# Description

Refactored the foldable section. The design is inspired by [Material
Design's expansion
panel](https://m1.material.io/components/expansion-panels.html#). The
existing design has the chevron alternating from pointing down to
pointing right. This is misleading because there is no subordinate
information to the right. Also, this PR animates the arrow and foldable
section, creating a delightful experience.

## 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 commented hard-to-understand areas
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged

## Screenshots (if appropriate):

[expansion.webm](https://github.com/QuivrHQ/quivr/assets/1273463/71ef2c98-c0ed-4374-840e-0bf16bf4da55)
### Update

[expansion2.webm](https://github.com/QuivrHQ/quivr/assets/1273463/0be769d2-93b4-42e3-938d-3bc0a63e0e06)
2024-02-20 15:08:48 -08:00
Stan Girard
7212e62859
feat: Add max_files attribute to MinimalUserBrainEntity and BrainsUsers repository ()
This pull request adds a new attribute, max_files, to the
MinimalUserBrainEntity class in the BrainsUsers repository. The
max_files attribute represents the maximum number of files allowed for a
brain integration.
2024-02-20 14:31:25 -08:00
Stan Girard
2a8014d3a2 fix: Refactor Celery configuration to use environment variables 2024-02-20 10:14:29 -08:00
Stan Girard
956ffbb5e0
Remove unused 'model' variable and logging statements ()
This pull request removes the unused 'model' variable and logging
statements from the codebase.
2024-02-20 02:14:02 -08:00
Stan Girard
9658bb8742 Add integration logo URL to BrainsUsers constructor 2024-02-20 01:41:34 -08:00
Stan Girard
6ba028cb08 Revert "Add celery with redis support"
This reverts commit 6fa9b173d5.
2024-02-20 01:27:42 -08:00
Stan Girard
6fa9b173d5 Add celery with redis support 2024-02-20 01:12:39 -08:00
Stan Girard
42db236e40 Add Redis password logging in celery_config.py 2024-02-20 01:03:43 -08:00
Stan Girard
4406f1deb2 Add result_backend to Celery configuration 2024-02-20 01:02:38 -08:00
Stan Girard
41057cd58c Add logger to celery_config.py 2024-02-20 00:21:40 -08:00
Stan Girard
f406afcc45
Add Redis configuration to celery_config.py ()
This pull request adds Redis configuration to the `celery_config.py`
file. The `CELERY_BROKER_URL` has been replaced with `REDIS_HOST`,
`REDIS_PORT`, and `REDIS_PASS` environment variables to configure the
Redis broker and backend. This change allows for better integration with
Redis in the application.
2024-02-19 23:51:18 -08:00
Stan Girard
6db67cc7b6
feat: Add integration_logo_url to MinimalUserBrainEntity ()
# 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-02-19 22:33:18 -08:00
Stan Girard
0ec9eb00b8
feat(brains): added description ()
This pull request updates the brain authorization and integration
entities. It includes changes to the `retrieve_brain_by_id`,
`update_existing_brain`, `update_existing_brain_secrets`,
`CreateApiBrainDefinition`, `CreateIntegrationBrain`,
`BrainIntegrationSettings`, `BrainIntegrationUpdateSettings`,
`CreateBrainProperties`, and `BrainUpdatableProperties` classes.
2024-02-19 21:44:06 -08:00
porter-deployment-app[bot]
25ef453b19
Enable Porter Application prod-quivr ()
Hello 👋 from Porter! Please merge this PR to finish setting up your
application.

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
2024-02-19 20:55:11 -08:00
porter-deployment-app[bot]
7fa3a4fc8b
Enable Porter Application preview-quivr ()
Hello 👋 from Porter! Please merge this PR to finish setting up your
application.

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
2024-02-19 19:22:41 -08:00
porter-deployment-app[bot]
cc09efaccb
Delete Porter Application quivr ()
Please merge this PR to delete the workflow file associated with your
application.

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
2024-02-19 19:19:24 -08:00
porter-deployment-app[bot]
cd3df2fe45
Enable Porter Application quivr ()
Hello 👋 from Porter! Please merge this PR to finish setting up your
application.

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
2024-02-19 18:33:02 -08:00
Stan Girard
4edf670028
feat: Add pricing calculation method to GPT4Brain class and update user usage in chat controller ()
Reverts 
2024-02-19 17:29:45 -08:00
Stan Girard
874c21f7e4
Revert "feat: Add pricing calculation method to GPT4Brain class and update user usage in chat controller" ()
Reverts 
2024-02-19 08:12:33 -08:00
Stan Girard
1cbd71db29
chore(main): release 0.0.206 ()
🤖 I have created a release *beep* *boop*
---


## 0.0.206 (2024-02-19)

## What's Changed
* feat: Add pricing calculation method to GPT4Brain class and update
user usage in chat controller by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2210
* fix(frontend): click on inputs by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2212


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.205...v0.0.206

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-18 23:46:30 -08:00
Antoine Dewez
045215cd65
fix(frontend): click on inputs ()
# 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-02-18 23:43:21 -08:00
Stan Girard
2c71e0edc7
feat: Add pricing calculation method to GPT4Brain class and update user usage in chat controller ()
This pull request adds a new method called `calculate_pricing` to the
`GPT4Brain` class in the codebase. This method calculates the pricing
for the GPT4Brain model. Additionally, the user usage in the chat
controller has been updated to include the new pricing calculation
method.
2024-02-18 23:05:13 -08:00
Stan Girard
aa4e85fc32
chore(main): release 0.0.205 ()
🤖 I have created a release *beep* *boop*
---


## 0.0.205 (2024-02-19)

## What's Changed
* Update ollama.mdx by @zangjiucheng in
https://github.com/QuivrHQ/quivr/pull/2196
* feat(integration): improve by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2199
* fix(frontend): history to threads by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2201
* feat(custom): big brain by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2198
* feat: Update system templates with custom personality support by
@StanGirard in https://github.com/QuivrHQ/quivr/pull/2209

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

**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.204...v0.0.205

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-18 19:43:00 -08:00
Stan Girard
2ae8ec1739
feat: Update system templates with custom personality support ()
This pull request updates the system templates to include support for
custom personality. It adds a new parameter called "custom_personality"
to the generate_stream function, which allows users to provide a custom
personality for the AI assistant. This feature enhances the user
experience by allowing them to personalize the assistant's responses.
2024-02-18 16:22:21 -08:00
Stan Girard
57ec5a634b
feat(custom): big brain ()
# 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-02-16 17:14:30 -08:00
Antoine Dewez
6ae529f614
fix(frontend): history to threads ()
# 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-02-16 16:28:27 -08:00
Stan Girard
ef6ee14440
feat(integration): improve ()
# 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-02-16 11:32:13 -08:00
Jiucheng(Oliver)
1099d1664f
Update ollama.mdx ()
Fix extra comma in the JSON file

# 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-02-15 23:38:37 -08:00
Stan Girard
f9278da616 Refactor knowledge_brain_qa.py: Remove unused imports and update method calls 2024-02-14 23:54:52 -08:00