Using Pathom3 as AI Query Layer for Business Data #230
Replies: 3 comments
-
|
Hi @jiegao19771010. I find the idea fascinating. I didn't have a chance to try something like that myself, but I'm looking forward to hearing about your findings. Please feel free to continue using this discussion to bring in updated points, and other users can also share their thoughts here if they are exploring this AI side. On your questions specifically: I don't see any specific pitfalls, but to be honest, I've been mostly on the user side of AI. I haven't done any development in the field, so I don't have much to contribute here. |
Beta Was this translation helpful? Give feedback.
-
|
I created a simple demo using Pathom3 to explore our Vendor Purchase Order (VPO) data—both Header and Detail—along with related entities like Vendor and Part Master. I found the experience not only straightforward but, most importantly, stable. It performs reliably and, in my view, is a significant improvement over the traditional “AI SQL Generator” approach. In conventional setups, we typically build AI agents that rely on a combination of AI and tool-based APIs. By contrast, Pathom3 offers several key advantages:
|
Beta Was this translation helpful? Give feedback.
-
|
I am considering the possibility of developing functions within Pathom that would facilitate the creation of resolver functions, as well as the automatic generation of indexes based on OpenAPI specifications. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Pathom3 Team,
First, I want to thank you for your incredible work on Pathom3. It is truly a brilliant framework — the attribute-centric, graph-driven model is not only elegant for backend development but opens powerful opportunities in AI-driven systems.
I am currently designing a system where Pathom3 acts as the data query layer for an AI agent. The basic idea is:
• The backend defines resolvers for business data entities (such as Purchase Orders, Vendors, etc.).
• The AI generates EQL queries, selecting attributes based on prompts and context.
• The AI doesn’t need to understand the database schema — it only picks attributes declaratively, and Pathom handles graph resolution automatically.
To further simplify the AI’s task, I’m considering:
• Combining related attributes (for example: grouping ship_to_zip, ship_to_country, ship_to_address1 into a single logical attribute like vpo/ship-to).
• Reducing the surface area of the attribute model to make it easier for AI to reason about available data.
This way, AI prompts and attribute selection remain clean, and internal complexity is hidden behind Pathom’s resolver logic.
I would love to hear your suggestions on:
• Whether you see any potential pitfalls or opportunities for improving this approach.
• Best practices for defining attribute metadata (descriptions, types) that would make AI generation even easier.
• Any features in Pathom3 that could further support an AI-facing usage like this (such as query validation, dynamic attribute discovery, etc.).
I truly appreciate any feedback you can offer. Thank you again for building such an amazing system — Pathom3 is not only powerful for humans but seems incredibly well-suited for machine-driven applications as well.
Best regards,
Jie Gao (gaolinux@sohu.com)
Beta Was this translation helpful? Give feedback.
All reactions