Skip to content
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

Recursion error while using Dynamodb for memory #46

Open
Ranjith072 opened this issue Apr 17, 2024 · 0 comments
Open

Recursion error while using Dynamodb for memory #46

Ranjith072 opened this issue Apr 17, 2024 · 0 comments

Comments

@Ranjith072
Copy link

Hello ,
i have followed the use case and got everything to work except when i use dynamodb for memory i always get the error.

` message_history = DynamoDBChatMessageHistory(
table_name=MEMORY_TABLE, session_id=conversation_id
)

memory = ConversationBufferMemory(
    memory_key="chat_history",
    chat_memory=message_history,
    input_key="question",
    output_key="answer",
    return_messages=True,
)

qa = ConversationalRetrievalChain.from_llm(
    llm=llm,
    retriever=faiss_index.as_retriever(),
    memory=memory,    # works if i dont use this option
    return_source_documents=True,
)`

i have tried with different versions of langchain and langchain-community versions without any luck

Screenshot 2024-04-17 at 10 25 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant