Skip to content

How I can use LLM transformer to apply LLM for all data source output and shcema type? #7565

Answered by Hisoka-X
YuriyGavrilov asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't actually tried it, but it's theoretically possible. For each row of data, we convert it to json and send it to LLM.
eg:

name age loc
Jack 24 USA
Tom 18 ENG
{"name":"Jack", "age": 24, "loc": "USA"}      --> LLM (prompt: "check...., the output of LLM should be a json string with field names, identified data category and flag true or false about sensitive") 
{"name":"Tom", "age": 18, "loc": "ENG"}    --> LLM (prompt: "check...., the output of LLM should be a json string with field names, identified data category and flag true or false about sensitive") 

The output by LLM transform:

name age loc llm_output
Jack 24 USA {"name":false, "age": true, "loc": true}
Tom

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriyGavrilov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants