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

fix: read embedding_model and embedding_dim from embedding_config #1596

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

jward92
Copy link
Contributor

@jward92 jward92 commented Jul 31, 2024

Please describe the purpose of this pull request.
Fix a bug with the memgpt list sources CLI command.

How to test
In a fresh project, you can load a simple data source and run memgpt list sources which should break with AttributeError: 'SourceModel' object has no attribute 'embedding_dim'. Did you mean: 'embedding_config'?

Have you tested this PR?
Yes. Tested this change using

memgpt load directory --name test --input-dir ~/testing/memgpt_data_sources
memgpt list sources

Related issues or PRs
#1587

@sarahwooders sarahwooders changed the title read embedding_model and embedding_dim from embedding_config fix: read embedding_model and embedding_dim from embedding_config Jul 31, 2024
@sarahwooders sarahwooders self-requested a review July 31, 2024 05:24
Copy link
Collaborator

@sarahwooders sarahwooders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks so much for fixing this!

@sarahwooders sarahwooders merged commit a8726f4 into cpacker:main Jul 31, 2024
9 of 12 checks passed
@jward92
Copy link
Contributor Author

jward92 commented Jul 31, 2024

lgtm - thanks so much for fixing this!

No problem!

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

Successfully merging this pull request may close these issues.

2 participants