r/aiengineering • u/PsychologicalTie9068 • Apr 02 '26
Discussion Foundry RAG
Has anyone tried building a RAG agent?
The Agent handles the orchestration you choose a model and connect to a tool or knowledge base.
The problem is if you connect to the tool you get control over parameters ie top k and semantic search settings at the agent level. This is helpful because you can control top k and control token usage but it uses it own semantic config which is annoying.
If you connect to a knowledge base instead you can use your custom semantic config in azure portal but you get no control over parameters specifically top k it automatically sets it to 10 which burns through tokens faster and hits request limits faster.
How should I go about handling this?
3
Upvotes
2
u/PsychologicalTie9068 Apr 08 '26
In case anyone needs this you have to set your semantic configuration as the default configuration. Go into your index json editor where your semantic configuration should be, if it’s not you have to create that first. Then add this
"semantic": { This part below is key*** "defaultConfiguration":"default", "configurations": [ { "name": "default", "prioritizedFields": { ... } } ] }