반응형
ConversationSummaryMemory
llm 을을 이용하여 대화내용을 요약하여 메세지에 저장
대화가 길어질수록 효율적
[결과]
{'history': [SystemMessage(content='The human introduces themselves as Hong from South Korea. The AI responds by expressing admiration for their location and wishes they could visit.')]}
'python' 카테고리의 다른 글
[GPT] ConversationKGMemory (0) | 2024.03.29 |
---|---|
[GPT] ConversationSummaryBufferMemory (1) | 2024.03.29 |
[GPT] ConversationBufferWindowMemory (0) | 2024.03.29 |
[GPT] ConversationBufferMemory (0) | 2024.03.29 |
[GPT] get_openai_callback (0) | 2024.03.28 |