Spaces:
Sleeping
Sleeping
# tailor_chain.py | |
import os | |
from langchain.chains import LLMChain | |
from langchain_groq import ChatGroq | |
from prompts import tailort_promptWellnessBrand1 | |
def get_tailor_chain_wellnessBrand() -> LLMChain: | |
""" | |
Builds the chain that tailors the final response to DailyWellnessAI's style. | |
""" | |
chat_groq_model = ChatGroq( | |
model="Gemma2-9b-It", | |
groq_api_key=os.environ["GROQ_API_KEY"] | |
) | |
chain = LLMChain( | |
llm=chat_groq_model, | |
prompt=tailort_promptWellnessBrand1 | |
) | |
return chain | |