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

How does Funcchain handle different prompt templates? #19

Open
ahuang11 opened this issue Feb 8, 2024 · 3 comments
Open

How does Funcchain handle different prompt templates? #19

ahuang11 opened this issue Feb 8, 2024 · 3 comments

Comments

@ahuang11
Copy link
Contributor

ahuang11 commented Feb 8, 2024

Hi again. I'm wondering, does funcchain handle different chat templates internally?

e.g. for Llama

<s>[INST] <<SYS>>
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible.
<</SYS>>

 [/INST]

vs Mistral

text = "<s>[INST] What is your favourite condiment? [/INST]"
"Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> "
"[INST] Do you have mayonnaise recipes? [/INST]"

References:
https://www.reddit.com/r/LocalLLaMA/comments/1afweyw/comment/kofabzx/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
https://www.promptingguide.ai/models/mistral-7b#chat-template-for-mistral-7b-instruct

@shroominic
Copy link
Owner

Its just using the langchain templating so langchain_community is doing all the work converting every model provider.

@ahuang11
Copy link
Contributor Author

@shroominic shroominic reopened this Feb 14, 2024
@shroominic
Copy link
Owner

yess true we discussed in discord need to look into that!

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

2 participants