It won't because the amount of documents found by the search is limited ( and so is the prompt context ) so by design the task that is being solved by the index is finding an answer within a single document in ideal scenario
It would be a lot more text in this case which would take quite a long time to execute across multiple calls - I was thinking more in terms of knowledge graphs and metadata added on top
I'll try tomorrow, I dismissed it initially because I thought It'd have to return all the documents and use the context from all of them which'd result in a huge context at the end
But if you assume if all the context is relevant? I.e. in my example, every document is talking about an application so I'd basically be asking it to count the amount of documents that mention a unique application