feat(plugin): implement INVOKE_RERANK handler with run-scoped authorization

- Add invoke_rerank action handler in plugin handler
- Validate rerank model access via run session
- Cap documents at 64 for API limit
- Return sorted results by relevance score
This commit is contained in:
huanghuoguoguo
2026-05-13 10:36:47 +08:00
parent 2fd126b0d7
commit e81a1af36c
7 changed files with 586 additions and 102 deletions

View File

@@ -388,8 +388,9 @@ export default function PipelineFormComponent({
return null;
}
// For n8n runner config, use N8nAuthFormComponent for form linkage
if (stage.name === 'n8n-service-api' || stage.name === 'plugin:langbot/n8n-agent/default') {
// For old n8n built-in runner config, use N8nAuthFormComponent for form linkage
// New plugin:langbot/n8n-agent/default follows normal plugin runner path below
if (stage.name === 'n8n-service-api') {
return (
<Card key={stage.name}>
<CardHeader>