jupyter | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
# import the package we created
from llm_query import langchain_example
# create a class istance
predictor = langchain_example.Pred()
# get an answer from ChatGpt
my_prompt = "hi"
predictor.answer(my_prompt)
jupyter | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
# import the package we created
from llm_query import langchain_example
# create a class istance
predictor = langchain_example.Pred()
# get an answer from ChatGpt
my_prompt = "hi"
predictor.answer(my_prompt)