Skip to content
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

Full text search against logged responses #109

Closed
simonw opened this issue Jul 15, 2023 · 1 comment
Closed

Full text search against logged responses #109

simonw opened this issue Jul 15, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Jul 15, 2023

Could be a really useful feature. Since we have prompt and response text columns, why not enable FTS on them?

Then we can support llm logs -q 'search term'. And have search in the web UI too.

@simonw simonw added the enhancement New feature or request label Jul 15, 2023
@simonw simonw added this to the 0.6 milestone Jul 15, 2023
@simonw
Copy link
Owner Author

simonw commented Jul 15, 2023

I was torn between the following options for searching for logs matching a term:

  • llm logs -q/--query
  • llm logs -s/--search

I chose -q/--query - the -s one could be confused with -s/--system used by the llm prompt command.

I was worried that -q/--query might indicate that this takes a custom SQL query, but I figure I can use --sql or --where for that if I ever implement that feature.

@simonw simonw closed this as completed in 178af27 Jul 15, 2023
simonw added a commit that referenced this issue Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant