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

A primitive NL to SQL chat feature #487

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Davidorenlane
Copy link

@Davidorenlane Davidorenlane commented Mar 11, 2024

Here's a feature that allows you to query the in memory DB (core_main_table) by asking questions in plain English.

image

There are still lots of bugs, but basic queries work OK! (for example "How many messages have I sent to Alex Danilowicz?").

Notes:

  • Currently does not account for messages in group chat vs. not in a group chat, so numbers are misleading.
  • Be sure to use the exact spelling of your contacts' name as it appears in the address book.
  • Requires an OpenAI API Key and internet access
  • Errors (including but not limited to internet connectivity, malformed SQL queries generated by LLM, etc.) are not all handled gracefully (some are OK, like invalid API key)

Copy link

vercel bot commented Mar 11, 2024

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

Name Status Preview Comments Updated (UTC)
leftonread-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2024 4:58am

@Davidorenlane
Copy link
Author

Also, this is of course not production ready! Just fun to play around with!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant