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

Clarification Needed: Unable to Locate MemGPT Class Definition in Repository #1360

Open
hjhmuser opened this issue May 9, 2024 · 1 comment

Comments

@hjhmuser
Copy link

hjhmuser commented May 9, 2024

Hello,

I am currently attempting to replicate and understand the long document QA experiments mentioned in your paper using the source code provided in this repository. However, I have encountered a stumbling block that I hope to get some clarification on.

While going through the source code, especially in the doc_qa_task where it involves using the MemGPT class, I noticed the import statement:

from memgpt import MemGPT, utils

and the instantiation in the code:

memgpt_client = MemGPT()

However, after a thorough search through the repository, I am unable to find the definition or implementation of the MemGPT class. This absence has made it challenging to understand how to proceed with setting up and running the experiments as intended.

Could you please provide guidance on where I might find the MemGPT class, or if there are any additional steps or documentation I should refer to? It's possible that I might have overlooked something or there are updates that are not yet pushed to the repository.

Thank you for your assistance and for sharing your work, which has been incredibly insightful.

@MrFCow
Copy link

MrFCow commented May 17, 2024

I believe the main export is changed, now the export is exposing the function "create_client" instead of the MemGPT class. So you can create a client like:

from memgpt import create_client
chat_client = create_client()
agent_info = chat_client.create_agent(
			name="Test Agent",
			persona="You are an agent, your alias is Johnny \
			"
		)
msg="what's your name"
response = chat_client.user_message(agent_id=agent_id, message=msg)

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

No branches or pull requests

2 participants