Eden AI
  1. 文字
Eden AI
  • 人工智能产品
    • AskYoDa
      • 列出项目
      • 检索项目
      • 创建项目
      • 添加文件
      • 添加文本
      • 添加网址
      • 询问 LLM
      • 删除块
      • 列出文件
      • 获取文件
      • 删除文件
      • 获取信息
      • 询问
      • 更新项目
      • 删除项目
    • TranslaThor
      • 列出所有 TranslaThor 项目
      • 创建语言提供者对
      • 列出语言
      • 更新语言
      • 删除语言
      • 翻译
      • 翻译
    • askyoda
      • /aiproducts/askyoda/v2/{project_id}/conversations/
      • /aiproducts/askyoda/v2/{project_id}/conversations/
      • /aiproducts/askyoda/v2/{project_id}/conversations/{conversation_id}/
      • /aiproducts/askyoda/v2/{project_id}/conversations/{conversation_id}/
      • /aiproducts/askyoda/v2/{project_id}/conversations/{conversation_id}/
      • /aiproducts/askyoda/v2/{project_id}/conversations/{conversation_id}/
    • X-Merge
      • 列出 XMerge 项目
      • 列出 doc_parser 项目
      • 创建doc_parser项目
      • 检索 doc_parser 项目
      • 更新 doc_parser 项目
      • 文档解析器启动调用
  • 信息
    • 列出提供商子功能
      GET
  • 音频功能
    • 语音转文本
      • 语音转文本列表作业
      • 语音转文本启动作业
      • 语音转文字删除职位
      • 语音转文本获取工作结果
    • 文本转语音
      • 文字转语音
    • 异步文本转语音
      • 文本转语音列表职位
      • 文本转语音启动作业
      • 文本转语音删除作业
      • 文本转语音获取作业结果
  • 翻译功能
    • 自动翻译
    • 文件翻译
    • 语言检测
  • 视频特点
    • 异步露骨内容检测
      • 视频露骨内容检测列表作业
      • 视频露骨内容检测启动作业
      • 视频露骨内容删除作业
      • 视频露骨内容检测获取作业结果
    • 异步人脸检测
      • 人脸检测列表作业
      • 人脸检测启动作业
      • 人脸检测删除作业
      • 人脸检测获取作业结果
    • 异步标签检测
      • 标签检测列表作业
      • 标签检测启动作业
      • 标签检测删除作业
      • 标签检测 获取作业结果
    • 异步徽标检测
      • 视频徽标检测列表作业
      • 视频标志检测启动作业
      • 视频标志检测删除作业
      • 视频标志检测 获取作业结果
    • 异步对象跟踪
      • 视频对象跟踪列表作业
      • 视频对象跟踪启动作业
      • 视频对象跟踪删除作业
      • 视频对象跟踪获取作业结果
    • 人员跟踪异步
      • 人员跟踪列表职位
      • 人员追踪启动作业
      • 人员追踪删除职位
      • 人员追踪 获取工作结果
    • 异步文本检测
      • 文本检测列表作业
      • 文本检测启动作业
      • 文本检测删除作业
      • 文本检测获取作业结果
  • 文字
    • Chat
      • Chat
      • Chat Stream
    • 代码生成
      POST
    • 匿名化
      POST
    • 代码生成
      POST
    • 自定义文本分类
      POST
    • 自定义命名实体识别
      POST
    • 嵌入
      POST
    • 情绪检测
      POST
    • Entity Sentiment
      POST
    • Generation
      POST
    • 关键词提取
      POST
    • Moderation
      POST
    • 命名实体识别
      POST
    • 抄袭检测
      POST
    • Prompt 优化
      POST
    • 问题解答
      POST
    • 搜索
      POST
    • 情感分析
      POST
    • 拼写检查
      POST
    • 总结
      POST
    • 语法分析
      POST
    • 主题提取
      POST
  • OCR FEATURES
    • 匿名化异步
      • 匿名化列表作业
      • 匿名启动作业
      • 匿名删除职位
      • 匿名获取工作结果
    • 自定义文档解析异步
      • 自定义文档解析列表作业
      • 自定义文档解析启动作业
      • 自定义文档解析删除作业
      • 自定义文档解析获取作业结果
    • Ocr Async
      • Ocr 异步列表作业
      • Ocr 异步启动作业
      • Ocr 异步删除作业
      • Ocr 异步获取作业结果
    • Ocr Tables Async
      • OCR 表列出作业
      • OCR 表启动作业
      • OCR 表删除作业
      • OCR 表获取作业结果
    • 银行支票解析
    • 数据提取
    • 金融解析器
    • 身份解析器
    • 发票解析器
    • OCR
    • 收据解析器
    • 简历解析器
  • 图像
    • Automl 分类
      • Automl 分类 - 创建项目
      • Automl 分类 - 删除项目
      • Automl 分类 - 列出项目
      • 自动分类预测列表作业
      • Automl 分类预测启动作业
      • Automl 分类 - 预测获取工作结果
      • Automl 分类列车列表作业
      • Automl 分类列车启动作业
      • Automl 分类 - 训练获取作业结果
      • 自动分类上传数据列表作业
      • 自动分类上传数据启动作业
      • Automl 分类 - 上传数据获取作业结果
    • 人脸识别
      • 人脸识别-添加人脸
      • 人脸识别-删除人脸
      • 人脸识别 - 列出人脸
      • 人脸识别 - 人脸识别
    • 搜索
      • 搜索-删除阶段
      • 搜索 - 获取图像
      • 搜索 - 列出所有图像
      • 搜索 - 启动相似度
      • 搜索 - 上传阶段
    • Anonymization
    • 背景去除
    • 嵌入
    • 露骨内容检测
    • 脸部对比
    • 人脸检测
    • 图像生成
    • 地标检测
    • Logo 检测
    • 物体检测
    • 问题解答
  • Batch
    • 获取批量作业结果
    • 启动批处理作业
    • 删除批处理作业
    • 列出批处理作业
  1. 文字

Prompt 优化

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/text/prompt_optimization
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/prompt_optimization' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
  "response_as_dict": true,
  "attributes_as_list": false,
  "show_original_response": false,
  "target_provider": "google"
}'
响应示例响应示例
200 - 成功示例
{
  "openai": {
    "missing_information": "What type of entities are you specifically looking to extract (names, locations, organizations, etc.)? Do you have any specific language or data format preferences for the text? Do you need this tool to handle any particular size, complexity, or other special characteristics of the texts?",
    "items": [
      {
        "text": "Given the following text and a list of entities, please extract and list all occurrences of the specified entities in the text. The entities to be extracted are [entities]. The text for entity extraction is [text]."
      },
      {
        "text": "Given the following text, please identify and extract all instances of the specified entities. The entities to look for are [Entity1, Entity2, Entity3]. Here is the text: [Insert Text Here]. Please list the extracted entities in a clear and organized manner."
      },
      {
        "text": "Given the following text and a list of entities, please extract and list all instances of the provided entities within the text. The entities are [list of entities]. The text is as follows: [text]. Please format your response as a bulleted list, with each bullet representing an instance of an entity found in the text."
      }
    ]
  }
}

请求参数

Header 参数
content-type
string 
必需
示例值:
application/json
Authorization
string 
必需
默认值:
Bearer <your_key>
Body 参数application/json
response_as_dict
boolean 
可选
attributes_as_list
boolean 
可选
show_original_response
boolean 
可选
target_provider
string 
必需
google- 谷歌 openai- 开放伊 cohere- 连贯
text
string 
所需提示的描述。
必需
providers
string 
必需
它可以是数据将重定向到的一个(例如:'amazon'或'google')或多个提供商(例如:'amazon,microsoft,google'),以便获得处理后的结果。 还可以使用特定模型调用提供程序(例如:提供程序:'amazon/model1, amazon/model2, google/model3')
示例

返回响应

🟢200成功
application/json
Body
openai
object 
必需
missing_information
string 
必需
items
array [object {1}] 
必需
🟠400请求有误
修改于 2024-04-11 06:55:56
上一页
抄袭检测
下一页
问题解答
Built with