Skip to content

Instantly share code, notes, and snippets.

View Tobeyforce's full-sized avatar

Tobias Fors Tobeyforce

  • Utvecklarakademin
  • Sweden
View GitHub Profile
@Tobeyforce
Tobeyforce / gpt_database_context.py
Last active August 18, 2023 15:40
gpt-database-context-provider
#!/usr/bin/env python3
# While it's possible to feed an LLM the context of your database, such as chatgpt with interpreter, you can also manually give GPT the structure of your database.
# This script will output the structure of a postgresql database which you can feed an LLM so that it can write
# accurate SQL-queries for you, or API-design.
# 1. Add this execution rights to the script:
# chmod +x myscript.sh