-
Notifications
You must be signed in to change notification settings - Fork 10
nilRAG Metrics #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
nilRAG Metrics #74
Conversation
This wouldn't be very easy to work with. Think that every time we had a request, that request would be a log, and you would have to process all the logs to get to that. NilAI API produces multiple logs, not only those that you're printing. I would consider maybe putting those metrics to a file, and then getting information from that file. I would also consider giving the filename a random name as there are up to 50 workers and each worker would colide in the same filename. Finally, I don't really know if it fully makes sense to integrate this with the whole codebase as the goal is to have metrics. |
I recommended to @jfdreis to integrate it here since we'll be doing some updates to RAG soon to make it scale and after these updates are done, we'll need more metrics. So it only makes sense to have it here instead of redoing it and redeploying it every time we change RAG. Totally open to suggestions on what is the best way to do this. Maybe a hidden API @jfdreis follow up to @jcabrero to figure out the best way to do this. |
I wanted to double-check some points that might need further discussion. The metrics in nilRAG seem to come from the specific measurements required from @jfdreis rather than from a broader FE or product requirement.
I suggest that the PR stays open for now, and once I have some bandwidth, I can try to transform it into Prometheus metrics that we can access through Grafana. |
Makes sense. My only concern with not merging it is that if something in the API changes, then it won't work out of the box and we'll likely want to get new numbers soon. This is only for us as you said, so I think it'd be fine to merge and keep it as a hidden flag. If you plan on getting Grafana and Prometheus metrics soon, then let's keep it open and you can take over this PR and merge when we have the Prometheus metrics. |
Added metrics to measure communication in time and MBs when handling nilRAG