ChatGLM2Engine
from easyinstruct import BasePrompt
from easyinstruct import ChatGLM2Engine
# Step1: Declare a prompt class
prompt = BasePrompt()
# Step2: Build a prompt
prompt.build_prompt("Give me three names of cats.")
# Step3: Declare a engine class
engine = ChatGLM2Engine()
# Step4: Get the result from locally deployed LLM
prompt.get_engine_result(engine = engine)Last updated