sunholo 0.83.3__tar.gz → 0.83.5__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.83.3 → sunholo-0.83.5}/PKG-INFO +3 -3
- {sunholo-0.83.3 → sunholo-0.83.5}/setup.py +2 -2
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/alloydb_client.py +54 -3
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/config_class.py +1 -1
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/PKG-INFO +3 -3
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/requires.txt +1 -1
- {sunholo-0.83.3 → sunholo-0.83.5}/LICENSE.txt +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/MANIFEST.in +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/README.md +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/setup.cfg +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/chat_history.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/dispatch_to_qa.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/fastapi/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/fastapi/base.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/fastapi/qna_routes.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/flask/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/flask/base.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/flask/qna_routes.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/flask/vac_routes.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/langserve.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/pubsub.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/route.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/special_commands.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/agents/swagger.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/archive/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/archive/archive.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/auth/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/auth/gcloud.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/auth/refresh.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/auth/run.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/azure/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/azure/auth.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/azure/blobs.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/azure/event_grid.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/bots/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/bots/discord.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/bots/github_webhook.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/bots/webapp.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/azure.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/doc_handling.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/encode_metadata.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/images.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/loaders.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/message_data.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/pdfs.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/process_chunker_data.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/publish.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/pubsub.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/chunker/splitter.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/chat_vac.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/cli.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/cli_init.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/configs.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/deploy.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/embedder.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/merge_texts.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/run_proxy.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/sun_rich.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/swagger.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/cli/vertex.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/components/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/components/llm.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/components/retriever.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/components/vectorstore.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/custom_logging.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/alloydb.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/database.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/lancedb.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/create_function.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/create_function_time.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/create_table.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/delete_source_row.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/return_sources.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/sql/sb/setup.sql +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/static_dbs.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/database/uuid.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/discovery_engine/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/discovery_engine/chunker_handler.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/discovery_engine/create_new.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/discovery_engine/discovery_engine_client.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/discovery_engine/get_ai_search_chunks.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/embedder/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/embedder/embed_chunk.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/gcs/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/gcs/add_file.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/gcs/download_folder.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/gcs/download_url.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/gcs/metadata.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/invoke/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/invoke/direct_vac_func.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/invoke/invoke_vac_utils.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/langfuse/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/langfuse/callback.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/langfuse/prompts.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/llamaindex/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/llamaindex/get_files.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/llamaindex/import_files.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/llamaindex/llamaindex_class.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/llamaindex/user_history.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/lookup/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/lookup/model_lookup.yaml +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/patches/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/patches/langchain/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/patches/langchain/lancedb.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/patches/langchain/vertexai.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/pubsub/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/pubsub/process_pubsub.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/pubsub/pubsub_manager.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/qna/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/qna/parsers.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/qna/retry.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/streaming/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/streaming/content_buffer.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/streaming/langserve.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/streaming/stream_lookup.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/streaming/streaming.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/summarise/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/summarise/summarise.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/tools/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/tools/web_browser.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/api_key.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/big_context.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/config.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/config_schema.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/gcp.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/gcp_project.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/parsers.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/timedelta.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/user_ids.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/utils/version.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/__init__.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/extensions_call.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/extensions_class.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/genai_functions.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/init.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/memory_tools.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/safety.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo/vertex/type_dict_to_json.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/SOURCES.txt +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/dependency_links.txt +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/entry_points.txt +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/sunholo.egg-info/top_level.txt +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/tests/test_chat_history.py +0 -0
- {sunholo-0.83.3 → sunholo-0.83.5}/tests/test_config.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.83.
|
|
3
|
+
Version: 0.83.5
|
|
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.83.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.83.5.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -21,7 +21,7 @@ License-File: LICENSE.txt
|
|
|
21
21
|
Requires-Dist: google-auth
|
|
22
22
|
Requires-Dist: ruamel.yaml
|
|
23
23
|
Requires-Dist: langchain>=0.2.12
|
|
24
|
-
Requires-Dist: langchain_experimental
|
|
24
|
+
Requires-Dist: langchain_experimental==0.0.63
|
|
25
25
|
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
27
|
Requires-Dist: asyncpg; 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.83.
|
|
4
|
+
version = '0.83.5'
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name='sunholo',
|
|
@@ -32,7 +32,7 @@ setup(
|
|
|
32
32
|
#"tenacity==8.3.0", #TODO: remove soon
|
|
33
33
|
"ruamel.yaml",
|
|
34
34
|
"langchain>=0.2.12",
|
|
35
|
-
"langchain_experimental
|
|
35
|
+
"langchain_experimental==0.0.63",
|
|
36
36
|
"langchain-community>=0.2.11",
|
|
37
37
|
],
|
|
38
38
|
extras_require={
|
|
@@ -9,6 +9,7 @@ except ImportError:
|
|
|
9
9
|
pass
|
|
10
10
|
|
|
11
11
|
from .database import get_vector_size
|
|
12
|
+
from .uuid import generate_uuid_from_object_id
|
|
12
13
|
from ..custom_logging import log
|
|
13
14
|
from ..utils import ConfigManager
|
|
14
15
|
|
|
@@ -79,9 +80,11 @@ class AlloyDBClient:
|
|
|
79
80
|
log.info("User specified {user} - using pg8000 engine")
|
|
80
81
|
self.inst_url = self._build_instance_uri(project_id, region, cluster_name, instance_name)
|
|
81
82
|
self.engine = self._create_engine_from_pg8000()
|
|
83
|
+
self.engine_type = "pg8000"
|
|
82
84
|
else:
|
|
83
85
|
log.info("Build with Langchain engine - will use default service account for auth")
|
|
84
86
|
self.engine = self._create_engine()
|
|
87
|
+
self.engine_type = "langchain"
|
|
85
88
|
|
|
86
89
|
def _build_instance_uri(self, project_id, region, cluster_name, instance_name):
|
|
87
90
|
return f"projects/{project_id}/locations/{region}/clusters/{cluster_name}/instances/{instance_name}"
|
|
@@ -120,16 +123,25 @@ class AlloyDBClient:
|
|
|
120
123
|
region=self.config["region"],
|
|
121
124
|
cluster=self.config["cluster"],
|
|
122
125
|
instance=self.config["instance"],
|
|
123
|
-
password=self.password,
|
|
124
126
|
database=self.database,
|
|
125
127
|
ip_type=self.config.get("ip_type") or IPTypes.PRIVATE
|
|
126
128
|
)
|
|
129
|
+
self._loop = engine._loop
|
|
127
130
|
|
|
128
131
|
log.info(f"Created AlloyDB engine for {engine}")
|
|
129
132
|
|
|
130
133
|
return engine
|
|
131
|
-
|
|
134
|
+
|
|
132
135
|
def execute_sql(self, sql_statement):
|
|
136
|
+
if self.engine_type == "pg8000":
|
|
137
|
+
return self._execute_sql_pg8000(sql_statement)
|
|
138
|
+
elif self.engine_type == "langchain":
|
|
139
|
+
return self._execute_sql_langchain(sql_statement)
|
|
140
|
+
|
|
141
|
+
def _execute_sql_langchain(self, sql_statement):
|
|
142
|
+
return self.engine._fetch(query = sql_statement)
|
|
143
|
+
|
|
144
|
+
def _execute_sql_pg8000(self, sql_statement):
|
|
133
145
|
"""Executes a given SQL statement with error handling.
|
|
134
146
|
|
|
135
147
|
- sql_statement (str): The SQL statement to execute.
|
|
@@ -152,6 +164,17 @@ class AlloyDBClient:
|
|
|
152
164
|
return result
|
|
153
165
|
|
|
154
166
|
async def execute_sql_async(self, sql_statement):
|
|
167
|
+
if self.engine_type == "pg8000":
|
|
168
|
+
result = await self._execute_sql_async_pg8000(sql_statement)
|
|
169
|
+
elif self.engine_type == "langchain":
|
|
170
|
+
result = await self._execute_sql_async_langchain(sql_statement)
|
|
171
|
+
|
|
172
|
+
return result
|
|
173
|
+
|
|
174
|
+
async def _execute_sql_async_langchain(self, sql_statement):
|
|
175
|
+
return await self.engine._afetch(query = sql_statement)
|
|
176
|
+
|
|
177
|
+
async def _execute_sql_async_pg8000(self, sql_statement):
|
|
155
178
|
"""Executes a given SQL statement asynchronously with error handling."""
|
|
156
179
|
sql_ = sqlalchemy.text(sql_statement)
|
|
157
180
|
result = None
|
|
@@ -168,6 +191,34 @@ class AlloyDBClient:
|
|
|
168
191
|
await conn.close()
|
|
169
192
|
|
|
170
193
|
return result
|
|
194
|
+
|
|
195
|
+
def get_document_from_docstore(self, source:str, vector_name):
|
|
196
|
+
query = self._get_document_from_docstore(source, vector_name)
|
|
197
|
+
|
|
198
|
+
return self.execute_sql(query)
|
|
199
|
+
|
|
200
|
+
async def get_document_from_docstore_async(self, source:str, vector_name:str):
|
|
201
|
+
query = self._get_document_from_docstore(source, vector_name)
|
|
202
|
+
|
|
203
|
+
document = await self.execute_sql_async(query)
|
|
204
|
+
|
|
205
|
+
return document
|
|
206
|
+
|
|
207
|
+
def _get_document_from_docstore(self, source:str, vector_name:str):
|
|
208
|
+
if not isinstance(source, str):
|
|
209
|
+
raise ValueError("The 'source' parameter must be a single string, not a list of strings or other iterable.")
|
|
210
|
+
|
|
211
|
+
table_name = f"{vector_name}_docstore"
|
|
212
|
+
doc_id = generate_uuid_from_object_id(source)
|
|
213
|
+
|
|
214
|
+
query = f"""
|
|
215
|
+
SELECT *
|
|
216
|
+
FROM {table_name}
|
|
217
|
+
WHERE doc_id = {doc_id}
|
|
218
|
+
LIMIT 1;
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
return query
|
|
171
222
|
|
|
172
223
|
async def get_sources_from_docstore_async(self, sources, vector_name, search_type="OR", just_source_name=False):
|
|
173
224
|
"""Fetches sources from the docstore asynchronously."""
|
|
@@ -211,7 +262,7 @@ class AlloyDBClient:
|
|
|
211
262
|
FROM {table_name}
|
|
212
263
|
WHERE {conditions}
|
|
213
264
|
ORDER BY langchain_metadata->>'objectId' ASC
|
|
214
|
-
LIMIT
|
|
265
|
+
LIMIT 50;
|
|
215
266
|
"""
|
|
216
267
|
|
|
217
268
|
return query
|
|
@@ -89,7 +89,7 @@ class ConfigManager:
|
|
|
89
89
|
continue
|
|
90
90
|
if filename.endswith(('.yaml', '.yml', '.json')):
|
|
91
91
|
config_file = os.path.join(folder, filename)
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
if filename in self.config_cache:
|
|
94
94
|
cached_config, cache_time = self.config_cache[filename]
|
|
95
95
|
time_to_recache = (current_time - cache_time)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.83.
|
|
3
|
+
Version: 0.83.5
|
|
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.83.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.83.5.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -21,7 +21,7 @@ License-File: LICENSE.txt
|
|
|
21
21
|
Requires-Dist: google-auth
|
|
22
22
|
Requires-Dist: ruamel.yaml
|
|
23
23
|
Requires-Dist: langchain>=0.2.12
|
|
24
|
-
Requires-Dist: langchain_experimental
|
|
24
|
+
Requires-Dist: langchain_experimental==0.0.63
|
|
25
25
|
Requires-Dist: langchain-community>=0.2.11
|
|
26
26
|
Provides-Extra: all
|
|
27
27
|
Requires-Dist: asyncpg; extra == "all"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|