sunholo 0.82.0__tar.gz → 0.82.2__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.
- {sunholo-0.82.0 → sunholo-0.82.2}/PKG-INFO +11 -11
- {sunholo-0.82.0 → sunholo-0.82.2}/setup.py +10 -10
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/gcs/add_file.py +29 -1
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/invoke/direct_vac_func.py +1 -1
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/pubsub/process_pubsub.py +1 -1
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/PKG-INFO +11 -11
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/requires.txt +9 -9
- {sunholo-0.82.0 → sunholo-0.82.2}/LICENSE.txt +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/MANIFEST.in +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/README.md +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/setup.cfg +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/chat_history.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/dispatch_to_qa.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/fastapi/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/fastapi/base.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/fastapi/qna_routes.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/flask/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/flask/base.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/flask/qna_routes.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/flask/vac_routes.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/langserve.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/pubsub.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/route.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/special_commands.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/agents/swagger.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/archive/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/archive/archive.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/auth/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/auth/gcloud.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/auth/refresh.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/auth/run.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/azure/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/azure/auth.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/azure/blobs.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/azure/event_grid.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/bots/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/bots/discord.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/bots/github_webhook.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/bots/webapp.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/azure.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/doc_handling.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/encode_metadata.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/images.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/loaders.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/message_data.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/pdfs.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/process_chunker_data.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/publish.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/pubsub.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/chunker/splitter.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/chat_vac.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/cli.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/cli_init.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/configs.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/deploy.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/embedder.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/merge_texts.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/run_proxy.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/sun_rich.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/swagger.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/cli/vertex.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/components/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/components/llm.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/components/retriever.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/components/vectorstore.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/custom_logging.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/alloydb.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/alloydb_client.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/database.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/lancedb.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/create_function.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/create_function_time.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/create_table.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/delete_source_row.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/return_sources.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/sql/sb/setup.sql +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/static_dbs.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/database/uuid.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/discovery_engine/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/discovery_engine/chunker_handler.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/discovery_engine/create_new.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/discovery_engine/discovery_engine_client.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/discovery_engine/get_ai_search_chunks.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/embedder/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/embedder/embed_chunk.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/gcs/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/gcs/download_folder.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/gcs/download_url.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/gcs/metadata.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/invoke/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/invoke/invoke_vac_utils.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/langfuse/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/langfuse/callback.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/langfuse/prompts.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/llamaindex/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/llamaindex/get_files.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/llamaindex/import_files.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/llamaindex/llamaindex_class.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/llamaindex/user_history.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/lookup/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/lookup/model_lookup.yaml +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/patches/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/patches/langchain/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/patches/langchain/lancedb.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/patches/langchain/vertexai.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/pubsub/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/pubsub/pubsub_manager.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/qna/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/qna/parsers.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/qna/retry.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/streaming/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/streaming/content_buffer.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/streaming/langserve.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/streaming/stream_lookup.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/streaming/streaming.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/summarise/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/summarise/summarise.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/tools/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/tools/web_browser.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/api_key.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/big_context.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/config.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/config_class.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/config_schema.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/gcp.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/gcp_project.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/parsers.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/timedelta.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/user_ids.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/utils/version.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/__init__.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/extensions_call.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/extensions_class.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/genai_functions.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/init.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/memory_tools.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/safety.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo/vertex/type_dict_to_json.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/SOURCES.txt +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/dependency_links.txt +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/entry_points.txt +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/sunholo.egg-info/top_level.txt +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/tests/test_chat_history.py +0 -0
- {sunholo-0.82.0 → sunholo-0.82.2}/tests/test_config.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.82.
|
|
3
|
+
Version: 0.82.2
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.82.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.82.2.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -20,9 +20,9 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
21
|
Requires-Dist: google-auth
|
|
22
22
|
Requires-Dist: ruamel.yaml
|
|
23
|
-
Requires-Dist: langchain>=0.2.
|
|
24
|
-
Requires-Dist: langchain_experimental
|
|
25
|
-
Requires-Dist: langchain-community
|
|
23
|
+
Requires-Dist: langchain>=0.2.12
|
|
24
|
+
Requires-Dist: langchain_experimental>=0.0.61
|
|
25
|
+
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
27
|
Requires-Dist: asyncpg; extra == "all"
|
|
28
28
|
Requires-Dist: azure-identity; extra == "all"
|
|
@@ -32,7 +32,7 @@ Requires-Dist: flask; extra == "all"
|
|
|
32
32
|
Requires-Dist: google-auth; extra == "all"
|
|
33
33
|
Requires-Dist: google-auth-httplib2; extra == "all"
|
|
34
34
|
Requires-Dist: google-auth-oauthlib; extra == "all"
|
|
35
|
-
Requires-Dist: google-cloud-aiplatform; extra == "all"
|
|
35
|
+
Requires-Dist: google-cloud-aiplatform>=1.58.0; extra == "all"
|
|
36
36
|
Requires-Dist: google-api-python-client; extra == "all"
|
|
37
37
|
Requires-Dist: google-cloud-alloydb-connector[pg8000]; extra == "all"
|
|
38
38
|
Requires-Dist: google-cloud-bigquery; extra == "all"
|
|
@@ -48,11 +48,11 @@ Requires-Dist: httpcore; extra == "all"
|
|
|
48
48
|
Requires-Dist: httpx; extra == "all"
|
|
49
49
|
Requires-Dist: jsonschema; extra == "all"
|
|
50
50
|
Requires-Dist: lancedb; extra == "all"
|
|
51
|
-
Requires-Dist: langchain; extra == "all"
|
|
52
|
-
Requires-Dist:
|
|
53
|
-
Requires-Dist: langchain-community; extra == "all"
|
|
54
|
-
Requires-Dist: langchain-openai; extra == "all"
|
|
55
|
-
Requires-Dist: langchain-google-genai; extra == "all"
|
|
51
|
+
Requires-Dist: langchain>=0.2.12; extra == "all"
|
|
52
|
+
Requires-Dist: llangchain-experimental>=0.0.61; extra == "all"
|
|
53
|
+
Requires-Dist: langchain-community>=0.2.11; extra == "all"
|
|
54
|
+
Requires-Dist: langchain-openai>=0.1.20; extra == "all"
|
|
55
|
+
Requires-Dist: langchain-google-genai>=1.0.5; extra == "all"
|
|
56
56
|
Requires-Dist: langchain_google_alloydb_pg; extra == "all"
|
|
57
57
|
Requires-Dist: langchain-anthropic>=0.1.13; extra == "all"
|
|
58
58
|
Requires-Dist: langchain-google-vertexai; extra == "all"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
3
|
# Define your base version
|
|
4
|
-
version = '0.82.
|
|
4
|
+
version = '0.82.2'
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name='sunholo',
|
|
@@ -31,9 +31,9 @@ setup(
|
|
|
31
31
|
"google-auth", # to check if on gcp
|
|
32
32
|
#"tenacity==8.3.0", #TODO: remove soon
|
|
33
33
|
"ruamel.yaml",
|
|
34
|
-
"langchain>=0.2.
|
|
35
|
-
"langchain_experimental
|
|
36
|
-
"langchain-community",
|
|
34
|
+
"langchain>=0.2.12",
|
|
35
|
+
"langchain_experimental>=0.0.61",
|
|
36
|
+
"langchain-community>=0.2.11",
|
|
37
37
|
],
|
|
38
38
|
extras_require={
|
|
39
39
|
# Define optional dependencies with feature names
|
|
@@ -46,7 +46,7 @@ setup(
|
|
|
46
46
|
"google-auth",
|
|
47
47
|
"google-auth-httplib2",
|
|
48
48
|
"google-auth-oauthlib",
|
|
49
|
-
"google-cloud-aiplatform",
|
|
49
|
+
"google-cloud-aiplatform>=1.58.0",
|
|
50
50
|
"google-api-python-client",
|
|
51
51
|
"google-cloud-alloydb-connector[pg8000]",
|
|
52
52
|
"google-cloud-bigquery",
|
|
@@ -62,11 +62,11 @@ setup(
|
|
|
62
62
|
"httpx",
|
|
63
63
|
"jsonschema",
|
|
64
64
|
"lancedb",
|
|
65
|
-
"langchain",
|
|
66
|
-
"
|
|
67
|
-
"langchain-community",
|
|
68
|
-
"langchain-openai",
|
|
69
|
-
"langchain-google-genai",
|
|
65
|
+
"langchain>=0.2.12",
|
|
66
|
+
"llangchain-experimental>=0.0.61",
|
|
67
|
+
"langchain-community>=0.2.11",
|
|
68
|
+
"langchain-openai>=0.1.20",
|
|
69
|
+
"langchain-google-genai>=1.0.5",
|
|
70
70
|
"langchain_google_alloydb_pg",
|
|
71
71
|
"langchain-anthropic>=0.1.13",
|
|
72
72
|
"langchain-google-vertexai",
|
|
@@ -15,6 +15,7 @@ import datetime
|
|
|
15
15
|
import os
|
|
16
16
|
import base64
|
|
17
17
|
import uuid
|
|
18
|
+
import time
|
|
18
19
|
|
|
19
20
|
try:
|
|
20
21
|
from google.cloud import storage
|
|
@@ -89,6 +90,33 @@ def resolve_bucket(vector_name):
|
|
|
89
90
|
|
|
90
91
|
return bucket_name
|
|
91
92
|
|
|
93
|
+
def add_folder_to_gcs(
|
|
94
|
+
source_folder:str,
|
|
95
|
+
vector_name:str=None,
|
|
96
|
+
bucket_name:str=None,
|
|
97
|
+
metadata:dict=None,
|
|
98
|
+
bucket_folderpath:str=None):
|
|
99
|
+
"""Uploads a folder and all its contents to a specified GCS bucket."""
|
|
100
|
+
|
|
101
|
+
uris = []
|
|
102
|
+
for root, dirs, files in os.walk(source_folder):
|
|
103
|
+
for file in files:
|
|
104
|
+
local_path = os.path.join(root, file)
|
|
105
|
+
# Create the relative path in the destination folder
|
|
106
|
+
relative_path = os.path.relpath(local_path, source_folder)
|
|
107
|
+
bucket_filepath = os.path.join(bucket_folderpath, relative_path)
|
|
108
|
+
|
|
109
|
+
uri = add_file_to_gcs(local_path,
|
|
110
|
+
vector_name=vector_name,
|
|
111
|
+
bucket_name=bucket_name,
|
|
112
|
+
metadata=metadata,
|
|
113
|
+
bucket_filepath=bucket_filepath)
|
|
114
|
+
uris.append(uri)
|
|
115
|
+
|
|
116
|
+
log.info(f"uploaded [{len(files)}] to GCS bucket")
|
|
117
|
+
|
|
118
|
+
return uris
|
|
119
|
+
|
|
92
120
|
def add_file_to_gcs(filename: str,
|
|
93
121
|
vector_name:str=None,
|
|
94
122
|
bucket_name: str=None,
|
|
@@ -148,7 +176,7 @@ def add_file_to_gcs(filename: str,
|
|
|
148
176
|
|
|
149
177
|
blob.metadata = the_metadata
|
|
150
178
|
|
|
151
|
-
|
|
179
|
+
|
|
152
180
|
|
|
153
181
|
max_retries = 5
|
|
154
182
|
base_delay = 1 # 1 second
|
|
@@ -41,7 +41,7 @@ def direct_vac(vac_input: dict, vac_name: str, chat_history=[]):
|
|
|
41
41
|
override_endpoint = agent_url or override_endpoint
|
|
42
42
|
|
|
43
43
|
print(f"Using {override_endpoint=}")
|
|
44
|
-
log.warning(f'Batch invoke_vac_qa with {vac_input=}')
|
|
44
|
+
log.warning(f'Batch invoke_vac_qa {vac_name} with {vac_input=}')
|
|
45
45
|
vac_response = send_to_qa(
|
|
46
46
|
vac_input["user_input"],
|
|
47
47
|
vector_name=vac_name,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.82.
|
|
3
|
+
Version: 0.82.2
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.82.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.82.2.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -20,9 +20,9 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
21
|
Requires-Dist: google-auth
|
|
22
22
|
Requires-Dist: ruamel.yaml
|
|
23
|
-
Requires-Dist: langchain>=0.2.
|
|
24
|
-
Requires-Dist: langchain_experimental
|
|
25
|
-
Requires-Dist: langchain-community
|
|
23
|
+
Requires-Dist: langchain>=0.2.12
|
|
24
|
+
Requires-Dist: langchain_experimental>=0.0.61
|
|
25
|
+
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
27
|
Requires-Dist: asyncpg; extra == "all"
|
|
28
28
|
Requires-Dist: azure-identity; extra == "all"
|
|
@@ -32,7 +32,7 @@ Requires-Dist: flask; extra == "all"
|
|
|
32
32
|
Requires-Dist: google-auth; extra == "all"
|
|
33
33
|
Requires-Dist: google-auth-httplib2; extra == "all"
|
|
34
34
|
Requires-Dist: google-auth-oauthlib; extra == "all"
|
|
35
|
-
Requires-Dist: google-cloud-aiplatform; extra == "all"
|
|
35
|
+
Requires-Dist: google-cloud-aiplatform>=1.58.0; extra == "all"
|
|
36
36
|
Requires-Dist: google-api-python-client; extra == "all"
|
|
37
37
|
Requires-Dist: google-cloud-alloydb-connector[pg8000]; extra == "all"
|
|
38
38
|
Requires-Dist: google-cloud-bigquery; extra == "all"
|
|
@@ -48,11 +48,11 @@ Requires-Dist: httpcore; extra == "all"
|
|
|
48
48
|
Requires-Dist: httpx; extra == "all"
|
|
49
49
|
Requires-Dist: jsonschema; extra == "all"
|
|
50
50
|
Requires-Dist: lancedb; extra == "all"
|
|
51
|
-
Requires-Dist: langchain; extra == "all"
|
|
52
|
-
Requires-Dist:
|
|
53
|
-
Requires-Dist: langchain-community; extra == "all"
|
|
54
|
-
Requires-Dist: langchain-openai; extra == "all"
|
|
55
|
-
Requires-Dist: langchain-google-genai; extra == "all"
|
|
51
|
+
Requires-Dist: langchain>=0.2.12; extra == "all"
|
|
52
|
+
Requires-Dist: llangchain-experimental>=0.0.61; extra == "all"
|
|
53
|
+
Requires-Dist: langchain-community>=0.2.11; extra == "all"
|
|
54
|
+
Requires-Dist: langchain-openai>=0.1.20; extra == "all"
|
|
55
|
+
Requires-Dist: langchain-google-genai>=1.0.5; extra == "all"
|
|
56
56
|
Requires-Dist: langchain_google_alloydb_pg; extra == "all"
|
|
57
57
|
Requires-Dist: langchain-anthropic>=0.1.13; extra == "all"
|
|
58
58
|
Requires-Dist: langchain-google-vertexai; extra == "all"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
google-auth
|
|
2
2
|
ruamel.yaml
|
|
3
|
-
langchain>=0.2.
|
|
4
|
-
langchain_experimental
|
|
5
|
-
langchain-community
|
|
3
|
+
langchain>=0.2.12
|
|
4
|
+
langchain_experimental>=0.0.61
|
|
5
|
+
langchain-community>=0.2.11
|
|
6
6
|
|
|
7
7
|
[all]
|
|
8
8
|
asyncpg
|
|
@@ -13,7 +13,7 @@ flask
|
|
|
13
13
|
google-auth
|
|
14
14
|
google-auth-httplib2
|
|
15
15
|
google-auth-oauthlib
|
|
16
|
-
google-cloud-aiplatform
|
|
16
|
+
google-cloud-aiplatform>=1.58.0
|
|
17
17
|
google-api-python-client
|
|
18
18
|
google-cloud-alloydb-connector[pg8000]
|
|
19
19
|
google-cloud-bigquery
|
|
@@ -29,11 +29,11 @@ httpcore
|
|
|
29
29
|
httpx
|
|
30
30
|
jsonschema
|
|
31
31
|
lancedb
|
|
32
|
-
langchain
|
|
33
|
-
|
|
34
|
-
langchain-community
|
|
35
|
-
langchain-openai
|
|
36
|
-
langchain-google-genai
|
|
32
|
+
langchain>=0.2.12
|
|
33
|
+
llangchain-experimental>=0.0.61
|
|
34
|
+
langchain-community>=0.2.11
|
|
35
|
+
langchain-openai>=0.1.20
|
|
36
|
+
langchain-google-genai>=1.0.5
|
|
37
37
|
langchain_google_alloydb_pg
|
|
38
38
|
langchain-anthropic>=0.1.13
|
|
39
39
|
langchain-google-vertexai
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|