Closed buddypia closed 4 months ago
The 400 error in the "Summarize Scrapped Doc LLM" step indicates a "Bad Request" issue. This error typically occurs when the server cannot understand the request due to malformed syntax or invalid input data.
To resolve this, ensure the following configurations are correctly set:
Model Configuration: Verify that the model configuration in "System Settings—Model Provider" is complete and correct. Refer to the model configuration instructions for guidance.
Prompt Customization: Ensure that the input prompts are correctly formatted and that any special variables are properly inserted. Use the variable insertion menu by typing "/" or "{" to include variables from preceding flow nodes.
Memory Settings: Check if the memory settings are appropriately configured for your use case. In workflow applications, system memory is turned off by default.
JinaReader Configuration: If using the JinaReader tool, ensure it is properly configured with the correct URL and parameters.
Additionally, the error might be related to handling long lines or exceeding token limits. The function may recursively call itself if the summarized content exceeds the token limit, which could lead to inefficiencies or potential infinite loops. Ensure that the content being processed is within the acceptable token limits.
If the issue persists, consider implementing exception handling for null values or default values in the code parsing node verification, as suggested in a similar issue [1].
For more detailed error handling and retries, Dify captures exceptions during HTTP request execution and returns a NodeRunResult
with a failed status and relevant error information [2][3].
To continue talking to Dosu, mention @dosu.
Hello I imported this DSL, it looks like you need to change the things like this.
FYI, you can use this feature to filter the content.
@crazywoola Thank you. Your response. The cause of the error has been identified. The newline character needed to be escaped. text: 'ab\ncd' <-- error text: 'ab\\ncd' <-- ok
My code:
Self Checks
Dify version
0.6.11
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
DSL import
{ "model_mode": "chat", "prompts": [ { "role": "system", "text": "あなたは文章の要約AIです。\n\n# Instructions\n- 日本語で要約\n- 4000文字まで要約", "files": [] }, { "role": "user", "text": "\nTITLE: Notion AI\nAUTHORS: None\nPUBLISH DATE: None\nTOP_IMAGE_URL: \nTEXT:\n\n料金営業に問い合わせるログイン無料でNotionをダウンロード無料でNotionをダウンロードAIドキュメントWikiプロジェクトカレンダーNewテンプレートギャラリーユーザー事例コネクト無料でNotionをダウンロードログインヘルプセンターガイドNotion AI← ガイドNotionの新しい使い方の発見やスキルアップにご利用ください。Notion AINotion AIで情報を簡単に引き出せるようにして、時間を節約する顧客や潜在顧客をサポートする場合でも、社内のサポートリクエストの場合でも、新入社員をサポートする場合であっても、誰もがWikiの情報にアクセスする必要があります。Notion AIを活用し、チームメンバーがより迅速に必要な情報を見つけられる環境を構築しましょう。 約 8分で読めますQ&Aで仕事に関する回答をすばやく得る Q&Aがどのようにワークスペースの情報をまとめてユーザーの質問に回答するのかを理解し、Notio AIアドオンの価値を最大限に引き出す方法を学びましょう。 約 10分で読めますQ&Aで個人の情報ライブラリから新たな洞察を得る個人的なメモやリサーチなどからどんな情報が得られるか、Q&Aの使い方をお試しください。ただ質問するだけです。 約 10分で読めますNotion AIを使って、効果的なより良いメモやドキュメントを作成Notion AIの機能を活用して、大きな視野で考え、作業をスピードアップし、創造性を高めましょう。コネクテッドワークスペースの中で、Notion AIを駆使したテキストの書き換えや単純タスクの自動化、新規コンテンツの生成などを実施する方法について説明します。約 8分で読めますNotion AIを使って可能性を広げる人工知能とは何か、またこのテクノロジーの現段階での機能や限界について説明します。 約 3分で読めますHow tech teams can use Notion AI to boost productivityNo matter your role in tech, Notion AI can significantly enhance your productivity. By providing instant answers, generating or improving content, and summarizing databases, it allows you to focus more on the core tasks at hand.3分の動画How marketing teams can use Notion AI to boost productivityNotion AI simplifies your work as a marketer by writing brand new pages for you, extracting key insights from database pages, and quickly showing you the information you need.3分の動画10 AI prompts to help marketers write better copy, fasterNotion AI gives you endless inspiration for content and helps you whip up blog posts, press releases, social media content, white papers, and more, to boost both creativity and efficiency. 約 7分で読めます5 ways to get more value out of your reading list with Notion AIBuild your reading list or collect resources in Notion, then use AI to apply what you’ve learned. Create summaries of documents, surface key insights from articles you’ve saved, translate or simplify text and much more. 約 6分で読めますHow marketing and sales teams can enhance creativity and productivity with Notion AIExplore how to use Notion AI to optimize your marketing and sales efforts to gather more leads, better understand your customers, and close more deals.約 9分で読めますHow product teams boost productivity and spark new ideas with Notion AIExplore ways product teams can use artificial intelligence to enhance their productivity, creativity, and workflow efficiency.約 10分で読めますOrganize your everyday life with Notion AIAdd AI to your workspace to boost productivity, creativity, and effectiveness for travel or meal planning, career development, and more.約 9分で読めます5 AI prompts to surface fresh insights from your databasesBring the power of AI into your databases with an AI autofill property. Generate summaries, insights, takeaways, or any kind of helpful information based on the page content.約 8分で読めます\n", "files": [] } ] }
{ "text": "## Notion AI: あなたの仕事を加速させるAIアシスタント\n\nNotion AIは、日々の業務効率化から創造的な活動まで、幅広くユーザーを支援する強力なAIツールです。\n\nNotion AIでできること:\n\n 情報へのアクセスを容易にする: Notion AIは、Wikiやドキュメントから必要な情報を瞬時に引き出し、チーム全体の情報共有を促進します。特に、顧客対応、社内サポート、新入社員研修などで力を発揮します。\n 質問への回答を迅速に得る: Notion AIは、ワークスペース内の情報に基づいてユーザーの質問に自動的に回答します。これにより、時間と労力を大幅に節約できます。\n メモやドキュメント作成を効率化: Notion AIは、テキストの書き換え、要約、翻訳、新規コンテンツの生成など、様々な機能を提供し、より質の高いコンテンツ作成を支援します。\n データベースから新たな洞察を抽出: Notion AIは、データベース内の情報を分析し、要約、洞察、要点などを自動生成します。\n マーケティングと営業活動を最適化: Notion AIは、ブログ記事、プレスリリース、ソーシャルメディアコンテンツなどの作成を支援し、マーケティング活動を強化します。また、顧客理解を深め、営業活動を効率化するのにも役立ちます。\n 製品開発を促進: Notion AIは、製品チームの生産性、創造性、ワークフロー効率を向上させます。\n 日常生活を整理: Notion AIは、旅行や食事の計画、キャリア開発など、日常生活の様々な場面で生産性と効率性を高めます。\n\nNotion AIのメリット:\n\n 時間節約\n 生産性向上\n 創造性向上\n 情報共有の促進\n 意思決定の迅速化\n\nNotion AIは、あらゆる業種、あらゆる規模のチームに最適なAIアシスタントです。\n\n詳細はこちら:\n\n Notion AIガイド: Notion AIの使い方を詳しく解説したガイドです。\n 動画: テクノロジーチームやマーケティングチームがNotion AIを活用して生産性を向上させる方法を紹介した動画です。\n* 記事: Notion AIを使って読書リストからより多くの価値を引き出す方法、マーケティングと営業チームがNotion AIで創造性と生産性を高める方法、製品チームがNotion AIで生産性を向上させ、新しいアイデアを生み出す方法など、Notion AIの活用事例を紹介した記事です。\n\nNotion AIは、あなたの仕事をよりスマートかつ効率的にする強力なツールです。ぜひお試しください。 \n", "usage": { "prompt_tokens": 1529, "prompt_unit_price": "0.00", "prompt_price_unit": "0.000001", "prompt_price": "0E-7", "completion_tokens": 91, "completion_unit_price": "0.00", "completion_price_unit": "0.000001", "completion_price": "0E-7", "total_tokens": 1620, "total_price": "0E-7", "currency": "USD", "latency": 13.085878840000078 } }