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

Support for LM Studio LLMs and Embedding models #1646

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Dev-Khant
Copy link
Collaborator

@Dev-Khant Dev-Khant commented Aug 5, 2024

Description

Add support for LM Studio LLMs and Embedding models.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (does not change functionality, e.g. code style improvements, linting)
  • Documentation update

How Has This Been Tested?

Please delete options that are not relevant.

  • Unit Test
  • Test Script (please provide)
import os
from mem0 import MemoryClient, Memory

os.environ["OPENAI_API_KEY"] = "sk-Ixx"

config = {
    "llm": {
        "provider": "lmstudio"
    },
}

memory = Memory.from_config(config)

memory.add("Loves to play football", user_id="test")

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

@Dev-Khant Dev-Khant marked this pull request as ready for review August 5, 2024 20:15

m = Memory.from_config(config)
m.add("I'm visiting Paris", user_id="john")
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tried running these configs for embedders?
Especially for Ollama and LM Studio. I think they are error-prone.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hey I tested it out and it seems to have been working properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool! I was just worried about the case with Qdrant as default db. Anyways it's updated in docs now!
Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants