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

chore(examples): fix chainlit example #3223

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/core/examples/chatbot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def on_chat_start():

file = files[0]

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

with open(file.path, "r", encoding="utf-8") as f:
Expand Down
5 changes: 1 addition & 4 deletions backend/core/examples/simple_question.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import tempfile

from quivr_core import Brain
from quivr_core.quivr_rag import QuivrQARAG
from quivr_core.quivr_rag_langgraph import QuivrQARAGLangGraph


if __name__ == "__main__":
with tempfile.NamedTemporaryFile(mode="w", suffix=".txt") as temp_file:
Expand All @@ -18,6 +18,3 @@
"what is gold? asnwer in french", rag_pipeline=QuivrQARAGLangGraph
)
print("answer QuivrQARAGLangGraph :", answer.answer)

answer = brain.ask("what is gold? asnwer in french", rag_pipeline=QuivrQARAG)
print("answer QuivrQARAG :", answer.answer)
Loading