select-ai 1.0.0.dev4__tar.gz → 1.0.0.dev5__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.
- {select_ai-1.0.0.dev4/src/select_ai.egg-info → select_ai-1.0.0.dev5}/PKG-INFO +1 -1
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/vector_index_create.py +2 -1
- select_ai-1.0.0.dev5/samples/async_samples/vector_index_delete.py +26 -0
- select_ai-1.0.0.dev5/samples/async_samples/vector_index_rag.py +28 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/vector_index_create.py +2 -1
- select_ai-1.0.0.dev5/samples/vector_index_delete.py +25 -0
- select_ai-1.0.0.dev5/samples/vector_index_rag.py +25 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/version.py +1 -1
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5/src/select_ai.egg-info}/PKG-INFO +1 -1
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai.egg-info/SOURCES.txt +4 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/LICENSE.txt +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/MANIFEST.in +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/README.md +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/pyproject.toml +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/conversation_chat_session.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/conversations_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_chat.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_create.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_explain_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_pipeline.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_run_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_show_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_sql_concurrent_tasks.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profiles_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/vector_index_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/conversation_chat_session.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/conversation_create.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/conversation_delete.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/conversations_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/create_ai_credential.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/disable_ai_provider.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/enable_ai_provider.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_chat.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_create.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_delete.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_explain_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_gen_multi_table_synthetic_data.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_gen_single_table_synthetic_data.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_narrate.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_run_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_show_sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profiles_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/vector_index_list.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/setup.cfg +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/__init__.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/_abc.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/_enums.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/action.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/admin.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/async_profile.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/base_profile.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/conversation.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/db.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/errors.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/profile.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/provider.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/sql.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/synthetic_data.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai/vector_index.py +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai.egg-info/dependency_links.txt +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai.egg-info/requires.txt +0 -0
- {select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/src/select_ai.egg-info/top_level.txt +0 -0
|
@@ -19,7 +19,8 @@ async def main():
|
|
|
19
19
|
await select_ai.async_connect(user=user, password=password, dsn=dsn)
|
|
20
20
|
|
|
21
21
|
provider = select_ai.OCIGenAIProvider(
|
|
22
|
-
region="us-chicago-1", oci_apiformat="GENERIC"
|
|
22
|
+
region="us-chicago-1", oci_apiformat="GENERIC",
|
|
23
|
+
embedding_model="cohere.embed-english-v3.0"
|
|
23
24
|
)
|
|
24
25
|
profile_attributes = select_ai.ProfileAttributes(
|
|
25
26
|
credential_name="my_oci_ai_profile_key",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2025, Oracle and/or its affiliates.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Universal Permissive License v 1.0 as shown at
|
|
5
|
+
# http://oss.oracle.com/licenses/upl.
|
|
6
|
+
# -----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
import asyncio
|
|
9
|
+
import os
|
|
10
|
+
|
|
11
|
+
import select_ai
|
|
12
|
+
|
|
13
|
+
user = os.getenv("SELECT_AI_USER")
|
|
14
|
+
password = os.getenv("SELECT_AI_PASSWORD")
|
|
15
|
+
dsn = os.getenv("SELECT_AI_DB_CONNECT_STRING")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
async def main():
|
|
19
|
+
await select_ai.async_connect(user=user, password=password, dsn=dsn)
|
|
20
|
+
vector_index = select_ai.AsyncVectorIndex(index_name="test_vector_index")
|
|
21
|
+
await vector_index.delete()
|
|
22
|
+
print("Vector index deleted")
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if __name__ == "__main__":
|
|
26
|
+
asyncio.run(main())
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2025, Oracle and/or its affiliates.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Universal Permissive License v 1.0 as shown at
|
|
5
|
+
# http://oss.oracle.com/licenses/upl.
|
|
6
|
+
# -----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
import asyncio
|
|
9
|
+
import os
|
|
10
|
+
|
|
11
|
+
import select_ai
|
|
12
|
+
|
|
13
|
+
user = os.getenv("SELECT_AI_USER")
|
|
14
|
+
password = os.getenv("SELECT_AI_PASSWORD")
|
|
15
|
+
dsn = os.getenv("SELECT_AI_DB_CONNECT_STRING")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
async def main():
|
|
19
|
+
await select_ai.async_connect(user=user, password=password, dsn=dsn)
|
|
20
|
+
async_profile = await select_ai.AsyncProfile(
|
|
21
|
+
profile_name="async_oci_vector_ai_profile"
|
|
22
|
+
)
|
|
23
|
+
r = await async_profile.narrate("list the conda environments in my object store")
|
|
24
|
+
print(r)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
asyncio.run(main())
|
|
@@ -19,7 +19,8 @@ def main():
|
|
|
19
19
|
# Configure an AI provider with an embedding model
|
|
20
20
|
# of your choice
|
|
21
21
|
provider = select_ai.OCIGenAIProvider(
|
|
22
|
-
region="us-chicago-1", oci_apiformat="GENERIC"
|
|
22
|
+
region="us-chicago-1", oci_apiformat="GENERIC",
|
|
23
|
+
embedding_model="cohere.embed-english-v3.0"
|
|
23
24
|
)
|
|
24
25
|
|
|
25
26
|
# Create an AI profile to use the Vector index with
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2025, Oracle and/or its affiliates.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Universal Permissive License v 1.0 as shown at
|
|
5
|
+
# http://oss.oracle.com/licenses/upl.
|
|
6
|
+
# -----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
import os
|
|
9
|
+
|
|
10
|
+
import select_ai
|
|
11
|
+
|
|
12
|
+
user = os.getenv("SELECT_AI_USER")
|
|
13
|
+
password = os.getenv("SELECT_AI_PASSWORD")
|
|
14
|
+
dsn = os.getenv("SELECT_AI_DB_CONNECT_STRING")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main():
|
|
18
|
+
select_ai.connect(user=user, password=password, dsn=dsn)
|
|
19
|
+
vector_index = select_ai.VectorIndex(index_name="test_vector_index")
|
|
20
|
+
vector_index.delete(force=True)
|
|
21
|
+
print("deleted vector index: test_vector_index")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if __name__ == "__main__":
|
|
25
|
+
main()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2025, Oracle and/or its affiliates.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Universal Permissive License v 1.0 as shown at
|
|
5
|
+
# http://oss.oracle.com/licenses/upl.
|
|
6
|
+
# -----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
import os
|
|
9
|
+
|
|
10
|
+
import select_ai
|
|
11
|
+
|
|
12
|
+
user = os.getenv("SELECT_AI_USER")
|
|
13
|
+
password = os.getenv("SELECT_AI_PASSWORD")
|
|
14
|
+
dsn = os.getenv("SELECT_AI_DB_CONNECT_STRING")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main():
|
|
18
|
+
select_ai.connect(user=user, password=password, dsn=dsn)
|
|
19
|
+
profile = select_ai.Profile(profile_name="oci_vector_ai_profile")
|
|
20
|
+
r = profile.narrate("list the conda environments in my object store")
|
|
21
|
+
print(r)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if __name__ == "__main__":
|
|
25
|
+
main()
|
|
@@ -20,7 +20,9 @@ samples/profile_run_sql.py
|
|
|
20
20
|
samples/profile_show_sql.py
|
|
21
21
|
samples/profiles_list.py
|
|
22
22
|
samples/vector_index_create.py
|
|
23
|
+
samples/vector_index_delete.py
|
|
23
24
|
samples/vector_index_list.py
|
|
25
|
+
samples/vector_index_rag.py
|
|
24
26
|
samples/async_samples/conversation_chat_session.py
|
|
25
27
|
samples/async_samples/conversations_list.py
|
|
26
28
|
samples/async_samples/profile_chat.py
|
|
@@ -32,7 +34,9 @@ samples/async_samples/profile_show_sql.py
|
|
|
32
34
|
samples/async_samples/profile_sql_concurrent_tasks.py
|
|
33
35
|
samples/async_samples/profiles_list.py
|
|
34
36
|
samples/async_samples/vector_index_create.py
|
|
37
|
+
samples/async_samples/vector_index_delete.py
|
|
35
38
|
samples/async_samples/vector_index_list.py
|
|
39
|
+
samples/async_samples/vector_index_rag.py
|
|
36
40
|
src/select_ai/__init__.py
|
|
37
41
|
src/select_ai/_abc.py
|
|
38
42
|
src/select_ai/_enums.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/conversation_chat_session.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/async_samples/profile_sql_concurrent_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_gen_multi_table_synthetic_data.py
RENAMED
|
File without changes
|
{select_ai-1.0.0.dev4 → select_ai-1.0.0.dev5}/samples/profile_gen_single_table_synthetic_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|