Commit Graph

1906 Commits

Author SHA1 Message Date
Stan Girard
d9338347f7
chore(main): release core 0.0.8 (#2832)
🤖 I have created a release *beep* *boop*
---


##
[0.0.8](https://github.com/QuivrHQ/quivr/compare/core-0.0.7...core-0.0.8)
(2024-07-11)


### Features

* Add Quivr chatbot example
([#2827](https://github.com/QuivrHQ/quivr/issues/2827))
([5ff8d4e](5ff8d4ee81))
* Update aiofiles dependency to loosen version control
([#2834](https://github.com/QuivrHQ/quivr/issues/2834))
([5e75d15](5e75d15597))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-11 01:06:42 -07:00
Stan Girard
5e75d15597
feat: Update aiofiles dependency to loosen version control (#2834)
This pull request updates the aiofiles dependency version to loosen the
version control.
2024-07-11 01:05:17 -07:00
Stan Girard
6beeb57166
feat(renovate): updated configuration (#2835)
# 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-07-11 01:01:34 -07:00
Stan Girard
5ff8d4ee81
feat: Add Quivr chatbot example (#2827)
The commit adds a new Quivr chatbot example to the repository. The
example demonstrates how to create a simple chatbot using Quivr and
Chainlit. Users can upload a text file and ask questions about its
content. The commit includes the necessary files, installation
instructions, and usage guidelines.
2024-07-10 12:42:49 -07:00
Stan Girard
7b8db6b9ec
chore(main): release core 0.0.7 (#2831)
🤖 I have created a release *beep* *boop*
---


##
[0.0.7](https://github.com/QuivrHQ/quivr/compare/core-0.0.6...core-0.0.7)
(2024-07-10)


### Bug Fixes

* llm model name ([#2830](https://github.com/QuivrHQ/quivr/issues/2830))
([71d6cd9](71d6cd9b6b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-10 09:34:49 -07:00
AmineDiro
71d6cd9b6b
fix: llm model name (#2830)
# Description

llm endpoint model name wasn't taken into account
2024-07-10 09:34:06 -07:00
Stan Girard
cc4bea7654
chore(main): release core 0.0.6 (#2829)
🤖 I have created a release *beep* *boop*
---


##
[0.0.6](https://github.com/QuivrHQ/quivr/compare/core-0.0.5...core-0.0.6)
(2024-07-10)


### Features

* quivr-core ask streaming
([#2828](https://github.com/QuivrHQ/quivr/issues/2828))
([0658d49](0658d4947c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-10 08:53:07 -07:00
AmineDiro
0658d4947c
feat: quivr-core ask streaming (#2828)
# Description

Added streaming response to quivr-core brain + tests.
2024-07-10 08:52:07 -07:00
Antoine Dewez
6056450bd6
feat(frontend): UI / UX Notifications (#2826)
# 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-07-10 17:13:47 +02:00
Stan Girard
f496e013d3
chore(main): release core 0.0.5 (#2821)
🤖 I have created a release *beep* *boop*
---


##
[0.0.5](https://github.com/QuivrHQ/quivr/compare/core-0.0.4...core-0.0.5)
(2024-07-10)


### Features

* Add GitHub Actions workflow for running tests on backend/core
([#2820](https://github.com/QuivrHQ/quivr/issues/2820))
([82292f3](82292f30ac))
* Add GitHub Actions workflow for running tests on backend/core
([#2822](https://github.com/QuivrHQ/quivr/issues/2822))
([1566040](15660409a3))
* quivr core chat history
([#2824](https://github.com/QuivrHQ/quivr/issues/2824))
([847e161](847e161d80))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-10 06:29:24 -07:00
AmineDiro
847e161d80
feat: quivr core chat history (#2824)
# Description

- Defined quivr-core `ChatHistory`
- `ChatHistory` can be iterated over in tuples of
`HumanMessage,AIMessage`
-  Brain appends to the chatHistory once response is received
- Brain holds a dict of chats and defines the default chat (TODO: define
a system of selecting the chats)
- Wrote test 
- Updated `QuivrQARAG` to use `ChatHistory` as input
2024-07-10 06:22:59 -07:00
Stan Girard
442186c674
feat(precommit): Update pre-commit hooks to latest versions (#2823)
This pull request updates the pre-commit hooks in the
`.pre-commit-config.yaml` file to the latest versions. By doing so, we
ensure that our codebase benefits from the latest bug fixes and
improvements provided by the pre-commit community.
2024-07-09 10:33:45 -07:00
Stan Girard
34e47a0af2 feat: Add OPENAI_API_KEY to backend-core-tests.yml
The `backend-core-tests.yml` GitHub Actions workflow file has been updated to include the `OPENAI_API_KEY` environment variable with a test key. This change allows the tests to access the OpenAI API using the specified key.
2024-07-09 18:48:07 +02:00
Stan Girard
a4b657768c Update health check command in backend-core-tests.yml 2024-07-09 18:45:32 +02:00
Stan Girard
05d7dff91b feat: Update health check command in backend-core-tests.yml
The health check command in the `backend-core-tests.yml` GitHub Actions workflow file has been updated to include a `--max-time` option with a value of 5 seconds. This change ensures that the health check fails if the Tika server does not respond within the specified time limit.
2024-07-09 18:43:32 +02:00
Stan Girard
15660409a3
feat: Add GitHub Actions workflow for running tests on backend/core (#2822)
# 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-07-09 09:39:01 -07:00
Stan Girard
82292f30ac
feat: Add GitHub Actions workflow for running tests on backend/core (#2820)
This commit adds a new GitHub Actions workflow file
`backend-core-tests.yml` to the repository. This workflow is triggered
on push and pull request events, specifically for changes made to the
`backend/core` directory. The workflow runs tests for the backend/core
module using a Tika server as a service. It checks the health of the
Tika server before running the tests. The workflow sets up Python,
installs dependencies using Poetry, and runs the tests using pytest.

This commit is necessary to automate the testing process for the
backend/core module and ensure that the tests are run consistently and
reliably.

Co-authored-by: aminediro <aminedirhoussi@gmail.com>
2024-07-09 09:28:27 -07:00
Stan Girard
03aa9e4521
chore(main): release core 0.0.4 (#2819)
🤖 I have created a release *beep* *boop*
---


##
[0.0.4](https://github.com/QuivrHQ/quivr/compare/core-0.0.3...core-0.0.4)
(2024-07-09)


### Features

* quivr core minimal chat
([#2818](https://github.com/QuivrHQ/quivr/issues/2818))
([481f24f](481f24f5be))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 18:12:33 +02:00
AmineDiro
481f24f5be
feat: quivr core minimal chat (#2818)
# Description
- Introduce `LLMEndpoint` class: wrapper around a `BaseChatLLM` to load
OpenAI compatible models
- Add `brain.search(...)` function to retrieve
- Test with test-coverage: 
- Added ability to load brain `from langchain.Document`
- Configured mypy and poetry lock in `.pre-commit.yaml`

# Test coverage

![image](https://github.com/QuivrHQ/quivr/assets/14312141/629ede66-146e-400f-b40b-8c22a9258a47)

---------

Co-authored-by: aminediro <aminedirhoussi@gmail.com>
2024-07-09 17:55:14 +02:00
Stan Girard
f77c8e65a3
chore(main): release core 0.0.3 (#2817)
🤖 I have created a release *beep* *boop*
---


##
[0.0.3](https://github.com/QuivrHQ/quivr/compare/core-0.0.2...core-0.0.3)
(2024-07-09)


### Bug Fixes

* **pyproject:** fixed to quivr github
([#2816](https://github.com/QuivrHQ/quivr/issues/2816))
([5a4ac00](5a4ac001d0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 07:57:16 -07:00
Stan Girard
5a4ac001d0
fix(pyproject): fixed to quivr github (#2816)
This pull request updates the repository URL in the pyproject.toml file
from "https://github.com/langchain-ai/langchain" to
"https://github.com/QuivrHQ/quivr".
2024-07-09 07:56:05 -07:00
Stan Girard
e047fec673
chore(main): release core 0.0.2 (#2815)
🤖 I have created a release *beep* *boop*
---


##
[0.0.2](https://github.com/QuivrHQ/quivr/compare/core-v0.0.1...core-0.0.2)
(2024-07-09)


### Features

* **backend:** quivr-monorepo and quivr-core package
([#2765](https://github.com/QuivrHQ/quivr/issues/2765))
([2e75de4](2e75de4039))
* quivr core minimal chat
([#2803](https://github.com/QuivrHQ/quivr/issues/2803))
([1dc6d88](1dc6d88f9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 07:49:44 -07:00
Stan Girard
2e995a6ae9 chore: Update backend/core version to 0.0.1 in release-please-manifest.json 2024-07-09 16:48:12 +02:00
Stan Girard
11e8556d1c
chore(main): release core 0.0.2 (#2814)
🤖 I have created a release *beep* *boop*
---


##
[0.0.2](https://github.com/QuivrHQ/quivr/compare/core-v0.0.1...core-0.0.2)
(2024-07-09)


### Features

* **backend:** quivr-monorepo and quivr-core package
([#2765](https://github.com/QuivrHQ/quivr/issues/2765))
([2e75de4](2e75de4039))
* quivr core minimal chat
([#2803](https://github.com/QuivrHQ/quivr/issues/2803))
([1dc6d88](1dc6d88f9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 07:43:18 -07:00
Stan Girard
cf3ee9a3df chore: Update backend/core version to 0.0.1 in release-please-manifest.json 2024-07-09 16:41:37 +02:00
Stan Girard
c6d794ecb4 chore: release please updated manifest 2024-07-09 16:38:36 +02:00
Stan Girard
b8eb5dc652 chore: Update release-please-core workflow for python package in backend 2024-07-09 16:36:23 +02:00
Stan Girard
85ef336f70
chore(main): release core 0.0.2 (#2813)
🤖 I have created a release *beep* *boop*
---


##
[0.0.2](https://github.com/QuivrHQ/quivr/compare/core-v0.0.1...core-0.0.2)
(2024-07-09)


### Features

* **backend:** quivr-monorepo and quivr-core package
([#2765](https://github.com/QuivrHQ/quivr/issues/2765))
([2e75de4](2e75de4039))
* quivr core minimal chat
([#2803](https://github.com/QuivrHQ/quivr/issues/2803))
([1dc6d88](1dc6d88f9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 07:31:12 -07:00
Stan Girard
ae8bb71142 chore: Update release-please-core workflow for python package in backend 2024-07-09 16:28:54 +02:00
Stan Girard
433e14c0a2
chore(main): release core 0.0.2 (#2812)
🤖 I have created a release *beep* *boop*
---


##
[0.0.2](https://github.com/QuivrHQ/quivr/compare/core-v0.0.1...core-0.0.2)
(2024-07-09)


### Features

* **backend:** quivr-monorepo and quivr-core package
([#2765](https://github.com/QuivrHQ/quivr/issues/2765))
([2e75de4](2e75de4039))
* quivr core minimal chat
([#2803](https://github.com/QuivrHQ/quivr/issues/2803))
([1dc6d88](1dc6d88f9b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 07:21:49 -07:00
Stan Girard
71928ac255 chore: Add release-please-core workflow and configuration files for python package in backend 2024-07-09 16:19:26 +02:00
Stan Girard
7919c09161 chore: Update GitHub Actions workflows to trigger on tag pushes
This commit updates the GitHub Actions workflows for the backend services (quivr-com-backend, quivr-com, raise-frontend, raise, theodo-backend, and theodo-frontend) to trigger on tag pushes instead of branch pushes. This change allows for more controlled deployments and ensures that only tagged versions are deployed to the respective environments.
2024-07-09 16:07:59 +02:00
Stan Girard
07d25e4208 chore: Add release-please-core workflow and configuration files
This commit adds the release-please-core workflow and configuration files for the python package in the backend. The release-please workflow is triggered on push to the main branch and on manual workflow dispatch. It sets up Python, installs Poetry, configures Poetry, and runs release-please for the backend/core package. The release-please configuration file specifies the release type, package name, bump patch for minor pre-major, changelog notes type, include v in tag, tag separator, and component.
2024-07-09 16:00:31 +02:00
Stan Girard
318b615fcb chore: Update release-please workflow for python package in backend 2024-07-09 15:55:46 +02:00
Stan Girard
70119ab652 chore: Update release-please workflow for python package in backend 2024-07-09 15:51:06 +02:00
Stan Girard
28b5c6a3d9 chore: Update release-please workflow for python package in backend 2024-07-09 15:43:45 +02:00
Stan Girard
5082182ae7
chore: Add release-please-core workflow and configuration files (#2809)
This pull request adds the release-please-core workflow and
configuration files. The release-please workflow is triggered on push to
the main branch and on manual workflow dispatch. It sets up Python,
installs Poetry, configures Poetry, and runs release-please for the
backend/core package. The release-please configuration file specifies
the release type, package name, bump patch for minor pre-major,
changelog notes type, include v in tag, tag separator, and component.
2024-07-09 06:35:23 -07:00
AmineDiro
1dc6d88f9b
feat: quivr core minimal chat (#2803)
# Description

Minimal working example of `quivr-core` rag with minimal dependencies.

---------

Co-authored-by: aminediro <aminedirhoussi@gmail.com>
2024-07-09 06:22:16 -07:00
Stan Girard
296e9fd1b9
chore(main): release 0.0.280 (#2799)
🤖 I have created a release *beep* *boop*
---


## 0.0.280 (2024-07-09)

## What's Changed
* feat(frontend): add small property to textInput by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2798
* fix(frontend): brain studio ui audit implem by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2800
* fix(frontend): remove quivr assistant for now by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2801
* feat(frontend): Uniformize brain icon by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2802
* fix(frontend): out of credits when credits null by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2804
* feat(frontend): better UI for big modals by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2805
* fix(frontend): align brain recap step by @Zewed in
https://github.com/QuivrHQ/quivr/pull/2806
* feat: Improve error handling in acquiring token by @StanGirard in
https://github.com/QuivrHQ/quivr/pull/2807


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.279...v0.0.280

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-09 02:53:30 -07:00
Stan Girard
cde7c81de1
feat: Improve error handling in acquiring token (#2807)
The code changes handle the case when the access token is not present in
the result of acquiring the token. It now logs an error message with the
specific reason for the failure and raises an HTTPException with a
corresponding detail message. This improves the error handling and
provides more information to the user.

Note: The commit message follows the convention used in the recent user
commits and adheres to the established format.

# 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-07-09 01:14:37 -07:00
Antoine Dewez
765a000a5c
fix(frontend): better ui modals (#2806)
# 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-07-09 09:54:34 +02:00
Antoine Dewez
80a9304187
feat(frontend): better UI for big modals (#2805)
# 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-07-08 17:11:28 +02:00
Antoine Dewez
e0736d4d01
fix(frontend): out of credits when credits null (#2804)
# 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-07-08 15:41:16 +02:00
Antoine Dewez
78004e8de9
feat(frontend): Uniformize brain icon (#2802)
# 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-07-08 11:56:22 +02:00
Antoine Dewez
12de0f7b03
fix(frontend): remove quivr assistant for now (#2801)
# 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-07-08 11:30:17 +02:00
Antoine Dewez
f78464c941
fix(frontend): brain studio ui audit implem (#2800) 2024-07-08 11:04:56 +02:00
Antoine Dewez
10bc945564
feat(frontend): add small property to textInput (#2798)
# 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-07-08 09:58:14 +02:00
Stan Girard
1ff60fd066
chore(main): release 0.0.279 (#2792)
🤖 I have created a release *beep* *boop*
---


## 0.0.279 (2024-07-04)

## What's Changed
* feat(frontend): remove create brain step in onboarding when share
brain by @Zewed in https://github.com/QuivrHQ/quivr/pull/2791
* feat: add megaparse by @chloedia in
https://github.com/QuivrHQ/quivr/pull/2785
* fix: asyncpg pooling config fix by @AmineDiro in
https://github.com/QuivrHQ/quivr/pull/2795
* fix: RAG service bug assertion error by @AmineDiro in
https://github.com/QuivrHQ/quivr/pull/2796


**Full Changelog**:
https://github.com/QuivrHQ/quivr/compare/v0.0.278...v0.0.279

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-04 06:53:25 -07:00
AmineDiro
1fa79de859
fix: RAG service bug assertion error (#2796)
# Description

Fixes assertion error on brains of brain type integration.
!/!: temporary fix casts user_id to string for the assertion
2024-07-04 06:36:34 -07:00
AmineDiro
757bceeb95
fix: asyncpg pooling config fix (#2795)
# Description

closes #2782.

Changes `sqlalchemy` connection pooling config : 

- **pool_pre_ping=True** : pessimistic disconnect handling. 

> - It is critical to note that the pre-ping approach does not
accommodate **for connections dropped in the middle of transactions or
other SQL operations** ! But this should only happen if we lose the
database either due to network of DB server restart.

- **pool_size=10**, with no db side pooling for now, if 6 uvicorn
process workers are spawned (or 6 instances of the backed) we have a
pool of 60 processes connecting to the database.
- **pool_recycle=1800** :  Recycles the pool every 30min

Added additional session config : 
- expire_on_commit=False, When True, all instances will be fully expired
after each commit, so that all attribute/object access subsequent to a
completed transaction will load from the most recent database state.
- autoflush=False, query operations will issue a Session.flush() call to
this Session before proceeding. We are calling `session.commit` (which
flushes) on each repository method so ne need to reflush on subsequent
access
2024-07-04 05:28:02 -07:00