mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

[Feature Request] Prompt Customization

Open cachho opened this issue 2 years ago • 2 comments

This is also part of #105, currently this is the prompt that's always used:

prompt = f"""Use the following pieces of context to answer the query at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.
        {context}
        Query: {input_query}
        Helpful Answer:
        """

this should be customizable. I think everyone agrees. The question is whether it should be a class attribute of the app, or on a per question basis.

cachho avatar Jul 01 '23 12:07 cachho

I would like to see #63 merged first, so we don't have a merge conflict. Then I can work on this.

cachho avatar Jul 02 '23 17:07 cachho

The question is whether it should be a class attribute of the app, or on a per question basis.

Although it does add more (optional) boilerplate, the per question basis allows for higher customization. Also, we have not thought of a way to implement "global" class attribute settings, so this also speaks for the per question variant.

cachho avatar Jul 02 '23 17:07 cachho

Waiting to see if we can merge #63, then this should be easy.

cachho avatar Jul 06 '23 20:07 cachho