|
|
|
|
|
|
|
|
assistant = rag.create_chat("test_create_conversation", dataset_ids=[kb.id]) |
|
|
assistant = rag.create_chat("test_create_conversation", dataset_ids=[kb.id]) |
|
|
session = assistant.create_session() |
|
|
session = assistant.create_session() |
|
|
question = "What is AI" |
|
|
question = "What is AI" |
|
|
for ans in session.ask(question, stream=True): |
|
|
|
|
|
|
|
|
for ans in session.ask(question): |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
# assert not ans.content.startswith("**ERROR**"), "Please check this error." |
|
|
# assert not ans.content.startswith("**ERROR**"), "Please check this error." |