ryanrwatkins commited on
Commit
8ad7e64
·
verified ·
1 Parent(s): 12d4d39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -660,14 +660,20 @@ def answer_template(language="english"):
660
  answer_prompt = ChatPromptTemplate.from_template(answer_template())
661
 
662
 
663
- """
 
 
 
 
 
 
664
  # invoke the ChatPromptTemplate
665
  answer_prompt.invoke(
666
  {"question":"plaese give more details about DTC, including its use cases and implementation.",
667
  "context":[Document(page_content="DTC use cases include...")], # the context is a list of retrieved documents.
668
  "chat_history":memory.chat_memory}
669
  )
670
- """
671
 
672
 
673
 
@@ -818,7 +824,6 @@ Standalone question: {question}""")
818
 
819
 
820
 
821
-
822
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
823
 
824
 
 
660
  answer_prompt = ChatPromptTemplate.from_template(answer_template())
661
 
662
 
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
  # invoke the ChatPromptTemplate
671
  answer_prompt.invoke(
672
  {"question":"plaese give more details about DTC, including its use cases and implementation.",
673
  "context":[Document(page_content="DTC use cases include...")], # the context is a list of retrieved documents.
674
  "chat_history":memory.chat_memory}
675
  )
676
+
677
 
678
 
679
 
 
824
 
825
 
826
 
 
827
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
828
 
829