-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Possible mistake in property's docstring of ConversationBufferWindowMemory #18080
Closed
2 tasks done
Comments
dosubot
bot
added
Ɑ: memory
Related to memory module
🤖:docs
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
labels
Feb 25, 2024
@lgabs nice catch ,created a PR for the fix. |
Merged |
@keenborder786 am I mistaken or there is still a change to make in I've updated this in this new PR: #18136 |
al1p
pushed a commit
to al1p/langchain
that referenced
this issue
Feb 27, 2024
…rWindowMemory (langchain-ai#18090) A minor doc fix stated in langchain-ai#18080
al1p
pushed a commit
to al1p/langchain
that referenced
this issue
Feb 27, 2024
…nBufferWindowMemory (langchain-ai#18136) minor fix stated in langchain-ai#18080
haydeniw
pushed a commit
to haydeniw/langchain
that referenced
this issue
Feb 27, 2024
…rWindowMemory (langchain-ai#18090) A minor doc fix stated in langchain-ai#18080
haydeniw
pushed a commit
to haydeniw/langchain
that referenced
this issue
Feb 27, 2024
…nBufferWindowMemory (langchain-ai#18136) minor fix stated in langchain-ai#18080
gkorland
pushed a commit
to FalkorDB/langchain
that referenced
this issue
Mar 30, 2024
…rWindowMemory (langchain-ai#18090) A minor doc fix stated in langchain-ai#18080
gkorland
pushed a commit
to FalkorDB/langchain
that referenced
this issue
Mar 30, 2024
…nBufferWindowMemory (langchain-ai#18136) minor fix stated in langchain-ai#18080
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Issue with current documentation:
Readiing
ConversationBufferWindowMemory
class, it seems that the propertybuffer
returnsself.buffer_as_messages
ifself.return_messages
isTrue
, otherwise it returnsself.buffer_as_str
.langchain/libs/langchain/langchain/memory/buffer_window.py
Lines 17 to 21 in 7fc9034
However, the docstrings of these properties
buffer_as_str
andreturn_messages
seem inverted when they sayTrue
andFalse
respectively:langchain/libs/langchain/langchain/memory/buffer_window.py
Lines 22 to 30 in 7fc9034
langchain/libs/langchain/langchain/memory/buffer_window.py
Lines 32 to 35 in 7fc9034
Idea or request for content:
No response
The text was updated successfully, but these errors were encountered: