select-ai 1.0.0.dev6__tar.gz → 1.0.0.dev7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of select-ai might be problematic. Click here for more details.

Files changed (62) hide show
  1. {select_ai-1.0.0.dev6/src/select_ai.egg-info → select_ai-1.0.0.dev7}/PKG-INFO +1 -1
  2. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/README.md +1 -1
  3. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/conversation_chat_session.py +2 -2
  4. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/conversations_list.py +2 -2
  5. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_chat.py +2 -2
  6. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_create.py +2 -2
  7. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_explain_sql.py +2 -2
  8. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_pipeline.py +2 -2
  9. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_run_sql.py +2 -2
  10. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_show_sql.py +2 -2
  11. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profile_sql_concurrent_tasks.py +2 -2
  12. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/profiles_list.py +2 -2
  13. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/vector_index_create.py +2 -2
  14. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/vector_index_delete.py +2 -2
  15. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/vector_index_list.py +2 -2
  16. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/async/vector_index_rag.py +2 -2
  17. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/conversation_chat_session.py +2 -2
  18. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/conversation_create.py +2 -2
  19. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/conversation_delete.py +2 -2
  20. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/conversations_list.py +2 -2
  21. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/create_ai_credential.py +2 -2
  22. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/disable_ai_provider.py +2 -2
  23. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/enable_ai_provider.py +7 -13
  24. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_chat.py +2 -2
  25. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_create.py +2 -2
  26. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_delete.py +2 -2
  27. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_explain_sql.py +2 -2
  28. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_gen_multi_table_synthetic_data.py +2 -2
  29. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_gen_single_table_synthetic_data.py +2 -2
  30. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_narrate.py +2 -2
  31. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_run_sql.py +2 -2
  32. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profile_show_sql.py +2 -2
  33. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/profiles_list.py +3 -3
  34. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/vector_index_create.py +2 -2
  35. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/vector_index_delete.py +2 -2
  36. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/vector_index_list.py +2 -2
  37. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/samples/vector_index_rag.py +2 -2
  38. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/async_profile.py +2 -2
  39. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/profile.py +2 -2
  40. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/vector_index.py +5 -4
  41. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/version.py +1 -1
  42. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7/src/select_ai.egg-info}/PKG-INFO +1 -1
  43. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/LICENSE.txt +0 -0
  44. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/MANIFEST.in +0 -0
  45. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/pyproject.toml +0 -0
  46. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/setup.cfg +0 -0
  47. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/__init__.py +0 -0
  48. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/_abc.py +0 -0
  49. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/_enums.py +0 -0
  50. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/action.py +0 -0
  51. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/admin.py +0 -0
  52. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/base_profile.py +0 -0
  53. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/conversation.py +0 -0
  54. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/db.py +0 -0
  55. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/errors.py +0 -0
  56. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/provider.py +0 -0
  57. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/sql.py +0 -0
  58. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai/synthetic_data.py +0 -0
  59. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai.egg-info/SOURCES.txt +0 -0
  60. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai.egg-info/dependency_links.txt +0 -0
  61. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai.egg-info/requires.txt +0 -0
  62. {select_ai-1.0.0.dev6 → select_ai-1.0.0.dev7}/src/select_ai.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: select_ai
3
- Version: 1.0.0.dev6
3
+ Version: 1.0.0.dev7
4
4
  Summary: Python API for Select AI
5
5
  Author-email: Abhishek Singh <abhishek.o.singh@oracle.com>
6
6
  Maintainer-email: Abhishek Singh <abhishek.o.singh@oracle.com>
@@ -1,6 +1,6 @@
1
1
  # select-ai
2
2
 
3
- Python API for Select AI
3
+ Select AI for Python
4
4
 
5
5
  ## Install
6
6
 
@@ -4,11 +4,11 @@
4
4
  # Licensed under the Universal Permissive License v 1.0 as shown at
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
- # ------------------------------------------------------------------------------
7
+ # -----------------------------------------------------------------------------
8
8
  # async/conversation_chat_session.py
9
9
  #
10
10
  # Demonstrates context aware conversation using AI Profile
11
- # ------------------------------------------------------------------------------
11
+ # -----------------------------------------------------------------------------
12
12
 
13
13
  import asyncio
14
14
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/conversations_list.py
10
10
  #
11
11
  # List all conversations saved in the database
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_chat.py
10
10
  #
11
11
  # Chat using an AI Profile
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_create.py
10
10
  #
11
11
  # Create an OCI Gen AI profile
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,9 +5,9 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_explain_sql.py
10
- # ------------------------------------------------------------------------------
10
+ # -----------------------------------------------------------------------------
11
11
 
12
12
  import asyncio
13
13
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_pipeline.py
10
10
  #
11
11
  # Demonstrates sending multiple prompts using a single Database round-trip
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_run_sql.py
10
10
  #
11
11
  # Return a pandas.Dataframe built using the resultset of the generated SQL
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_show_sql.py
10
10
  #
11
11
  # Show the generated SQL without executing it
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_sql_concurrent_tasks.py
10
10
  #
11
11
  # Demonstrates sending multiple prompts concurrently using asyncio
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
 
15
15
  import asyncio
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/profile_list.py
10
10
  #
11
11
  # List all the profile names matching a certain pattern
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import asyncio
15
15
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/vector_index_create.py
10
10
  #
11
11
  # Create a vector index for Retrieval Augmented Generation (RAG)
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
 
15
15
  import asyncio
@@ -5,9 +5,9 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/vector_index_delete.py
10
- # ------------------------------------------------------------------------------
10
+ # -----------------------------------------------------------------------------
11
11
 
12
12
  import asyncio
13
13
  import os
@@ -5,12 +5,12 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/vector_index_list.py
10
10
  #
11
11
  # List all the vector indexes and associated profile where the index name
12
12
  # matches a certain pattern
13
- # ------------------------------------------------------------------------------
13
+ # -----------------------------------------------------------------------------
14
14
 
15
15
  import asyncio
16
16
  import os
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # async/vector_index_rag.py
10
10
  #
11
11
  # Demonstrates Retrieval Augmented Generation (RAG) using ai_profile.narrate()
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
 
15
15
  import asyncio
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # conversation_chat_session.py
10
10
  #
11
11
  # Demonstrates context aware conversation using AI Profile
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
  import os
14
14
 
15
15
  import select_ai
@@ -5,12 +5,12 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # conversation_create.py
10
10
  #
11
11
  # Create a new conversation given a title and description. The created
12
12
  # conversation can be used in profile.chat_session()
13
- # ------------------------------------------------------------------------------
13
+ # -----------------------------------------------------------------------------
14
14
  import os
15
15
 
16
16
  import select_ai
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # conversation_delete.py
10
10
  #
11
11
  # Delete conversation given a conversation id
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # conversations_list.py
10
10
  #
11
11
  # List all conversations saved in the database
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # create_ai_credential.py
10
10
  #
11
11
  # Create a Database credential storing OCI Gen AI's credentials
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
  import os
14
14
 
15
15
  import oci
@@ -5,12 +5,12 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # disable_ai_provider.py
10
10
  #
11
11
  # Revokes privileges from the database user and removes ACL to invoke the AI
12
12
  # Provider endpoint
13
- # ------------------------------------------------------------------------------
13
+ # -----------------------------------------------------------------------------
14
14
  import os
15
15
 
16
16
  import select_ai
@@ -5,12 +5,12 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # enable_ai_provider.py
10
10
  #
11
11
  # Grants privileges to the database user and add ACL to invoke the AI Provider
12
12
  # endpoint
13
- # ------------------------------------------------------------------------------
13
+ # -----------------------------------------------------------------------------
14
14
 
15
15
  import os
16
16
 
@@ -21,14 +21,8 @@ password = os.getenv("SELECT_AI_ADMIN_PASSWORD")
21
21
  dsn = os.getenv("SELECT_AI_DB_CONNECT_STRING")
22
22
  select_ai_user = os.getenv("SELECT_AI_USER")
23
23
 
24
-
25
- def main():
26
- select_ai.connect(user=admin_user, password=password, dsn=dsn)
27
- select_ai.enable_provider(
28
- users=select_ai_user, provider_endpoint="*.openai.azure.com"
29
- )
30
- print("Enabled AI provider for user: ", select_ai_user)
31
-
32
-
33
- if __name__ == "__main__":
34
- main()
24
+ select_ai.connect(user=admin_user, password=password, dsn=dsn)
25
+ select_ai.enable_provider(
26
+ users=select_ai_user, provider_endpoint="*.openai.azure.com"
27
+ )
28
+ print("Enabled AI provider for user: ", select_ai_user)
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_chat.py
10
10
  #
11
11
  # Chat using an AI Profile
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_create.py
10
10
  #
11
11
  # Create an OCI Gen AI profile
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
  from pprint import pformat
@@ -5,9 +5,9 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_delete.py
10
- # ------------------------------------------------------------------------------
10
+ # -----------------------------------------------------------------------------
11
11
 
12
12
  import os
13
13
 
@@ -5,9 +5,9 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_explain_sql.py
10
- # ------------------------------------------------------------------------------
10
+ # -----------------------------------------------------------------------------
11
11
 
12
12
  import os
13
13
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_gen_multi_table_synthetic_data.py
10
10
  #
11
11
  # Generate synthetic data for multiple tables in a single request
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_gen_single_table_synthetic_data.py
10
10
  #
11
11
  # Generate synthetic data for a single table
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_narrate.py
10
10
  #
11
11
  # Narrate the description of the SQL resultset
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_run_sql.py
10
10
  #
11
11
  # Return a pandas.Dataframe built using the resultset of the generated SQL
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_show_sql.py
10
10
  #
11
11
  # Show the generated SQL without executing it
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # profile_list.py
10
10
  #
11
11
  # List all the profile names matching a certain pattern
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -23,5 +23,5 @@ select_ai.connect(user=user, password=password, dsn=dsn)
23
23
  profile = select_ai.Profile()
24
24
 
25
25
  # matches all the profiles
26
- for fetched_profile in profile.list(profile_name_pattern=".*"):
26
+ for fetched_profile in profile.list():
27
27
  print(fetched_profile.profile_name)
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # vector_index_create.py
10
10
  #
11
11
  # Create a vector index for Retrieval Augmented Generation (RAG)
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -5,9 +5,9 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # vector_index_delete.py
10
- # ------------------------------------------------------------------------------
10
+ # -----------------------------------------------------------------------------
11
11
 
12
12
  import os
13
13
 
@@ -5,12 +5,12 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # vector_index_list.py
10
10
  #
11
11
  # List all the vector indexes and associated profile where the index name
12
12
  # matches a certain pattern
13
- # ------------------------------------------------------------------------------
13
+ # -----------------------------------------------------------------------------
14
14
 
15
15
  import os
16
16
 
@@ -5,11 +5,11 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- # ------------------------------------------------------------------------------
8
+ # -----------------------------------------------------------------------------
9
9
  # vector_index_rag.py
10
10
  #
11
11
  # Demonstrates Retrieval Augmented Generation (RAG) using ai_profile.narrate()
12
- # ------------------------------------------------------------------------------
12
+ # -----------------------------------------------------------------------------
13
13
 
14
14
  import os
15
15
 
@@ -272,13 +272,13 @@ class AsyncProfile(BaseProfile):
272
272
 
273
273
  @classmethod
274
274
  async def list(
275
- cls, profile_name_pattern: str
275
+ cls, profile_name_pattern: str = ".*"
276
276
  ) -> AsyncGenerator["AsyncProfile", None]:
277
277
  """Asynchronously list AI Profiles saved in the database.
278
278
 
279
279
  :param str profile_name_pattern: Regular expressions can be used
280
280
  to specify a pattern. Function REGEXP_LIKE is used to perform the
281
- match
281
+ match. Default value is ".*" i.e. match all AI profiles.
282
282
 
283
283
  :return: Iterator[Profile]
284
284
  """
@@ -244,12 +244,12 @@ class Profile(BaseProfile):
244
244
  raise ProfileNotFoundError(profile_name=profile_name)
245
245
 
246
246
  @classmethod
247
- def list(cls, profile_name_pattern: str) -> Iterator["Profile"]:
247
+ def list(cls, profile_name_pattern: str = ".*") -> Iterator["Profile"]:
248
248
  """List AI Profiles saved in the database.
249
249
 
250
250
  :param str profile_name_pattern: Regular expressions can be used
251
251
  to specify a pattern. Function REGEXP_LIKE is used to perform the
252
- match
252
+ match. Default value is ".*" i.e. match all AI profiles.
253
253
 
254
254
  :return: Iterator[Profile]
255
255
  """
@@ -309,12 +309,12 @@ class VectorIndex(_BaseVectorIndex):
309
309
  return self._get_attributes(self.index_name)
310
310
 
311
311
  @classmethod
312
- def list(cls, index_name_pattern: str) -> Iterator["VectorIndex"]:
312
+ def list(cls, index_name_pattern: str = ".*") -> Iterator["VectorIndex"]:
313
313
  """List Vector Indexes
314
314
 
315
315
  :param str index_name_pattern: Regular expressions can be used
316
316
  to specify a pattern. Function REGEXP_LIKE is used to perform the
317
- match
317
+ match. Default value is ".*" i.e. match all vector indexes.
318
318
 
319
319
  :return: Iterator[VectorIndex]
320
320
  """
@@ -515,13 +515,14 @@ class AsyncVectorIndex(_BaseVectorIndex):
515
515
 
516
516
  @classmethod
517
517
  async def list(
518
- cls, index_name_pattern: str
518
+ cls, index_name_pattern: str = ".*"
519
519
  ) -> AsyncGenerator[VectorIndex, None]:
520
520
  """List Vector Indexes.
521
521
 
522
522
  :param str index_name_pattern: Regular expressions can be used
523
523
  to specify a pattern. Function REGEXP_LIKE is used to perform the
524
- match
524
+ match. Default value is ".*" i.e. match all vector indexes.
525
+
525
526
  :return: AsyncGenerator[VectorIndex]
526
527
 
527
528
  """
@@ -5,4 +5,4 @@
5
5
  # http://oss.oracle.com/licenses/upl.
6
6
  # -----------------------------------------------------------------------------
7
7
 
8
- __version__ = "1.0.0.dev6"
8
+ __version__ = "1.0.0.dev7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: select_ai
3
- Version: 1.0.0.dev6
3
+ Version: 1.0.0.dev7
4
4
  Summary: Python API for Select AI
5
5
  Author-email: Abhishek Singh <abhishek.o.singh@oracle.com>
6
6
  Maintainer-email: Abhishek Singh <abhishek.o.singh@oracle.com>
File without changes