Skip to content

Commit 9c6d998

Browse files
authored
chore(examples): fix chainlit example (#3223)
The commit updates the message content in the `main.py` file of the chatbot example. # 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):
1 parent 282fa0e commit 9c6d998

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

backend/core/examples/chatbot/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async def on_chat_start():
1919

2020
file = files[0]
2121

22-
msg = cl.Message(content=f"Processing `{file.name}`...", disable_feedback=True)
22+
msg = cl.Message(content=f"Processing `{file.name}`...")
2323
await msg.send()
2424

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

backend/core/examples/simple_question.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import tempfile
22

33
from quivr_core import Brain
4-
from quivr_core.quivr_rag import QuivrQARAG
54
from quivr_core.quivr_rag_langgraph import QuivrQARAGLangGraph
5+
66

77
if __name__ == "__main__":
88
with tempfile.NamedTemporaryFile(mode="w", suffix=".txt") as temp_file:
@@ -18,6 +18,3 @@
1818
"what is gold? asnwer in french", rag_pipeline=QuivrQARAGLangGraph
1919
)
2020
print("answer QuivrQARAGLangGraph :", answer.answer)
21-
22-
answer = brain.ask("what is gold? asnwer in french", rag_pipeline=QuivrQARAG)
23-
print("answer QuivrQARAG :", answer.answer)

0 commit comments

Comments
 (0)