Find answers from the community

Updated 3 months ago

Hi guys,

Hi guys,
I'm working on a project that should leverage LLM(llama 3) to do SQL db retrieval + data analysis/visualisation/EDA on a database. The database has 25+ tables in postgreSQL db on cloud. The input would be the user can request the model to retrieve certain information from the db and do analysis on it. Or just retrieve the required information.


How do I go about this. Langchain has certain issues with integration with llama 3 and building workflow. but would appreciate any thoughts and help!
W
S
3 comments
You can check the text2SQL document here as a base: https://docs.llamaindex.ai/en/stable/examples/pipeline/query_pipeline_sql/?h=text2

And build from there. For SQL queries you may need to check the response that llama3 is producing first.
I see. I'm testing the llama 3 on meta ai platform.
does llamaindex offer the ability to run the sql code and then connect the retrieved code into the analysis part. how does that go about?
Add a reply
Sign up and join the conversation on Discord