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

Supporting LLM routing by integrating Not Diamond #1936

Open
devanshrj opened this issue Oct 2, 2024 · 0 comments
Open

Supporting LLM routing by integrating Not Diamond #1936

devanshrj opened this issue Oct 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@devanshrj
Copy link

devanshrj commented Oct 2, 2024

🚀 The feature

For mem0, we would like to add our model router as a component in your library, so that users can automatically route their prompts without relying on complex business logic. I believe Not Diamond might fit in using something like this approach, but what do you think? I'm happy to take on this work if you're open to it.

config = {
    "llm": {
        "provider": "notdiamond",
        "config": [{
            "model": "openai/gpt-4o",
            "temperature": 0,
            "max_tokens": 8000,
        },
        {
            "model": "anthropic/claude-3-5-sonnet-20240620",
            "temperature": 0,
            "max_tokens": 8000,
        }]
    },
}

# Initialize Memory with the configuration
m = Memory.from_config(config)

# Add a memory
m.add("I'm visiting Paris", user_id="john")

# Retrieve memories
memories = m.get_all(user_id="john")

Motivation, pitch

Hi there! I am a big fan of mem0 and would love to integrate Not Diamond into it. Not Diamond automatically routes your prompts to the AI model best-suited to respond to that prompt. By using Not Diamond as an AI “meta-model,” you can achieve state-of-the-art performance that beats every foundation model on every major benchmark.*

*If you’d like to learn more about our routing, check out this example walkthrough video with Tomas, our CEO. You can also

@Dev-Khant Dev-Khant added the enhancement New feature or request label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants