Help: Issues integrating Code Node with Knowledge Base Node and Output Length Limit in Knowledge Pipelines #31906
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.I am currently using the Knowledge Pipeline feature in the Enterprise version of Dify and have encountered two issues. I would appreciate any assistance: Issue 1: Code Node output not recognized by Knowledge Base NodeScenario Description: Problem: My Code: Questions:
Issue 2: Code Node Output List Length Limit (Enterprise)Error Message: Attempted Solution: After running helm upgrade, the configuration does not seem to have taken effect, and the error persists. Questions: 2. Additional context or commentsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @finrod86921812! I'm Dosu and I’m helping the dify team. For the Code Node output to be recognized by the Knowledge Base Node, make sure your function returns a dictionary with the expected key (like About the output length limit: the default is 30 elements, controlled by the environment variables If you still hit the limit, check if your deployment uses a different environment variable (like Let me know if you need example code for a specific chunk structure or more details on Helm configuration! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Your method didn’t work.
I eventually found the solution. It turns out the configuration differs between Dify Enterprise and the Community version.
I added the following environment variables under the api section in values.yaml:
After applying this configuration, the error no longer occurs.