- Newest
- Most votes
- Most comments
The inconsistency you're experiencing with Amazon Titan Express model responses is not uncommon and can be attributed to the nature of large language models and the specific configuration of the Express model. However, there are ways to potentially improve consistency:
-
Adjusting input parameters: You can try tuning the
temperatureandtopPvalues in thetextGenerationConfigof your request. Lowertemperaturevalues (closer to 0) will make the model's outputs more deterministic and focused, while higher values (closer to 1) increase randomness. Similarly, a lowertopPvalue will make the model consider only the most probable tokens, potentially leading to more consistent outputs. -
Using the Converse API: The Converse API could potentially provide more consistent results, as it's designed for more structured, conversational interactions. It allows you to include system prompts and maintain context across multiple turns, which might help in getting more consistent responses.
-
Improving prompt engineering: You could try to make your prompt more specific and structured. For example, you could explicitly ask for clothing recommendations based on the weather forecast, which might guide the model to more consistently provide the type of answer you're looking for.
-
Consider using Premier: As you've noticed, the Premier model seems to provide more consistent results for your use case. If consistency is crucial for your application, and if it's feasible within your constraints, using the Premier model might be the most reliable solution.
It's important to note that while these strategies can help improve consistency, some level of variation is inherent in the nature of these models, especially with more affordable options like Express. The trade-off between cost and consistency is a common consideration when choosing between different tiers of language models.
Remember to test these adjustments thoroughly to find the configuration that works best for your specific use case.
Sources
Amazon Titan Text models - Amazon Bedrock
Using the Converse API - Amazon Bedrock
Relevant content
asked 2 years ago
asked 2 years ago
asked 2 years ago
