Phoenix21 commited on
Commit
6c91d6e
·
verified ·
1 Parent(s): e3b304e

Update classification_chain.py

Browse files
Files changed (1) hide show
  1. classification_chain.py +1 -0
classification_chain.py CHANGED
@@ -16,6 +16,7 @@ def get_classification_chain() -> LLMChain:
16
  model="Gemma2-9b-It",
17
  groq_api_key=os.environ["GROQ_API_KEY"] # must be set in environment
18
  )
 
19
  # Build an LLMChain
20
  classification_chain = classification_prompt|chat_groq_model|output_parser
21
  return classification_chain
 
16
  model="Gemma2-9b-It",
17
  groq_api_key=os.environ["GROQ_API_KEY"] # must be set in environment
18
  )
19
+ output_parser=StrOutputParser()
20
  # Build an LLMChain
21
  classification_chain = classification_prompt|chat_groq_model|output_parser
22
  return classification_chain