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 CHANGED
Binary file
singlestoredb/__init__.py CHANGED
@@ -13,7 +13,7 @@ Examples
13
13
 
14
14
  """
15
15
 
16
- __version__ = '1.3.1'
16
+ __version__ = '1.4.0'
17
17
 
18
18
  from typing import Any
19
19
 
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: singlestoredb
3
- Version: 1.3.1
3
+ Version: 1.4.0
4
4
  Summary: Interface to the SingleStoreDB database and workspace management APIs
5
5
  Home-page: https://github.com/singlestore-labs/singlestoredb-python
6
6
  Author: SingleStore
@@ -1,5 +1,5 @@
1
- _singlestoredb_accel.pyd,sha256=wbjBPhoeB2rV19yfncRvypQPgsov7JHRkq70JoQrgDY,59392
2
- singlestoredb/__init__.py,sha256=eOYfIL2GGeeYeD3HtFLj7mQ0gqLmxp0P8M5boidemwI,1697
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.3.1.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
115
- singlestoredb-1.3.1.dist-info/METADATA,sha256=zXTxhh2fWGshA5b1Lenx0ywO6jBszi7BZHZcQMnb0HE,5710
116
- singlestoredb-1.3.1.dist-info/WHEEL,sha256=UyMHzmWA0xVqVPKfTiLs2eN3OWWZUl-kQemNbpIqlKo,100
117
- singlestoredb-1.3.1.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
118
- singlestoredb-1.3.1.dist-info/top_level.txt,sha256=SDtemIXf-Kp-_F2f_S6x0db33cHGOILdAEsIQZe2LZc,35
119
- singlestoredb-1.3.1.dist-info/RECORD,,
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,,