Replies: 1 comment
-
|
Hello @sgajiani! 👋 I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you on your journey to becoming a contributor. I'm ready to assist while you wait for a human maintainer! 😊 To insert the LLM's output into a SQL table using Langflow, you can follow these steps:
By following these steps, you can construct and execute SQL insert commands using Langflow components. If you encounter issues with accessing keys and values, ensure your template is correctly formatted to match the structure of your data [1][2]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an LLM output returned as json. I further apply Structured Output component to create a structured output to pass to "data to Message" component in an attempt to create a "SQL Insert" command which would then become an input to SQL Query component.
However, Data to Message does not support
results[0]['field1'] notation OR results[0].filed1 notation (dot notation)
results[0][ works fine but results[0][ is dict which has keys as column names and values as my column values and I need to be able to access both to construct the Insert Query.
Any ideas on how to insert LLM's output to insert in a sqlite table?
Beta Was this translation helpful? Give feedback.
All reactions