Harrison/memory refactor (#1478)

moves memory to own module, factors out common stuff
This commit is contained in:
Harrison Chase
2023-03-07 07:59:37 -08:00
committed by GitHub
parent df6865cd52
commit 7bec461782
44 changed files with 3084 additions and 1610 deletions

View File

@@ -308,7 +308,7 @@
],
"source": [
"from langchain.chains import SequentialChain\n",
"from langchain.chains.base import SimpleMemory\n",
"from langchain.memory import SimpleMemory\n",
"\n",
"llm = OpenAI(temperature=.7)\n",
"template = \"\"\"You are a social media manager for a theater company. Given the title of play, the era it is set in, the date,time and location, the synopsis of the play, and the review of the play, it is your job to write a social media post for that play.\n",