Introduction
Generative agents : What and Why ?
interact with multi-agent
ใช้ LangChain
what you should know
python – data manipulating , algorithm implemenation
Jupyter Notebook
ML – ดฉ NN , loss function , gradient descent
LLMs function , – structure , capabilities , typical applications
setting up your env
ใช้ google colab
github link / src
colab , upload jupyter ที่พึ่ง download จาก github
openAI API – ได้ API key เอาไปใส่ใน colab – jupyter
1st cell – install all necessary libraries ,
2nd cell OpenAI API key
1. Building Your First Generative Agents
Understaning the role of memory ทุกอันที่ผ่าน agent’s sensors จะเป็น
observation – เป็น direct experience and interaction forming the basis of memory
หลังจากนั้น agent จะ synthesize – โดยเป็น reflection – synthesized experiences into abstract concept for deeper insights
– process ตรงนี้ไม่ static แต่มัน perpetual , encodes , interprets memorise in real time
Memory Retrieval ,เมื่อ agent พบ new situation มันจะ
– Salience – determine relevance-เกี่ยวข้อง to current context
