From 7102bfc83a07eefb2f5450607e1a6233556b0060 Mon Sep 17 00:00:00 2001 From: Dimitri Glazkov Date: Thu, 25 Apr 2024 22:46:10 -0700 Subject: [PATCH] Cut down the number of search results to 30. --- .../graphs/bgl/insta/chat-with-tools.bgl.json | 113 ++---------------- .../graphs/bgl/insta/tool-search.bgl.json | 2 +- 2 files changed, 12 insertions(+), 103 deletions(-) diff --git a/seeds/team-experiments/graphs/bgl/insta/chat-with-tools.bgl.json b/seeds/team-experiments/graphs/bgl/insta/chat-with-tools.bgl.json index bf409a26..aec5dfee 100644 --- a/seeds/team-experiments/graphs/bgl/insta/chat-with-tools.bgl.json +++ b/seeds/team-experiments/graphs/bgl/insta/chat-with-tools.bgl.json @@ -1,43 +1,28 @@ { - "title": "Simple Chat Bot ", - "description": "This is the simplest possible chatbot", + "title": "Tool-using Chat Boot", + "description": "This chatbot uses search and get web page tools.", "version": "0.0.1", "nodes": [ { - "id": "curry-dea06ed9", - "type": "curry", + "id": "repeater-b5a64681", + "type": "repeater", "metadata": { "visual": { - "x": -337, - "y": 79 - } + "x": 59.999999999999886, + "y": 0 + }, + "title": "Chat Loop", + "logLevel": "debug" }, "configuration": { - "$board": { + "worker": { "kind": "board", "path": "#940f7c71-f50a-4cd5-ad9b-0c9d07702ab5" } } - }, - { - "id": "repeater-b5a64681", - "type": "repeater", - "metadata": { - "visual": { - "x": 60, - "y": -1.4210854715202004e-14 - } - } - } - ], - "edges": [ - { - "from": "curry-dea06ed9", - "to": "repeater-b5a64681", - "out": "board", - "in": "worker" } ], + "edges": [], "graphs": { "940f7c71-f50a-4cd5-ad9b-0c9d07702ab5": { "title": "Single Turn", @@ -166,82 +151,6 @@ } ], "url": "file://fsapi~insta/chat-with-tools.bgl.json#940f7c71-f50a-4cd5-ad9b-0c9d07702ab5" - }, - "546708aa-d1c8-4f3a-9c27-45f54f1a7e24": { - "title": "Get Web Page", - "description": "Given a URL, replies with the text contents of the Web page.", - "version": "0.0.1", - "nodes": [ - { - "type": "input", - "id": "input", - "configuration": { - "schema": { - "type": "object", - "properties": { - "text": { - "type": "string", - "title": "text" - } - } - } - }, - "metadata": { - "visual": { - "x": -218, - "y": 71 - } - } - }, - { - "type": "output", - "id": "output", - "configuration": { - "schema": { - "type": "object", - "properties": { - "text": { - "type": "string", - "title": "text" - } - } - } - }, - "metadata": { - "visual": { - "x": 357, - "y": 24 - } - } - }, - { - "id": "promptTemplate-edab9017", - "type": "promptTemplate", - "metadata": { - "visual": { - "x": 17, - "y": -21 - } - }, - "configuration": { - "template": "{\"url\":\"{{url}}\",\"content\":\"Show docs\\nBREADBOARD\\nA GENERATIVE AI PROTOTYPE FRAMEWORK\\nGET STARTED →\\nMake Anything\\n\\nBreadboard lets you design sophisticated Generative AI experiences. Build complex workflows visually, free from API wrangling.\\n\\nDebug On the Fly\\n\\nStart making boards and see them visualized in real time.\\n\\nFlexible Kits\\n\\nNo need to reinvent the wheel. From AI to webcam capture, we’ve got you covered.\\n\\nOpen Source\\n\\nWant to contribute? Feel free! Breadboard is completely open source on GitHub.\\n\\nThe Happy Path\\n\\nIf you're eager to start making boards with Breadboard as quickly as possible, here's a yellow brick road that will take you there. It's not quite a tutorial, but more like a step-by-step onboarding guide with some of the best practices baked in.\\n\\nGET GOING →\\nGenerate Web Apps\\n\\nMade something awesome? Share it with others and let them play with it immediately!\\n\\nCopyright 2024 Google LLC. Code licensed under Apache License 2.0\"}" - } - } - ], - "edges": [ - { - "from": "input", - "out": "text", - "to": "promptTemplate-edab9017", - "in": "url" - }, - { - "from": "promptTemplate-edab9017", - "to": "output", - "out": "prompt", - "in": "text" - } - ] } } } \ No newline at end of file diff --git a/seeds/team-experiments/graphs/bgl/insta/tool-search.bgl.json b/seeds/team-experiments/graphs/bgl/insta/tool-search.bgl.json index e1cd89df..e46a2efb 100644 --- a/seeds/team-experiments/graphs/bgl/insta/tool-search.bgl.json +++ b/seeds/team-experiments/graphs/bgl/insta/tool-search.bgl.json @@ -70,7 +70,7 @@ "id": "urlTemplate-77553e6f", "type": "urlTemplate", "configuration": { - "template": "https://app.scrapingbee.com/api/v1/store/google?api_key={SCRAPING_BEE_KEY}&search={search}&language=en" + "template": "https://app.scrapingbee.com/api/v1/store/google?api_key={SCRAPING_BEE_KEY}&search={search}&language=en&nb_results=30" }, "metadata": { "visual": {