Skip to content

sib-swiss/chat-logs-viewer

Repository files navigation

🔬 Expasy chat logs viewer

Deploy to GitHub Pages

A lightweight web app for visually exploring conversation logs generated by sib-swiss/sparql-llm chat applications.

Note

🔗 Use it directly at sib-swiss.github.io/chat-logs-viewer

🐍 Merge and preprocess logs

Put the JSONL logs files in the data/logs/ folder, then run:

uv run merge_logs.py

The merge log file will be available at data/langfuse.jsonl

Build training dataset using only the successful SPARQL queries and their related question rom the merged logs file:

uv run prepare_training_set.py data/langfuse.jsonl

🛠️ Website development

Website built with SolidJS and SolidStart.

📥 Install dependencies

Requirements: NodeJS >22

npm i

⚡ Start dev server

npm run dev

📦 Build for production

Build for deployment on static pages in .output/public:

npm run build

Test the build locally:

npx http-server .output/public/

Note

The static website deployed at sib-swiss.github.io/chat-logs-viewer is automatically updated on every push by a GitHub action workflow.

🧹 Maintenance

Format with prettier and lint with eslint:

npm run fmt

Note

Formatting will be run automatically when you commit with husky and lint-staged.

Upgrade dependencies in package.json:

npm run upgrade

About

🔬 Web app to visually explore conversation logs generated by the ExpasyGPT chat

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors