diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-10-17 17:41:47 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-10-17 17:41:47 -0400 |
| commit | 98d0bba3e59ab7ec9dfbf5e6c9c58e6ac1d22ae3 (patch) | |
| tree | d837c8476b439817d226775e2e2c787216790492 /src/client/views/nodes/chatbot/tools/SearchTool.ts | |
| parent | 14f412611299fc350f13b6f96be913d59533cfb3 (diff) | |
added create text doc tool with font color and background color and fixed no tool
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/SearchTool.ts')
| -rw-r--r-- | src/client/views/nodes/chatbot/tools/SearchTool.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/chatbot/tools/SearchTool.ts b/src/client/views/nodes/chatbot/tools/SearchTool.ts index fd5144dd6..267dab6ff 100644 --- a/src/client/views/nodes/chatbot/tools/SearchTool.ts +++ b/src/client/views/nodes/chatbot/tools/SearchTool.ts @@ -44,9 +44,10 @@ export class SearchTool extends BaseTool<SearchToolParamsType> { }); const data = results.map((result: { url: string; snippet: string }) => { const id = uuidv4(); + this._addLinkedUrlDoc(result.url, id); return { type: 'text', - text: `<chunk chunk_id="${id}" chunk_type="text"><url>${result.url}</url><overview>${result.snippet}</overview></chunk>`, + text: `<chunk chunk_id="${id}" chunk_type="url"><url>${result.url}</url><overview>${result.snippet}</overview></chunk>`, }; }); return data; |
