python

[GPT]Memory on LLMChain

으누아빠 2024. 3. 29. 20:18
반응형

[결과]

Prompt after formatting: You are a helpful AI talking to a human.

System: The human introduces themselves as Hong.

AI: Hello Hong! How can I assist you today?

Human: I live in Seoul

AI: That's great to hear! How can I assist you with anything related to Seoul or anything else today?

Human: What is my name?

AI: Your name is Hong. Human:What is my name? You:

 

ConversationSummaryBufferMemory 내 memory_key 키와 템플릿내 변수명을 일치시킨다. 일치되지 않을경우

메모리내 정보가 전달되지 않음

'python' 카테고리의 다른 글

[GPT] LCEL Based Memory  (0) 2024.03.30
[GPT] Chat Based Memory  (0) 2024.03.30
[GPT] ConversationKGMemory  (0) 2024.03.29
[GPT] ConversationSummaryBufferMemory  (1) 2024.03.29
[GPT] ConversationSummaryMemory  (0) 2024.03.29