ryanrwatkins commited on
Commit
60effb9
1 Parent(s): e845125

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -434,7 +434,7 @@ def CohereRerank_retriever(
434
 
435
 
436
 
437
- # Don't have to use this, but is brings all the above pieces together in a single series (probably not worth implementing since I have the pieces already)
438
 
439
  '''
440
  def retrieval_blocks(
@@ -663,6 +663,7 @@ def answer_template(language="english"):
663
  Answer the question at the end (convert the queestion to {language} language if it is not).
664
  Use only the following context (delimited by <context></context>) in responding to the question.
665
  Be polite and end by asking if you can answer any other questions.
 
666
  Your answer must be in the language at the end.
667
 
668
  <context>
@@ -707,7 +708,7 @@ chain = ConversationalRetrievalChain.from_llm(
707
 
708
 
709
 
710
-
711
 
712
  '''
713
  def create_ConversationalRetrievalChain(
@@ -778,6 +779,8 @@ Standalone question: {question}""")
778
 
779
 
780
 
 
 
781
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
782
 
783
 
 
434
 
435
 
436
 
437
+ # Don't have to use this, but it brings all the above pieces together into a single function
438
 
439
  '''
440
  def retrieval_blocks(
 
663
  Answer the question at the end (convert the queestion to {language} language if it is not).
664
  Use only the following context (delimited by <context></context>) in responding to the question.
665
  Be polite and end by asking if you can answer any other questions.
666
+ If you can't answer the question, then you should say that it is not within your knowledge base and that you can only answer needs assessment related questions.
667
  Your answer must be in the language at the end.
668
 
669
  <context>
 
708
 
709
 
710
 
711
+ # As above, this is not in use but it brings all the above elements together into a single function
712
 
713
  '''
714
  def create_ConversationalRetrievalChain(
 
779
 
780
 
781
 
782
+ # This below is for the interface
783
+
784
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
785
 
786