feat(llm): introduce request-local source reference aliases
Replace raw chunk/document/KB IDs in LLM context with short cN/dN/bN/wN aliases, decode tool arguments on the way in, and expand compact <ref/> citations to the public <kb>/<web> format before user-facing output.
This commit is contained in:
@@ -103,7 +103,7 @@ func buildMissingColumnSuggestion(sqlErr error, schema *TableSchema) string {
|
||||
}
|
||||
|
||||
type DataAnalysisInput struct {
|
||||
KnowledgeID string `json:"knowledge_id" jsonschema:"id of the knowledge to query"`
|
||||
KnowledgeID string `json:"knowledge_id" jsonschema:"short dN document ID to query"`
|
||||
Sql string `json:"sql" jsonschema:"SQL to be executed on knowledge"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user