Update Assistant Package Descriptions and Configuration
- Renamed several assistant packages for clarity, including "Entity Extraction" to "Entity Extractor" and "Keyword Extraction" to "Keyword Extractor." - Revised descriptions for various assistants to enhance understanding of their functionalities, such as changing "Extract keywords from text content" to "Extract search keywords." - Added a "uses" field with "search" set to "disabled" in the configuration of each assistant, standardizing their setup. - Updated the "Prompt Optimizer" description to "Optimize prompts for better results" and modified the "QueryDSL Generator" to "Query Builder" for improved clarity. - Ensured consistent naming conventions and descriptions across all assistant packages to enhance user experience and documentation clarity.
This commit is contained in:
parent
750dd311b9
commit
46b4088af3
9 changed files with 190 additions and 181 deletions
|
|
@ -132,7 +132,10 @@ func (ast *Assistant) Stream(ctx *context.Context, inputMessages []context.Messa
|
||||||
fullMessages := historyResult.FullMessages
|
fullMessages := historyResult.FullMessages
|
||||||
|
|
||||||
// Buffer user input messages (use cleaned input without overlap)
|
// Buffer user input messages (use cleaned input without overlap)
|
||||||
ast.BufferUserInput(ctx, historyResult.InputMessages)
|
// Skip if History is disabled in options (for internal calls like needsearch)
|
||||||
|
if opts == nil || opts.Skip == nil || !opts.Skip.History {
|
||||||
|
ast.BufferUserInput(ctx, historyResult.InputMessages)
|
||||||
|
}
|
||||||
ctx.Logger.PhaseComplete("History")
|
ctx.Logger.PhaseComplete("History")
|
||||||
|
|
||||||
// ================================================
|
// ================================================
|
||||||
|
|
|
||||||
|
|
@ -588,15 +588,19 @@ func loadMap(data map[string]interface{}) (*Assistant, error) {
|
||||||
|
|
||||||
i18n.Locales[id] = flattened
|
i18n.Locales[id] = flattened
|
||||||
} else {
|
} else {
|
||||||
// No locales defined, create default with name and description
|
// No locales defined, create default with name and description for all common locales
|
||||||
if assistant.Name != "" || assistant.Description != "" {
|
if assistant.Name != "" || assistant.Description != "" {
|
||||||
defaultLocales := make(map[string]i18n.I18n)
|
defaultLocales := make(map[string]i18n.I18n)
|
||||||
defaultLocales["en"] = i18n.I18n{
|
// Create entries for all common locales so {{name}} can be resolved
|
||||||
Locale: "en",
|
commonLocales := []string{"en", "en-us", "zh", "zh-cn", "zh-tw"}
|
||||||
Messages: map[string]any{
|
for _, locale := range commonLocales {
|
||||||
"name": assistant.Name,
|
defaultLocales[locale] = i18n.I18n{
|
||||||
"description": assistant.Description,
|
Locale: locale,
|
||||||
},
|
Messages: map[string]any{
|
||||||
|
"name": assistant.Name,
|
||||||
|
"description": assistant.Description,
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
i18n.Locales[id] = defaultLocales
|
i18n.Locales[id] = defaultLocales
|
||||||
}
|
}
|
||||||
|
|
|
||||||
326
data/bindata.go
326
data/bindata.go
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "Entity Extraction",
|
"name": "Entity Extractor",
|
||||||
"description": "Extract entities and relationships for knowledge graph",
|
"description": "Extract entities and relationships",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
"max_tokens": 2000,
|
"max_tokens": 2000,
|
||||||
"temperature": 0.2
|
"temperature": 0.2
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Keyword Extraction",
|
"name": "Keyword Extractor",
|
||||||
"description": "Extract keywords from text content",
|
"description": "Extract search keywords",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
"uses": { "search": "disabled" },
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "Need Search",
|
"name": "Reference Checker",
|
||||||
"description": "Determine if query requires external search",
|
"description": "Check if references are needed",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
"max_tokens": 200,
|
"max_tokens": 200,
|
||||||
"temperature": 0.1
|
"temperature": 0.1
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Prompt Optimizer",
|
"name": "Prompt Optimizer",
|
||||||
"description": "Transform user requirements into effective prompts",
|
"description": "Optimize prompts for better results",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
"uses": { "search": "disabled" },
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "QueryDSL Generator",
|
"name": "Query Builder",
|
||||||
"description": "Generate QueryDSL from natural language",
|
"description": "Build database queries",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
"uses": { "search": "disabled" },
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Title Generator",
|
"name": "Title Generator",
|
||||||
"description": "Generate concise titles for conversations",
|
"description": "Generate conversation titles",
|
||||||
"type": "worker",
|
"type": "worker",
|
||||||
"uses": { "search": "disabled" },
|
"uses": { "search": "disabled" },
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue