diff --git a/docs/logging.md b/docs/logging.md index 84efeb05..c16a7c87 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -190,31 +190,28 @@ You can also use [Datasette](https://datasette.io/) to browse your logs like thi ```bash datasette "$(llm logs path)" ``` + +### Browsing logs using llm-web-ui + +For a more LLM-oriented experience, you can use [`llm-web-ui`](https://github.com/martinklepsch/llm-web-ui) to browse your conversations and responses through a locally running web interface: + +```bash +npx llm-web-ui "$(llm logs path)" +``` + +This launches a web UI that provides a user-friendly way to: +- View all your conversations +- Search through prompts and responses +- Filter conversations by model +- Examine detailed token usage statistics +- Navigate through conversation history + +The web UI is especially helpful when working with multi-turn conversations or when you need to quickly locate specific interactions with your models. + ## SQL schema Here's the SQL schema used by the `logs.db` database: - ```sql CREATE TABLE [conversations] ( [id] TEXT PRIMARY KEY, @@ -257,5 +254,5 @@ CREATE TABLE [prompt_attachments] ( [attachment_id]) ); ``` - + `responses_fts` configures [SQLite full-text search](https://www.sqlite.org/fts5.html) against the `prompt` and `response` columns in the `responses` table.