提升文本生成质量的3种方法
针对Pollinations的文本生成服务,可采用以下优化策略:
- Model Selection:先查询可用模型
GET https://text.pollinations.ai/models
,推荐测试gemini
等高级模型 - 提示工程:
- 明确指令:”写300字关于AI伦理的科普短文”
- 添加示例:”仿照这个风格写…”
- 分步引导:”首段定义概念,次段分析利弊”
- Parameter Adjustment:
- 通过POST请求传入
{"temperature":0.7,"max_tokens":500}
- 使用OpenAI兼容端点
POST https://text.pollinations.ai/openai
Configuration parameters
- 通过POST请求传入
补充方案:若效果不稳定,可固定随机种子&seed=固定值
,或通过自托管部署专用模型实例。
This answer comes from the articlePollinations: free big model services in the form of URL splicing and APIsThe