@@ -15,20 +15,73 @@ python3 -m pip install select_ai
1515
1616## Samples
1717
18- Examples can be found in the samples directory
18+ Examples can be found in the [ / samples] [ samples ] directory
1919
20- ## Contributing
20+ ### Basic Example
21+
22+ ``` python
23+ import select_ai
24+
25+ user = " <your_select_ai_user>"
26+ password = " <your_select_ai_password>"
27+ dsn = " <your_select_ai_db_connect_string>"
28+
29+ select_ai.connect(user = user, password = password, dsn = dsn)
30+ profile = select_ai.Profile(profile_name = " oci_ai_profile" )
31+ # run_sql returns a pandas dataframe
32+ df = profile.run_sql(prompt = " How many promotions?" )
33+ print (df.columns)
34+ print (df)
35+ ```
36+
37+ ### Async Example
38+
39+ ``` python
40+
41+ import asyncio
42+
43+ import select_ai
2144
45+ user = " <your_select_ai_user>"
46+ password = " <your_select_ai_password>"
47+ dsn = " <your_select_ai_db_connect_string>"
2248
23- This project welcomes contributions from the community. Before submitting a pull request, please [ review our contribution guide] ( ./CONTRIBUTING.md )
49+ # This example shows how to asynchronously run sql
50+ async def main ():
51+ await select_ai.async_connect(user = user, password = password, dsn = dsn)
52+ async_profile = await select_ai.AsyncProfile(
53+ profile_name = " async_oci_ai_profile" ,
54+ )
55+ # run_sql returns a pandas df
56+ df = await async_profile.run_sql(" How many promotions?" )
57+ print (df)
58+
59+ asyncio.run(main())
60+
61+ ```
62+ ## Help
63+
64+ Questions can be asked in [ GitHub Discussions] [ ghdiscussions ] .
65+
66+ Problem reports can be raised in [ GitHub Issues] [ ghissues ] .
67+
68+ ## Contributing
69+
70+ This project welcomes contributions from the community. Before submitting a pull request, please [ review our contribution guide] [ contributing ]
2471
2572## Security
2673
27- Please consult the [ security guide] ( ./SECURITY.md ) for our responsible security vulnerability disclosure process
74+ Please consult the [ security guide] [ security ] for our responsible security vulnerability disclosure process
2875
2976## License
3077
3178Copyright (c) 2025 Oracle and/or its affiliates.
3279
3380Released under the Universal Permissive License v1.0 as shown at
3481< https://oss.oracle.com/licenses/upl/ > .
82+
83+ [ contributing ] : https://github.com/oracle/python-select-ai/blob/main/CONTRIBUTING.md
84+ [ ghdiscussions ] : https://github.com/oracle/python-select-ai/discussions
85+ [ ghissues ] : https://github.com/oracle/python-select-ai/issues
86+ [ samples ] : https://github.com/oracle/python-select-ai/tree/main/samples
87+ [ security ] : https://github.com/oracle/python-select-ai/blob/main/SECURITY.md
0 commit comments