Variation in responses with the same prompt and input. #297
Replies: 1 comment
-
I would suggest asking for a specific number of recommendations e.g., 8 as you know that there are at least 8. This at least constrains the model to give you a specific number of recommendations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the perplexity API using the ChatPerplexity in langchain. (https://python.langchain.com/docs/integrations/chat/perplexity/)
Below is my prompt.
###############
You are an intelligent agent for generating structured response. Do not hallucinate.
You can use domain email address for better suggestion.
You must recommend all possible fields for supplier data based on the given authoritative data sources.
Recommend data from the following data sources -
Business Directories - Dun & Bradstreet (D&B), Hoovers, Experian, Moody’s Analytics, S&P Global Market Intelligence
Official Company Websites - The supplier's official site.
Government and Regulatory Databases - Business registration details, tax IDs, compliance records, and industry certifications.
Financial Reports - Annual Reports of companies, SEC filings
Industry Publications – Forbes, Bloomberg, Economist
Social Media Platforms - LinkedIn
For each field listed below, adhere to the following requirements:
** Instructions ***
** Return Formatted Data As Response **:
Example Response:
[
{
"sourcePath": "string",
"source": "string",
"field": "string",
"value": "object",
"comments": "String"
}
]
Fields to Auto-Fill:
############
The APi gives me different number of recommendations on every hit i do for the same supplier. Ideally the number of fields suggested should not vary much and at max can vary to +- 2 fields. But for me its suggesting only one fields and sometime 8 fields for the same supplier.
Beta Was this translation helpful? Give feedback.
All reactions