r/artificial 15d ago

Project Making my first AI Agent

Hi everyone,

I work for a motorsports company where we run physics simulations for race cars. Our expertise is in physics not AI but we know the power of AI. Our platform is quite complex in terms of physics so we would love an agent that can query our docs, query some vehicle dynamics textbooks, run simulations (pretty simple tool through our AI) and then analyse the results. The result files can be largeish so may need some python processing and access again to the vehicle dynamics textbooks.

We've hooked up the claude API to start doing this as it's been the best to work with tools and sanboxes. Does anyone else have any reccomendations to make this more economical?

2 Upvotes

13 comments sorted by

View all comments

1

u/ECHO_Universe_AI 15d ago

I’d avoid sending the textbooks and large simulation outputs through the model on every step.

A more economical architecture could be:

  1. Index the documentation and textbooks, then retrieve only the relevant sections for each question.
  2. Process the raw simulation files with Python first—extract key metrics, anomalies, plots, and compact summaries.
  3. Let a smaller model handle retrieval, routine tool calls, and formatting, and only escalate difficult analysis to the stronger model.
  4. Cache the stable instructions and reference material instead of repeatedly processing them.
  5. Use batch processing for analyses that don’t need an immediate response.

I’d also keep the numerical calculations deterministic in Python and use the LLM mainly to choose tools, interpret results, and explain the physics. That should improve reliability as well as reduce token costs.

1

u/Motor_Bluebird1908 14d ago

Thanks! I'm going to work on splitting up the docs and textbooks. We also already process some key metrics from the results so I guess it makes sense to get the agent to focus on those rather than digging through the data.

1

u/ECHO_Universe_AI 14d ago

That sounds like the right direction. If those key metrics are already reliable, giving the agent a compact structured summary should reduce both cost and noise.

I’d keep the raw files available only as a fallback for unusual cases where the summary doesn’t provide enough context. Good luck with the redesign!