golergka
bd277b5327
feat: prune summary buffer ( #4004 )
...
If the library user has to decrease the `max_token_limit`, he would
probably want to prune the summary buffer even though he haven't added
any new messages.
Personally, I need it because I want to serialise memory buffer object
and save to database, and when I load it, I may have re-configured my
code to have a shorter memory to save on tokens.
2023-05-03 22:45:48 -07:00
leo-gan
fd69cc7e42
Removed duplicate BaseModel dependencies ( #2471 )
...
Removed duplicate BaseModel dependencies in class inheritances.
Also, sorted imports by `isort`.
2023-04-06 12:45:16 -07:00
Aratako
df8702fead
Small fix: Remove unused variable summary_message_role ( #1789 )
...
After the changes in #1783 , `summary_message_role` is no longer used in
`ConversationSummaryBufferMemory`, so this PR removes it.
2023-03-19 11:01:03 -07:00
Harrison Chase
951c158106
Harrison/summary message rol ( #1783 )
...
Co-authored-by: Aratako <127325395+Aratako@users.noreply.github.com >
2023-03-19 10:09:18 -07:00
Harrison Chase
276940fd9b
Harrison/official method ( #1728 )
...
Co-authored-by: Aratako <127325395+Aratako@users.noreply.github.com >
2023-03-16 23:20:08 -07:00
Harrison Chase
f276bfad8e
Harrison/chat memory ( #1495 )
2023-03-07 09:02:40 -08:00
Harrison Chase
7bec461782
Harrison/memory refactor ( #1478 )
...
moves memory to own module, factors out common stuff
2023-03-07 07:59:37 -08:00