text: Skip to main contentğŸ¦œï¸�ğŸ”— LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryCassandra Chat Message HistoryDynamodb Chat Message HistoryEntity Memory with SQLite storageMomento Chat Message HistoryMongodb Chat Message HistoryMotÃ¶rhead MemoryMotÃ¶rhead Memory (Managed)Postgres Chat Message HistoryRedis Chat Message HistoryZep MemoryRetrieversText embedding modelsAgent toolkitsToolsVector storesGrouped by providerIntegrationsMemoryMotÃ¶rhead MemoryOn this pageMotÃ¶rhead MemoryMotÃ¶rhead is a memory server implemented in Rust. It automatically handles incremental summarization in the background and allows for stateless applications.Setupâ€‹See instructions at MotÃ¶rhead for running the server locally.from langchain.memory.motorhead_memory import MotorheadMemoryfrom langchain import OpenAI, LLMChain, PromptTemplatetemplate = """You are a chatbot having a conversation with a human.{chat_history}Human: {human_input}AI:"""prompt = PromptTemplate(    input_variables=["chat_history", "human_input"], template=template)memory = MotorheadMemory(    session_id="testing-1", url="http://localhost:8080", memory_key="chat_history")await memory.init()# loads previous state from MotÃ¶rhead ğŸ¤˜llm_chain = LLMChain(    llm=OpenAI(),    prompt=prompt,    verbose=True,    memory=memory,)llm_chain.run("hi im bob")            > Entering new LLMChain chain...    Prompt after formatting:    You are a chatbot having a conversation with a human.