sunholo 0.90.4__tar.gz → 0.90.6__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.90.4 → sunholo-0.90.6}/PKG-INFO +4 -2
- {sunholo-0.90.4 → sunholo-0.90.6}/setup.py +4 -2
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/flask/vac_routes.py +5 -6
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/components/llm.py +10 -1
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/langfuse/evals.py +2 -1
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/PKG-INFO +4 -2
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/requires.txt +2 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/LICENSE.txt +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/MANIFEST.in +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/README.md +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/setup.cfg +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/chat_history.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/dispatch_to_qa.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/fastapi/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/fastapi/base.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/fastapi/qna_routes.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/flask/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/flask/base.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/flask/qna_routes.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/langserve.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/pubsub.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/route.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/special_commands.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/agents/swagger.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/archive/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/archive/archive.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/auth/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/auth/gcloud.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/auth/refresh.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/auth/run.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/azure/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/azure/auth.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/azure/blobs.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/azure/event_grid.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/bots/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/bots/discord.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/bots/github_webhook.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/bots/webapp.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/azure.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/doc_handling.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/encode_metadata.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/images.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/loaders.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/message_data.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/pdfs.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/process_chunker_data.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/publish.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/pubsub.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/chunker/splitter.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/chat_vac.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/cli.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/cli_init.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/configs.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/deploy.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/embedder.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/merge_texts.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/run_proxy.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/sun_rich.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/swagger.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/cli/vertex.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/components/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/components/retriever.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/components/vectorstore.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/custom_logging.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/alloydb.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/alloydb_client.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/database.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/lancedb.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/create_function.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/create_function_time.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/create_table.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/delete_source_row.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/return_sources.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/sql/sb/setup.sql +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/static_dbs.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/database/uuid.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/discovery_engine/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/discovery_engine/chunker_handler.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/discovery_engine/create_new.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/discovery_engine/discovery_engine_client.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/discovery_engine/get_ai_search_chunks.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/embedder/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/embedder/embed_chunk.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/excel/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/excel/plugin.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/gcs/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/gcs/add_file.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/gcs/download_folder.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/gcs/download_url.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/gcs/metadata.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/genai/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/genai/init.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/genai/process_funcs_cls.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/genai/safety.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/invoke/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/invoke/async_class.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/invoke/direct_vac_func.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/invoke/invoke_vac_utils.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/langfuse/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/langfuse/callback.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/langfuse/prompts.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/llamaindex/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/llamaindex/get_files.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/llamaindex/import_files.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/llamaindex/llamaindex_class.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/llamaindex/user_history.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/lookup/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/lookup/model_lookup.yaml +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/patches/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/patches/langchain/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/patches/langchain/lancedb.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/patches/langchain/vertexai.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/pubsub/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/pubsub/process_pubsub.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/pubsub/pubsub_manager.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/qna/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/qna/parsers.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/qna/retry.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/streaming/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/streaming/content_buffer.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/streaming/langserve.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/streaming/stream_lookup.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/streaming/streaming.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/summarise/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/summarise/summarise.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/terraform/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/terraform/tfvars_editor.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/tools/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/tools/web_browser.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/api_key.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/big_context.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/config.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/config_class.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/config_schema.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/gcp.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/gcp_project.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/parsers.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/timedelta.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/user_ids.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/utils/version.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/__init__.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/extensions_call.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/extensions_class.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/genai_functions.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/init.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/memory_tools.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/safety.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo/vertex/type_dict_to_json.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/SOURCES.txt +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/dependency_links.txt +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/entry_points.txt +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/sunholo.egg-info/top_level.txt +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/tests/test_chat_history.py +0 -0
- {sunholo-0.90.4 → sunholo-0.90.6}/tests/test_config.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.90.
|
|
3
|
+
Version: 0.90.6
|
|
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.90.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.90.6.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -24,6 +24,7 @@ Requires-Dist: langchain>=0.2.12
|
|
|
24
24
|
Requires-Dist: langchain_experimental>=0.0.61
|
|
25
25
|
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
|
+
Requires-Dist: anthropic[vertex]; extra == "all"
|
|
27
28
|
Requires-Dist: asyncpg; extra == "all"
|
|
28
29
|
Requires-Dist: azure-identity; extra == "all"
|
|
29
30
|
Requires-Dist: azure-storage-blob; extra == "all"
|
|
@@ -98,6 +99,7 @@ Requires-Dist: pytesseract; extra == "pipeline"
|
|
|
98
99
|
Requires-Dist: tabulate; extra == "pipeline"
|
|
99
100
|
Requires-Dist: unstructured[local-inference]==0.14.9; extra == "pipeline"
|
|
100
101
|
Provides-Extra: gcp
|
|
102
|
+
Requires-Dist: anthropic[vertex]; extra == "gcp"
|
|
101
103
|
Requires-Dist: google-api-python-client; extra == "gcp"
|
|
102
104
|
Requires-Dist: google-cloud-alloydb-connector[pg8000]; extra == "gcp"
|
|
103
105
|
Requires-Dist: google-auth-httplib2; extra == "gcp"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
|
-
version = '0.90.
|
|
3
|
+
version = '0.90.6'
|
|
4
4
|
|
|
5
5
|
setup(
|
|
6
6
|
name='sunholo',
|
|
@@ -36,6 +36,7 @@ setup(
|
|
|
36
36
|
extras_require={
|
|
37
37
|
# Define optional dependencies with feature names
|
|
38
38
|
'all': [
|
|
39
|
+
"anthropic[vertex]",
|
|
39
40
|
"asyncpg",
|
|
40
41
|
"azure-identity",
|
|
41
42
|
"azure-storage-blob",
|
|
@@ -115,6 +116,7 @@ setup(
|
|
|
115
116
|
"unstructured[local-inference]==0.14.9",
|
|
116
117
|
],
|
|
117
118
|
'gcp': [
|
|
119
|
+
"anthropic[vertex]",
|
|
118
120
|
"google-api-python-client",
|
|
119
121
|
"google-cloud-alloydb-connector[pg8000]",
|
|
120
122
|
"google-auth-httplib2",
|
|
@@ -139,7 +141,7 @@ setup(
|
|
|
139
141
|
"tiktoken"
|
|
140
142
|
],
|
|
141
143
|
'anthropic': [
|
|
142
|
-
"langchain-anthropic>=0.1.13"
|
|
144
|
+
"langchain-anthropic>=0.1.13"
|
|
143
145
|
],
|
|
144
146
|
'tools' : [
|
|
145
147
|
'openapi-spec-validator',
|
|
@@ -529,12 +529,10 @@ if __name__ == "__main__":
|
|
|
529
529
|
|
|
530
530
|
trace = None
|
|
531
531
|
span = None
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
else:
|
|
537
|
-
trace = self.create_langfuse_trace(request, vector_name)
|
|
532
|
+
|
|
533
|
+
trace_id = data.get('trace_id')
|
|
534
|
+
trace = self.create_langfuse_trace(request, vector_name, trace_id)
|
|
535
|
+
log.info(f"Using existing langfuse trace: {trace_id}")
|
|
538
536
|
|
|
539
537
|
config, _ = load_config("config/llm_config.yaml")
|
|
540
538
|
vac_configs = config.get("vac")
|
|
@@ -550,6 +548,7 @@ if __name__ == "__main__":
|
|
|
550
548
|
chat_history = data.pop('chat_history', None)
|
|
551
549
|
eval_percent = data.pop('eval_percent', 0.01)
|
|
552
550
|
vector_name = data.pop('vector_name', vector_name)
|
|
551
|
+
data.pop('trace_id', None) # to ensure not in kwargs
|
|
553
552
|
|
|
554
553
|
paired_messages = extract_chat_history(chat_history)
|
|
555
554
|
|
|
@@ -114,9 +114,18 @@ def llm_str_to_llm(llm_str, model=None, vector_name=None, config=None):
|
|
|
114
114
|
elif llm_str == 'anthropic':
|
|
115
115
|
from langchain_anthropic import ChatAnthropic
|
|
116
116
|
if model is None:
|
|
117
|
-
model = 'claude-3-
|
|
117
|
+
model = 'claude-3-5-sonnet-20240620'
|
|
118
118
|
log.info(f"No 'model' value in config file - selecting default {model}")
|
|
119
119
|
return ChatAnthropic(model_name = model, temperature=0)
|
|
120
|
+
elif llm_str == 'anthropic-vertex':
|
|
121
|
+
from langchain_google_vertexai.model_garden import ChatAnthropicVertex
|
|
122
|
+
if model is None:
|
|
123
|
+
model = "claude-3-5-sonnet@20240620"
|
|
124
|
+
log.info(f"No 'model' value in config file - selecting default {model}")
|
|
125
|
+
gcp_config = config.vacConfig("gcp_config")
|
|
126
|
+
return ChatAnthropicVertex(model_name=model,
|
|
127
|
+
project=gcp_config.get('project_id'),
|
|
128
|
+
location=gcp_config.get('location'))
|
|
120
129
|
|
|
121
130
|
if llm_str is None:
|
|
122
131
|
raise NotImplementedError(f'No llm implemented for {llm_str}')
|
|
@@ -3,6 +3,7 @@ import json
|
|
|
3
3
|
|
|
4
4
|
from ..pubsub import decode_pubsub_message
|
|
5
5
|
from langfuse import Langfuse
|
|
6
|
+
import traceback
|
|
6
7
|
from ..custom_logging import log
|
|
7
8
|
|
|
8
9
|
# Example of how eval_funcs might be structured
|
|
@@ -71,7 +72,7 @@ def do_evals(trace_id, eval_funcs: list=[eval_length], **kwargs) -> dict:
|
|
|
71
72
|
try:
|
|
72
73
|
eval_result = eval_func(trace) # Assuming eval_func returns a dict with 'score' and 'reason'
|
|
73
74
|
except Exception as e:
|
|
74
|
-
eval_result = {"score": 0, "reason":f"ERROR: {str(e)}"}
|
|
75
|
+
eval_result = {"score": 0, "reason":f"ERROR: {str(e)} traceback: {traceback.format_exc()}"}
|
|
75
76
|
eval_results.append(eval_result)
|
|
76
77
|
|
|
77
78
|
eval_name = eval_func.__name__
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.90.
|
|
3
|
+
Version: 0.90.6
|
|
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.90.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.90.6.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -24,6 +24,7 @@ Requires-Dist: langchain>=0.2.12
|
|
|
24
24
|
Requires-Dist: langchain_experimental>=0.0.61
|
|
25
25
|
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
|
+
Requires-Dist: anthropic[vertex]; extra == "all"
|
|
27
28
|
Requires-Dist: asyncpg; extra == "all"
|
|
28
29
|
Requires-Dist: azure-identity; extra == "all"
|
|
29
30
|
Requires-Dist: azure-storage-blob; extra == "all"
|
|
@@ -98,6 +99,7 @@ Requires-Dist: pytesseract; extra == "pipeline"
|
|
|
98
99
|
Requires-Dist: tabulate; extra == "pipeline"
|
|
99
100
|
Requires-Dist: unstructured[local-inference]==0.14.9; extra == "pipeline"
|
|
100
101
|
Provides-Extra: gcp
|
|
102
|
+
Requires-Dist: anthropic[vertex]; extra == "gcp"
|
|
101
103
|
Requires-Dist: google-api-python-client; extra == "gcp"
|
|
102
104
|
Requires-Dist: google-cloud-alloydb-connector[pg8000]; extra == "gcp"
|
|
103
105
|
Requires-Dist: google-auth-httplib2; extra == "gcp"
|
|
@@ -5,6 +5,7 @@ langchain_experimental>=0.0.61
|
|
|
5
5
|
langchain-community>=0.2.11
|
|
6
6
|
|
|
7
7
|
[all]
|
|
8
|
+
anthropic[vertex]
|
|
8
9
|
asyncpg
|
|
9
10
|
azure-identity
|
|
10
11
|
azure-storage-blob
|
|
@@ -83,6 +84,7 @@ requests
|
|
|
83
84
|
rich
|
|
84
85
|
|
|
85
86
|
[gcp]
|
|
87
|
+
anthropic[vertex]
|
|
86
88
|
google-api-python-client
|
|
87
89
|
google-cloud-alloydb-connector[pg8000]
|
|
88
90
|
google-auth-httplib2
|
|
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
|
|
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
|