I'm doing a agentic RAG/report of some documents. Said documents are stored in a chroma database, which I handle through a manager class that was codded using singleton pattern for instantiating.
I'm contemplating the possibility of giving access to the database to multiple agents via tools, as i'm dividing the responsabilities in other to improve context usage and output quality, mainly on the document report crew.
For this to be possible, does my manager database have to have async query and search methods? If so, how to handle it on the tool side? Only with await
or with gather
or what?