Namitg02 commited on
Commit
1b1e7ad
·
verified ·
1 Parent(s): f4c65b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ retriever = vectordb.as_retriever()
38
  # retriever=vectordb.as_retriever()
39
  #)
40
 
 
41
  from langchain.prompts import PromptTemplate
42
 
43
  template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Use three sentences maximum. Keep the answer as concise as possible. Always say "thanks for asking!" at the end of the answer.
 
38
  # retriever=vectordb.as_retriever()
39
  #)
40
 
41
+ from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
42
  from langchain.prompts import PromptTemplate
43
 
44
  template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Use three sentences maximum. Keep the answer as concise as possible. Always say "thanks for asking!" at the end of the answer.