singlestoredb 1.3.1__cp38-abi3-win_amd64.whl → 1.4.0__cp38-abi3-win_amd64.whl
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 singlestoredb might be problematic. Click here for more details.
- _singlestoredb_accel.pyd +0 -0
- singlestoredb/__init__.py +1 -1
- singlestoredb/ai/__init__.py +1 -0
- singlestoredb/ai/embeddings.py +24 -0
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/METADATA +1 -1
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/RECORD +10 -8
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/LICENSE +0 -0
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/WHEEL +0 -0
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/entry_points.txt +0 -0
- {singlestoredb-1.3.1.dist-info → singlestoredb-1.4.0.dist-info}/top_level.txt +0 -0
_singlestoredb_accel.pyd
CHANGED
|
Binary file
|
singlestoredb/__init__.py
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .embeddings import SingleStoreEmbeddings # noqa: F401
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os as _os
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
try:
|
|
5
|
+
from langchain_community.embeddings.ollama import OllamaEmbeddings
|
|
6
|
+
except ImportError:
|
|
7
|
+
raise ImportError(
|
|
8
|
+
'Could not import langchain_community python package. '
|
|
9
|
+
'Please install it with `pip install langchain_community`.',
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SingleStoreEmbeddings(OllamaEmbeddings):
|
|
14
|
+
|
|
15
|
+
def __init__(self, **kwargs: Any):
|
|
16
|
+
url = _os.getenv('SINGLESTORE_AI_EXPERIMENTAL_URL')
|
|
17
|
+
if not url:
|
|
18
|
+
raise ValueError(
|
|
19
|
+
"Environment variable 'SINGLESTORE_AI_EXPERIMENTAL_URL' must be set",
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
base_url = url.strip('/v1')
|
|
23
|
+
kwargs = {'model': 'nomic-embed-text', **kwargs}
|
|
24
|
+
super().__init__(base_url=base_url, **kwargs)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
_singlestoredb_accel.pyd,sha256=
|
|
2
|
-
singlestoredb/__init__.py,sha256=
|
|
1
|
+
_singlestoredb_accel.pyd,sha256=tuOq-6-KgrwIGY_REPZ-HsqFY7KDKUeItwXR2TM4QRU,59392
|
|
2
|
+
singlestoredb/__init__.py,sha256=6wkuLfbXZ93lqjFD-ZImZEimU_N0m2gvZROBju_aYuk,1697
|
|
3
3
|
singlestoredb/auth.py,sha256=RmYiH0Wlc2RXc4pTlRMysxtBI445ggCIwojWKC_eDLE,7844
|
|
4
4
|
singlestoredb/config.py,sha256=9pVmVEZ23NfJ3pokdBDA0cX3bwUz6SbuT4AZWAcIPR4,12235
|
|
5
5
|
singlestoredb/connection.py,sha256=F8lTA62nwnQ_r9-WYANnbIBqacdAuX0wXGaET9PNkXA,46410
|
|
@@ -7,6 +7,8 @@ singlestoredb/converters.py,sha256=7_Of1f3Ow-JUoY1pHFlMPYxvt8llzdk-7X8qk5z2xJM,2
|
|
|
7
7
|
singlestoredb/exceptions.py,sha256=WCCJrNSsU-hD-621Jpd6bwmvGftQ7byXkk-XKXlaxpg,3354
|
|
8
8
|
singlestoredb/pytest.py,sha256=TH364xRCN7_QaN0oRQDHixrEcDx_ZBgu3bmY0tvKrYU,9357
|
|
9
9
|
singlestoredb/types.py,sha256=Lv0BEQl6aSZBiAe0OSI07FEJhcHZ9HX45iT9NU_mxHQ,10334
|
|
10
|
+
singlestoredb/ai/__init__.py,sha256=nT048t90xqjaNhz7KJ10KfSVW4RcZRoujyC6po6Nmb8,61
|
|
11
|
+
singlestoredb/ai/embeddings.py,sha256=KVvQY3viyYWXDBobFpj0xqiGRijt36zcHHlPNAfFAxA,770
|
|
10
12
|
singlestoredb/alchemy/__init__.py,sha256=bUmCl1xUn2v36RMbXLIrvgKzZSqx71mp1ReUw9JeVA8,2613
|
|
11
13
|
singlestoredb/functions/__init__.py,sha256=EVxqWOCcXiIX4Yj7rljAYBBoVbTvm2KSuKSkMBDnEeU,42
|
|
12
14
|
singlestoredb/functions/decorator.py,sha256=M103c1JAZfyGFQAU4uJ_J8XGGH3InhcfrNUCoEORNFQ,5335
|
|
@@ -111,9 +113,9 @@ singlestoredb/utils/dtypes.py,sha256=_P2fTX2Fgv9Bcl-2L6KivhWgLzyu91sDamxVnmG92Mw
|
|
|
111
113
|
singlestoredb/utils/mogrify.py,sha256=gCcn99-vgsGVjTUV7RHJ6hH4vCNrsGB_Xo4z8kiSPDQ,4201
|
|
112
114
|
singlestoredb/utils/results.py,sha256=wR70LhCqlobniZf52r67zYLBOKjWHQm68NAskdRQND8,15862
|
|
113
115
|
singlestoredb/utils/xdict.py,sha256=-wi1lSPTnY99fhVMBhPKJ8cCsQhNG4GMUfkEBDKYgCw,13321
|
|
114
|
-
singlestoredb-1.
|
|
115
|
-
singlestoredb-1.
|
|
116
|
-
singlestoredb-1.
|
|
117
|
-
singlestoredb-1.
|
|
118
|
-
singlestoredb-1.
|
|
119
|
-
singlestoredb-1.
|
|
116
|
+
singlestoredb-1.4.0.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
|
|
117
|
+
singlestoredb-1.4.0.dist-info/METADATA,sha256=ww0dPYe2a5XnYjR66RB_KeVh-5wDECATjrtS_9NQ1U8,5710
|
|
118
|
+
singlestoredb-1.4.0.dist-info/WHEEL,sha256=UyMHzmWA0xVqVPKfTiLs2eN3OWWZUl-kQemNbpIqlKo,100
|
|
119
|
+
singlestoredb-1.4.0.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
|
|
120
|
+
singlestoredb-1.4.0.dist-info/top_level.txt,sha256=SDtemIXf-Kp-_F2f_S6x0db33cHGOILdAEsIQZe2LZc,35
|
|
121
|
+
singlestoredb-1.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|