Spaces:
Running
Running
Louis-François Bouchard
commited on
Commit
•
dd89d2a
1
Parent(s):
5ece954
fixed typos (#29)
Browse files* fixed typos
* prompt for acronyms
app.py
CHANGED
@@ -29,7 +29,7 @@ logging.basicConfig(level=logging.INFO)
|
|
29 |
CONCURRENCY_COUNT = int(os.getenv("CONCURRENCY_COUNT", 64))
|
30 |
|
31 |
AVAILABLE_SOURCES_UI = [
|
32 |
-
"
|
33 |
"HuggingFace",
|
34 |
"Wikipedia",
|
35 |
"Gen AI 360: LangChain",
|
@@ -181,7 +181,7 @@ with gr.Blocks(
|
|
181 |
) as demo:
|
182 |
with gr.Row():
|
183 |
gr.Markdown(
|
184 |
-
"<h3><center>
|
185 |
)
|
186 |
|
187 |
latest_completion = gr.State()
|
@@ -218,7 +218,7 @@ with gr.Blocks(
|
|
218 |
submit_email = gr.Button(value="Submit", variant="secondary", scale=0)
|
219 |
|
220 |
gr.Markdown(
|
221 |
-
"This application uses ChatGPT to search the docs for relevant
|
222 |
"\n\n### Powered by [Buster 🤖](https://www.github.com/jerpint/buster)"
|
223 |
)
|
224 |
|
|
|
29 |
CONCURRENCY_COUNT = int(os.getenv("CONCURRENCY_COUNT", 64))
|
30 |
|
31 |
AVAILABLE_SOURCES_UI = [
|
32 |
+
"Towards AI",
|
33 |
"HuggingFace",
|
34 |
"Wikipedia",
|
35 |
"Gen AI 360: LangChain",
|
|
|
181 |
) as demo:
|
182 |
with gr.Row():
|
183 |
gr.Markdown(
|
184 |
+
"<h3><center>Towards AI x Buster 🤖: A Question-Answering Bot for anything AI-related</center></h3>"
|
185 |
)
|
186 |
|
187 |
latest_completion = gr.State()
|
|
|
218 |
submit_email = gr.Button(value="Submit", variant="secondary", scale=0)
|
219 |
|
220 |
gr.Markdown(
|
221 |
+
"This application uses ChatGPT to search the docs for relevant information and answer questions."
|
222 |
"\n\n### Powered by [Buster 🤖](https://www.github.com/jerpint/buster)"
|
223 |
)
|
224 |
|
cfg.py
CHANGED
@@ -55,7 +55,10 @@ Users will learn to build LLM-powered apps, with LangChain & Deep Lake among oth
|
|
55 |
As long as a question is somewhat related to the topic of AI, respond 'true'. If a question is on a different subject or unrelated, respond 'false'.
|
56 |
Make sure the question is a valid question.
|
57 |
|
58 |
-
|
|
|
|
|
|
|
59 |
|
60 |
Q: How can I setup my own chatbot?
|
61 |
true
|
@@ -63,6 +66,9 @@ true
|
|
63 |
Q: What is the meaning of life?
|
64 |
false
|
65 |
|
|
|
|
|
|
|
66 |
Q:
|
67 |
""",
|
68 |
"completion_kwargs": {
|
|
|
55 |
As long as a question is somewhat related to the topic of AI, respond 'true'. If a question is on a different subject or unrelated, respond 'false'.
|
56 |
Make sure the question is a valid question.
|
57 |
|
58 |
+
Here is a list of acronyms related to Artificial Intelligence AI that you can accept from users, they can be uppercase or lowercase:
|
59 |
+
[LLM, Llama, GPT, NLP, RLHF, RLAIF, Mistral, SFT, Cohere, NanoGPT, ReAct, LoRA, QLoRA, LMMOps, Alpaca, Flan, Weights and Biases, W&B, IDEFICS, Flamingo, LLaVA, BLIP, Falcon]
|
60 |
+
|
61 |
+
Here are some examples:
|
62 |
|
63 |
Q: How can I setup my own chatbot?
|
64 |
true
|
|
|
66 |
Q: What is the meaning of life?
|
67 |
false
|
68 |
|
69 |
+
Q: What is rlhf?
|
70 |
+
true
|
71 |
+
|
72 |
Q:
|
73 |
""",
|
74 |
"completion_kwargs": {
|