Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Quivr chatbot example #2827

Merged
merged 5 commits into from
Jul 10, 2024
Merged

feat: Add Quivr chatbot example #2827

merged 5 commits into from
Jul 10, 2024

Conversation

StanGirard
Copy link
Collaborator

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.

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.

```
Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quivrapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 7:41pm

The code changes introduce streaming response capability to the Quivr chatbot. Instead of waiting for the entire response to be generated before sending it, the chatbot now streams the response in chunks. This improves the user experience by providing more immediate feedback. The necessary modifications have been made to the `main.py` file in the chatbot example. Additionally, the `requirements.txt` file has been updated to include the latest version of `quivr-core` (0.0.6).
@StanGirard StanGirard marked this pull request as ready for review July 10, 2024 19:38
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. area: backend Related to backend functionality or under the /backend directory labels Jul 10, 2024
@StanGirard StanGirard merged commit 5ff8d4e into main Jul 10, 2024
7 checks passed
@StanGirard StanGirard deleted the feat/chainlit-core-example branch July 10, 2024 19:42
@@ -0,0 +1,5 @@
quivr-core==0.0.7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quivr-core[base] should probably work which remove faiss, langchain-community, ...

pip install "quivr-core[base]"

with open(file.path, "r", encoding="utf-8") as f:
text = f.read()

with tempfile.NamedTemporaryFile(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tempfile are usually garbage collected as soon and the context is closed. I think we can pass that file.path directly to the brain 🤔 ?

If this doesn't work, maybe have the logic inside the context manager

StanGirard added a commit that referenced this pull request Jul 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.8](core-0.0.7...core-0.0.8)
(2024-07-11)


### Features

* Add Quivr chatbot example
([#2827](#2827))
([5ff8d4e](5ff8d4e))
* Update aiofiles dependency to loosen version control
([#2834](#2834))
([5e75d15](5e75d15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
StanGirard added a commit that referenced this pull request Jul 11, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.281 (2024-07-11)

## What's Changed
* feat: quivr core minimal chat by @AmineDiro in
#2803
* chore: Add release-please-core workflow and configuration files by
@StanGirard in #2809
* chore(main): release core 0.0.2 by @StanGirard in
#2812
* chore(main): release core 0.0.2 by @StanGirard in
#2813
* chore(main): release core 0.0.2 by @StanGirard in
#2814
* chore(main): release core 0.0.2 by @StanGirard in
#2815
* fix(pyproject): fixed to quivr github by @StanGirard in
#2816
* chore(main): release core 0.0.3 by @StanGirard in
#2817
* feat: quivr core minimal chat by @AmineDiro in
#2818
* chore(main): release core 0.0.4 by @StanGirard in
#2819
* feat: Add GitHub Actions workflow for running tests on backend/core by
@StanGirard in #2820
* feat: Add GitHub Actions workflow for running tests on backend/core by
@StanGirard in #2822
* feat(precommit): Update pre-commit hooks to latest versions by
@StanGirard in #2823
* feat: quivr core chat history by @AmineDiro in
#2824
* chore(main): release core 0.0.5 by @StanGirard in
#2821
* feat(frontend): UI / UX Notifications by @Zewed in
#2826
* feat: quivr-core ask streaming by @AmineDiro in
#2828
* chore(main): release core 0.0.6 by @StanGirard in
#2829
* fix: llm model name by @AmineDiro in
#2830
* chore(main): release core 0.0.7 by @StanGirard in
#2831
* feat: Add Quivr chatbot example by @StanGirard in
#2827
* feat(renovate): updated configuration by @StanGirard in
#2835
* feat: Update aiofiles dependency to loosen version control by
@StanGirard in #2834
* chore(main): release core 0.0.8 by @StanGirard in
#2832
* chore: Update quivr-core and chainlit versions in requirements.txt by
@StanGirard in #2836


**Full Changelog**:
v0.0.280...v0.0.281

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Dream528 added a commit to Dream528/quivr that referenced this pull request Jul 28, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.8](QuivrHQ/quivr@core-0.0.7...core-0.0.8)
(2024-07-11)


### Features

* Add Quivr chatbot example
([#2827](QuivrHQ/quivr#2827))
([5ff8d4e](QuivrHQ/quivr@5ff8d4e))
* Update aiofiles dependency to loosen version control
([#2834](QuivrHQ/quivr#2834))
([5e75d15](QuivrHQ/quivr@5e75d15))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Dream528 added a commit to Dream528/quivr that referenced this pull request Jul 28, 2024
🤖 I have created a release *beep* *boop*
---


## 0.0.281 (2024-07-11)

## What's Changed
* feat: quivr core minimal chat by @AmineDiro in
QuivrHQ/quivr#2803
* chore: Add release-please-core workflow and configuration files by
@StanGirard in QuivrHQ/quivr#2809
* chore(main): release core 0.0.2 by @StanGirard in
QuivrHQ/quivr#2812
* chore(main): release core 0.0.2 by @StanGirard in
QuivrHQ/quivr#2813
* chore(main): release core 0.0.2 by @StanGirard in
QuivrHQ/quivr#2814
* chore(main): release core 0.0.2 by @StanGirard in
QuivrHQ/quivr#2815
* fix(pyproject): fixed to quivr github by @StanGirard in
QuivrHQ/quivr#2816
* chore(main): release core 0.0.3 by @StanGirard in
QuivrHQ/quivr#2817
* feat: quivr core minimal chat by @AmineDiro in
QuivrHQ/quivr#2818
* chore(main): release core 0.0.4 by @StanGirard in
QuivrHQ/quivr#2819
* feat: Add GitHub Actions workflow for running tests on backend/core by
@StanGirard in QuivrHQ/quivr#2820
* feat: Add GitHub Actions workflow for running tests on backend/core by
@StanGirard in QuivrHQ/quivr#2822
* feat(precommit): Update pre-commit hooks to latest versions by
@StanGirard in QuivrHQ/quivr#2823
* feat: quivr core chat history by @AmineDiro in
QuivrHQ/quivr#2824
* chore(main): release core 0.0.5 by @StanGirard in
QuivrHQ/quivr#2821
* feat(frontend): UI / UX Notifications by @Zewed in
QuivrHQ/quivr#2826
* feat: quivr-core ask streaming by @AmineDiro in
QuivrHQ/quivr#2828
* chore(main): release core 0.0.6 by @StanGirard in
QuivrHQ/quivr#2829
* fix: llm model name by @AmineDiro in
QuivrHQ/quivr#2830
* chore(main): release core 0.0.7 by @StanGirard in
QuivrHQ/quivr#2831
* feat: Add Quivr chatbot example by @StanGirard in
QuivrHQ/quivr#2827
* feat(renovate): updated configuration by @StanGirard in
QuivrHQ/quivr#2835
* feat: Update aiofiles dependency to loosen version control by
@StanGirard in QuivrHQ/quivr#2834
* chore(main): release core 0.0.8 by @StanGirard in
QuivrHQ/quivr#2832
* chore: Update quivr-core and chainlit versions in requirements.txt by
@StanGirard in QuivrHQ/quivr#2836


**Full Changelog**:
QuivrHQ/quivr@v0.0.280...v0.0.281

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants