Hi!
I have an ontology object type with a linked type that I want to use as context in an AIP Logic block.
Goal:
Pass fields from an object plus fields from linked object as a string input to the LLM.
What I tried:
I found that I can include both the object and the linked object using the Query Tool inside the LLM block. However, I can’t filter rows with this approach. Without filtering, the query pulls all rows, which makes this approach not scalable. OSQL row limits does not solve the problem because row precedence is undefined.
How would I give fields from both objects from a filtered set as context?
Thank you!
Screenshot of current attempt below.
Below is tools query of whole object + linked in LLM block


