Skip to content

[Feature]: 允许提示词模板自定义添加和指定 #578

@JuLian1130

Description

@JuLian1130

Problem Statement

别的功能还没有测试,至少在add_resource生成摘要时,生成的摘要同质化很严重,导致召回率严重低于召回原始文档。
分析其主要原因是工程文档原本都是同一主题,摘要后类似‘该函数主要供 python 开发人员使用,兼容python 3.8 之后的版本。’这样的文本大量重复,摘要之间的文本相似度非常高,而函数主要功能、用法的描述却几乎没有。

Proposed Solution

所以对于与业务耦合的提示词,希望提供注入提示词或指定自定义提示词模板的功能。这样提示词才能适配业务和具体文档。

Alternatives Considered

No response

Feature Area

Core (Client/Engine)

Use Case

add_resource生成工程文档、api 文档等的摘要。

Example API (Optional)

Additional Context

No response

Contribution

  • I am willing to contribute to implementing this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions