Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomercagan/0feb75c1943f4a7131d74200b4cea2c3 to your computer and use it in GitHub Desktop.
Save tomercagan/0feb75c1943f4a7131d74200b4cea2c3 to your computer and use it in GitHub Desktop.
Example of simple Text to SQL based on source CSV file using SQLite and OpenAI (through langchain)
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomercagan
Copy link
Author

tomercagan commented Sep 3, 2024

Note there is a mistake in the second results because it fetches both "US" and "Austria" due to the loose where criterion ((LIKE '%us%')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment