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

Text templating each query selector #192

Open
roskee opened this issue Sep 14, 2024 · 0 comments
Open

Text templating each query selector #192

roskee opened this issue Sep 14, 2024 · 0 comments

Comments

@roskee
Copy link

roskee commented Sep 14, 2024

Can it be possible to customize the result of each query selector? For example, if I had 2 selectors for a question and its answer, I would like to label the resulting two contents as 'Question' and 'Answer'. That way the model knows they are two different context strings. Without this they are sent as one long text. My proposal is to make it possible to template the results as follows

Selector1 Result = 'How is your day?'

Selector2 Result = 'It was good'

template for Selector1 = 'Question: {{result}}\n'

template for Selector2 = 'Answer: {{result}}'

the final string going to the model will be

Question: How was your day?
Answer: It was good
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