Welcome to Portkey Forum

Updated 2 months ago

Responding to open-ended questions using the perplexity api

Hello I am using the perplexity API. I have an open question query - i.e users are allowed to ask any question in an open search. I have the following system prompt: *Your task is to respond to the question by analyzing the most recent content from the internet. Please put your response in a paragraph format and do not exceed more than 200 words. When answering do not cut off your sentences.. * The responses get cut off - meaning the last sentence is usually incomplete and doesn't finish the thought. In the user prompt I simply have "{{question}}" . Any ideas on how to not let Perplexity provide sentences at the end that are cut off? Do I need to add more context in the User prompt in Portkey?
V
1 comment
Answering this on #prod-discussions!
Add a reply
Sign up and join the conversation on Discord