Find answers from the community

M
Martin
Offline, last seen 3 months ago
Joined September 25, 2024
As it it right now, if I ask the chat, it always replies in English no matter which language i submit the question in.
2 comments
M
L
@jerryjliu0 it would be great if you could expand https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_prompts.html with an example that actually allow me to add an additional/custom variable to the prompt.
1 comment
L
M
Martin
·

Prompt

Im using the QuestionAnswerPrompt to generate responses based on our context - works brilliant. The template has two required variables (context_str and query_str), but appears locked to these two. I tried adding a third custom variabel, but cant. What are my options here - is it correct QuestionAnswerPrompt templates only work with the two (and only the two) variables? Assuming yes, how could I make a new template that ALSO uses the context_str?? Its not clear form the documentation.
12 comments
L
M