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

Using promptimize with other LLMs #24

Open
MNIKIEMA opened this issue Dec 29, 2023 · 0 comments
Open

Using promptimize with other LLMs #24

MNIKIEMA opened this issue Dec 29, 2023 · 0 comments

Comments

@MNIKIEMA
Copy link

Hello,

Firstly, I'd like to express my appreciation for the amazing work on this library. It's been instrumental in my projects.

I'm currently exploring how to adapt it for use with other Large Language Models (LLMs) in conjunction with LangChain. Specifically, I'm looking into inheriting from PromptCase to create a new class for SQL query handling.

Here is my current attempt:

class PromptSqlCase(PromptCase):
    def __init__(self, model, user_input, *args, **kwargs):
        self.model = model
        super().__init__(user_input, *args, **kwargs)
        
        
    def get_prompt_executor(self):
        return self.model
    
    def execute_prompt(self, prompt_str):
        self.response = self.prompt_executor(prompt_str)

        return self.response

However, I'm encountering some challenges:

Integration with Other LLMs: Are there specific considerations or best practices I should be aware of when integrating other LLMs with LangChain using this approach?

Class Implementation: Is my implementation of PromptSqlCase aligning with the library's design principles? If there are any suggested improvements or alternative methods, I would be grateful to learn about them.

Any guidance or resources you could provide would be greatly appreciated. I'm eager to contribute to the library's versatility and would love to share my findings with the community once I've successfully integrated these features.

Thank you for your time and support.

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