deepset-ai / haystack-core-integrations

Additional packages (components, document stores and the likes) to extend the capabilities of Haystack version 2.0 and onwards
https://haystack.deepset.ai
Apache License 2.0
108 stars 105 forks source link

compoment like langchain sql agent #611

Open DavidSche opened 6 months ago

DavidSche commented 6 months ago

Is your feature request related to a problem? Please describe.

Provide a component that can extract and generate sql from dialogue questions and answers like langchain sql agent, obtain data in relational databases, and use LLM to perform statistical analysis on the data

Describe the solution you'd like

You can access the data table through the database connection configured by the component, generate the corresponding SQL statement through the description information of the database table and fields, query the data, and then use LLM to perform statistical analysis on the data.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

masci commented 6 months ago

Hi @DavidSche do you have any pointer to help us understanding how this component should look like? A fully-working langchain app would be best but link to docs or blog posts would be super helpful