Background: I have an AIPLogic with a LLM function that will generate a bunch of random data (records) and then return those records as a (ideally) new dataset, however, I cannot see how to return a new dataset so I am currently attempting to return new ontology objects.
-
Can AIPLogic create/return a new dataset?
-
Assuming it cannot, then I am trying to create a new ontology Object and use that as the output type, which seems to work okay with 1 record of data but fails with multiple records, which I believe is due to the output type not being a Set, however when I change to it I get this error: Invalid format for an ObjectSet ID: ‘ri.object-set.main.Sales.1001’. Correct format: ri.object-set.main..<locator
-
After I publish the AIPLogic how do I run it? Can it be incorporated into a builder pipeline?
Great questions!
Can AIP Logic Create/Return a new dataset
Logic is designed to interact with your ontology objects, such that it can respect the type system, use actions, and respect user permissions on the objects.
For this reason it does not output datasets, if you do want to output datasets using LLM prompts I would check out the Use LLM board in pipeline builder which is designed for this purpose!
Error on creating multiple objects
Would you mind giving more details about the prompt structure of your AIP Logic file please? Screenshots of the prompts, actions, and objects you are using to help debug this would be really helpful if possible.
After I publish the AIP Logic how do I run it? Can it be incorporated into a builder pipeline
You can run an AIP Logic as a published function in your Foundry tenant functions in Workshop, Automate, etc. If your AIP Logic performs ontology edits using actions, ensure that you wrap the Function in an Action which you can then run from Workshop/Automate to perform any edits!
See the link above about how to call LLMs from a builder pipeline in an efficient manner.
First, when I try to attach a screenshot in the reply it gives me an error here:
An error occurred: Sorry, you can’t embed media items in a post
Next, I got the first part working but I had to explicitly set the ID (primary key) on the form and change the rules to use the parameter instead of using unique identifier
Now I don’t want to explicitly set the ID, I want to generate a unique identifier, but I get this error:
Unknown correction
Invalid PovsJaysonworkmanSales invoiceIdNumber value ‘The sales record for 2023 has been successfully created.’. No PovsJaysonworkmanSales found with that invoiceIdNumber value.
LLM Output
Show raw
“I need to provide the primary key value of the created sales record. Since the system did not return the primary key value directly, I will need to ensure that the correct format is used.”
Does this mean I have to explicitly set the ID or how can I get around this issue?