最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - How to handle multiple agents accessing the same database? - Stack Overflow

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论