manabb commited on
Commit
65d45bb
·
verified ·
1 Parent(s): b20df45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- def create_qa_chain():
67
- retriever = retrieve_chunks(repo_id)
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 with References",
325
- description="Ask questions about your docs; see page refs!",
326
- examples=["what is GeM", "explain compliance rules"],
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()