Hi ,
We're building a production-grade Oracle Select AI Agent for NL2SQL over Oracle Autonomous Database using:
- AI Profile
- Team
- Agent
- Task
- SQL Tool
- Semantic Views
- Oracle APEX as the UI
The agent is working well, but as we've added more business rules and guardrails, our instructions have grown to approximately:
- SQL Tool: ~86K characters
- Task: ~11K characters
Most of these instructions enforce behavior (SQL patterns, validation, formatting, ranking rules, hallucination prevention, etc.), while the business model itself is still relatively small (currently only two Semantic Views).
My questions are:
- Is this the right direction, or is such a large prompt a sign that some of the logic should move elsewhere?
- What are Oracle's best practices for deciding whether business logic belongs in:
- Prompt instructions
- Semantic Views
- Helper views/tables
- Other metadata?
- As the agent grows to dozens of Semantic Views and hundreds of KPIs, what is the recommended architecture to keep it maintainable and scalable?
- Are there any Oracle best practices or reference architectures for building enterprise-grade Select AI Agents that remain accurate over time?
I'd really appreciate guidance from the Oracle engineering team on how you would architect this kind of solution for long-term production use.
Thanks!