danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://docs.danswer.dev/
Other
9.77k stars 1.09k forks source link

Usage Report Generation #1647

Closed abdum99 closed 1 week ago

abdum99 commented 2 weeks ago

This PR adds a backend endpoint at /api/admin/generate-usage-report which fetches empty skeletons for ChatMessage and ChatSession.

The skeletons only store non-identifying message_id, session_id, user_id, and time stamps for correlation purposes. The data is then written to CSV files which are stored in the postgres large object file store and sent back to the requesting admin as a single .zip file.

[!Note] Currently the backend does not respect the data range input. I'll be adding that in a separate PR that also adds pagination

image
vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2024 10:59pm