Skip to content

Commit

Permalink
update install_pip.md
Browse files Browse the repository at this point in the history
  • Loading branch information
george1459 committed Apr 7, 2024
1 parent d8acbd2 commit 9980ab0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/install_pip.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,11 @@ You should be good to go! In a separate terminal, run `export OPENAI_API_KEY=[yo
from suql import suql_execute
# e.g. suql = "SELECT * FROM restaurants WHERE answer(reviews, 'is this a family-friendly restaurant?') = 'Yes' AND rating = 4;"
suql = "Your favorite SUQL"
suql_execute(suql)
```

# e.g. table_w_ids = {"restaurants": "_id"}
table_w_ids = "mapping between table name -> unique ID column name"

suql_execute(suql, table_w_ids)
```

Check out [API documentation](https://stanford-oval.github.io/suql/suql/sql_free_text_support/execute_free_text_sql.html) for details.

0 comments on commit 9980ab0

Please sign in to comment.