wang16888 commited on
Commit
31a1873
·
verified ·
1 Parent(s): 197a524

Update app/chains.py

Browse files
Files changed (1) hide show
  1. app/chains.py +4 -0
app/chains.py CHANGED
@@ -38,6 +38,10 @@ history_chain = (
38
  | llm
39
  ).with_types(input_type=schemas.HistoryInput)
40
 
 
 
 
 
41
  rag_chain = (
42
  RunnablePassthrough.assign(new_question=standalone_prompt_formatted | llm)
43
  | {
 
38
  | llm
39
  ).with_types(input_type=schemas.HistoryInput)
40
 
41
+ standalone_prompt_formatted =
42
+ format_prompt(standalone_prompt)
43
+ standalone_chain = standalone_prompt_formatted | llm
44
+
45
  rag_chain = (
46
  RunnablePassthrough.assign(new_question=standalone_prompt_formatted | llm)
47
  | {