Replies: 6 comments 1 reply
-
I would also like to know how to do it |
Beta Was this translation helpful? Give feedback.
-
Maybe you'd like to take a different approach, and this tutorial might help with that: https://youtu.be/OejuvdyN_U8?si=n7hEzY9cSPovmTxL |
Beta Was this translation helpful? Give feedback.
-
@almirb hello, I have actually found your question and would love to know if you actually got the answer. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@HenryHengZJ looking at the tutorial, I have been trying to adapt the example JavaScripts functions from the document you showed us to a SQLite database, currently having this. `const { DataSource } = require('typeorm'); const DATABASE_PATH = path.join(__dirname, 'superheroes.db'); let sqlSchemaPrompt = ''; const AppDataSource = new DataSource({ async function getSQLPrompt() {
} catch (err) { // Call and return the prompt |
Beta Was this translation helpful? Give feedback.
-
@HenryHengZJ even tried to do a custom tool with this so the agents can work with it but nothing. `const sqlite3 = require('sqlite3').verbose(); class SQLiteTool {
} async call(query) { module.exports = { default: SQLiteTool };` It often hits me with
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm creating an agent that can search in documents store OR return info from database. After struggling a little with the SQL Database Chain, I understood that this agent creates but doesn't execute the query.
The other solution is to build a more complex flow using the SQL Prompt template (I was trying to avoid that).
In the chatflow below, what I need to connect to SQL Database Chain to allow running a Custom JS Function for executing and returning the results in the answer?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions