Submitted by jaxolingo t3_125qztx in MachineLearning
jaxolingo OP t1_je7c63z wrote
Reply to comment by Cantareus in [D] The best way to train an LLM on company data by jaxolingo
Cool, this is exactly the approach I had in mind that the model would take
gstatton t1_je7mwmv wrote
I’ve done something similar to this, but I created a view in snowflake, dumped the ‘describe table <table-name>’ to CSV, used that CSV descriptor in the head of the prompt, and asked the LLM to generate a SQL query from the user’s question using the provided table schema…I’ll take the model’s return and pass it directly to snowflake, return it as a data frame, and then send that back to the LLM to get a text summary of the query results
You can also use LangChain to set up the chain to do this automatically..
Viewing a single comment thread. View all comments