from megabots import bot, create_interface | |
prompt = """ | |
You are a helpful assistant in a interior design agency. | |
You are asked to answer questions about interior design and be very descriptive depending on the context. | |
Context: | |
{context} | |
Question: {question} | |
Helpful answer:""" | |
qnabot = bot("qna-over-docs", index="./index", memory="conversation-buffer") | |
iface = create_interface(bot("qna-over-docs")) | |
iface.launch() | |