Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,8 +63,8 @@ PQC_rules="""
|
|
| 63 |
11. Adequacy of competition must be evaluated while framing PQC.
|
| 64 |
12. PQC should balance inclusion of capable vendors and exclusion of incapable ones."""
|
| 65 |
#===========================
|
| 66 |
-
|
| 67 |
-
|
| 68 |
prompt = ChatPromptTemplate.from_template(
|
| 69 |
"Use context to answer: {context}\n\nQ: {input}"
|
| 70 |
)
|
|
@@ -321,9 +321,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 321 |
with gr.TabItem("ChatBox-NRL maual-goods"):
|
| 322 |
gr.ChatInterface(
|
| 323 |
chat,
|
| 324 |
-
title="RAG Chatbot
|
| 325 |
-
description="Ask questions
|
| 326 |
-
examples=["what is GeM", "
|
| 327 |
cache_examples=False # Disable for dynamic retriever
|
| 328 |
)
|
| 329 |
demo.queue().launch()
|
|
|
|
| 63 |
11. Adequacy of competition must be evaluated while framing PQC.
|
| 64 |
12. PQC should balance inclusion of capable vendors and exclusion of incapable ones."""
|
| 65 |
#===========================
|
| 66 |
+
retriever = retrieve_chunks(repo_id)
|
| 67 |
+
def create_qa_chain():
|
| 68 |
prompt = ChatPromptTemplate.from_template(
|
| 69 |
"Use context to answer: {context}\n\nQ: {input}"
|
| 70 |
)
|
|
|
|
| 321 |
with gr.TabItem("ChatBox-NRL maual-goods"):
|
| 322 |
gr.ChatInterface(
|
| 323 |
chat,
|
| 324 |
+
title="RAG Chatbot - NRL procurement manual of Goods",
|
| 325 |
+
description="Ask questions!",
|
| 326 |
+
examples=["what is GeM", "What is limited tender"],
|
| 327 |
cache_examples=False # Disable for dynamic retriever
|
| 328 |
)
|
| 329 |
demo.queue().launch()
|