langchain-ai / opengpts

MIT License
6.35k stars 833 forks source link

Stateful API #12

Open rdzotz opened 8 months ago

rdzotz commented 8 months ago

Firstly thanks for the awesome work in putting this all together in record time ! One burning question for me is how the current structure of the agents which look to be stateless stacks up against a chain with memory/entity memory ...etc ? conversation = ConversationChain( llm=model, verbose=True, prompt=ENTITY_TASKLIST_MEMORY_CONVERSATION_TEMPLATE, memory=ConversationTaskListMemory(llm=model) )

It would be great to understand the best design pattern in the context of langserve. I noticed a stateful branch which looks promising

hwchase17 commented 8 months ago

working on it, you have keen eyes