cocoindex 0.1.77__cp313-cp313-macosx_11_0_arm64.whl → 0.1.79__cp313-cp313-macosx_11_0_arm64.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.
- cocoindex/_engine.cpython-313-darwin.so +0 -0
- cocoindex/llm.py +11 -1
- cocoindex/setting.py +16 -2
- {cocoindex-0.1.77.dist-info → cocoindex-0.1.79.dist-info}/METADATA +1 -1
- {cocoindex-0.1.77.dist-info → cocoindex-0.1.79.dist-info}/RECORD +8 -8
- {cocoindex-0.1.77.dist-info → cocoindex-0.1.79.dist-info}/WHEEL +1 -1
- {cocoindex-0.1.77.dist-info → cocoindex-0.1.79.dist-info}/entry_points.txt +0 -0
- {cocoindex-0.1.77.dist-info → cocoindex-0.1.79.dist-info}/licenses/LICENSE +0 -0
Binary file
|
cocoindex/llm.py
CHANGED
@@ -26,6 +26,16 @@ class VertexAiConfig:
|
|
26
26
|
region: str | None = None
|
27
27
|
|
28
28
|
|
29
|
+
@dataclass
|
30
|
+
class OpenAiConfig:
|
31
|
+
"""A specification for a OpenAI LLM."""
|
32
|
+
|
33
|
+
kind = "OpenAi"
|
34
|
+
|
35
|
+
org_id: str | None = None
|
36
|
+
project_id: str | None = None
|
37
|
+
|
38
|
+
|
29
39
|
@dataclass
|
30
40
|
class LlmSpec:
|
31
41
|
"""A specification for a LLM."""
|
@@ -33,4 +43,4 @@ class LlmSpec:
|
|
33
43
|
api_type: LlmApiType
|
34
44
|
model: str
|
35
45
|
address: str | None = None
|
36
|
-
api_config: VertexAiConfig | None = None
|
46
|
+
api_config: VertexAiConfig | OpenAiConfig | None = None
|
cocoindex/setting.py
CHANGED
@@ -44,6 +44,8 @@ class DatabaseConnectionSpec:
|
|
44
44
|
url: str
|
45
45
|
user: str | None = None
|
46
46
|
password: str | None = None
|
47
|
+
max_connections: int = 64
|
48
|
+
min_connections: int = 16
|
47
49
|
|
48
50
|
|
49
51
|
@dataclass
|
@@ -51,7 +53,7 @@ class GlobalExecutionOptions:
|
|
51
53
|
"""Global execution options."""
|
52
54
|
|
53
55
|
# The maximum number of concurrent inflight requests, shared among all sources from all flows.
|
54
|
-
source_max_inflight_rows: int | None =
|
56
|
+
source_max_inflight_rows: int | None = 1024
|
55
57
|
source_max_inflight_bytes: int | None = None
|
56
58
|
|
57
59
|
|
@@ -92,10 +94,22 @@ class Settings:
|
|
92
94
|
|
93
95
|
database_url = os.getenv("COCOINDEX_DATABASE_URL")
|
94
96
|
if database_url is not None:
|
95
|
-
db_kwargs: dict[str,
|
97
|
+
db_kwargs: dict[str, Any] = dict()
|
96
98
|
_load_field(db_kwargs, "url", "COCOINDEX_DATABASE_URL", required=True)
|
97
99
|
_load_field(db_kwargs, "user", "COCOINDEX_DATABASE_USER")
|
98
100
|
_load_field(db_kwargs, "password", "COCOINDEX_DATABASE_PASSWORD")
|
101
|
+
_load_field(
|
102
|
+
db_kwargs,
|
103
|
+
"max_connections",
|
104
|
+
"COCOINDEX_DATABASE_MAX_CONNECTIONS",
|
105
|
+
parse=int,
|
106
|
+
)
|
107
|
+
_load_field(
|
108
|
+
db_kwargs,
|
109
|
+
"min_connections",
|
110
|
+
"COCOINDEX_DATABASE_MIN_CONNECTIONS",
|
111
|
+
parse=int,
|
112
|
+
)
|
99
113
|
database = DatabaseConnectionSpec(**db_kwargs)
|
100
114
|
else:
|
101
115
|
database = None
|
@@ -1,9 +1,9 @@
|
|
1
|
-
cocoindex-0.1.
|
2
|
-
cocoindex-0.1.
|
3
|
-
cocoindex-0.1.
|
4
|
-
cocoindex-0.1.
|
1
|
+
cocoindex-0.1.79.dist-info/METADATA,sha256=1RyDQg5xjdf954JY3IBfZaAe5u6SQ2x-sDcPJDlSuPQ,11799
|
2
|
+
cocoindex-0.1.79.dist-info/WHEEL,sha256=BEq5B3wYswoCWPV13YmTFE5pEXWgkinJwNC6mhIE-oI,104
|
3
|
+
cocoindex-0.1.79.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
|
4
|
+
cocoindex-0.1.79.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
5
5
|
cocoindex/__init__.py,sha256=sLpSVO5Cotgn_82lawxvXnaqfa-qj33rytWBAe2MTtU,2201
|
6
|
-
cocoindex/_engine.cpython-313-darwin.so,sha256
|
6
|
+
cocoindex/_engine.cpython-313-darwin.so,sha256=-_lkdHXa9kEPLxy_tfuGwQrzkRd04D7Q-nNZCR148Yc,65136704
|
7
7
|
cocoindex/auth_registry.py,sha256=PE1-kVkcyC1G2C_V7b1kvYzeq73OFQehWKQP7ln7fJ8,1478
|
8
8
|
cocoindex/cli.py,sha256=-gp639JSyQN6YjnhGqCakIzYoSSqXxQMbxbkcYGP0QY,22359
|
9
9
|
cocoindex/convert.py,sha256=HodeDl1HVX8nnBH02lQKarw5i3xmkjB0nGj-DXt7Ifc,18284
|
@@ -11,11 +11,11 @@ cocoindex/flow.py,sha256=egKbBG2X9DjAqmcATcndyRhe9zMZHRd-YxKCpt9BsUg,36551
|
|
11
11
|
cocoindex/functions.py,sha256=34sZWoS0zGnaKyooIODQgc6QEPZKiJoWhfb8jKIWwps,9528
|
12
12
|
cocoindex/index.py,sha256=j93B9jEvvLXHtpzKWL88SY6wCGEoPgpsQhEGHlyYGFg,540
|
13
13
|
cocoindex/lib.py,sha256=f--9dAYd84CZosbDZqNW0oGbBLsY3dXiUTR1VrfQ_QY,817
|
14
|
-
cocoindex/llm.py,sha256=
|
14
|
+
cocoindex/llm.py,sha256=Pv_cdnRngTLtuLU9AUmS8izIHhcKVnuBNolC33f9BDI,851
|
15
15
|
cocoindex/op.py,sha256=EZ3QrDGJciYAxsqBeZOc3SstOL_34a6cke3WXWwz4-M,22538
|
16
16
|
cocoindex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
cocoindex/runtime.py,sha256=povilB3HH3y1JF-yxKwU-pD8n2WnAqyQxIgvXXHNc60,1080
|
18
|
-
cocoindex/setting.py,sha256=
|
18
|
+
cocoindex/setting.py,sha256=n5ipJ_uMFZBh5-Ib_gyjOqS_XPXsQwTFVYEuSAnoscg,5283
|
19
19
|
cocoindex/setup.py,sha256=7uIHKN4FOCuoidPXcKyGTrkqpkl9luL49-6UcnMxYzw,3068
|
20
20
|
cocoindex/sources.py,sha256=69COA4qbZDipzGYfXv-WJSmicFkA509xIShRGDh6A0A,2083
|
21
21
|
cocoindex/targets.py,sha256=Nfh_tpFd1goTnS_cxBjIs4j9zl3Z4Z1JomAQ1dl3Sic,2796
|
@@ -28,4 +28,4 @@ cocoindex/tests/test_validation.py,sha256=X6AQzVs-hVKIXcrHMEMQnhfUE8at7iXQnPq8nH
|
|
28
28
|
cocoindex/typing.py,sha256=qQ0ANF3iuQDeSqipHgL2SDiiXL2reTMUN0aj4ve_T0w,13359
|
29
29
|
cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
|
30
30
|
cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
|
31
|
-
cocoindex-0.1.
|
31
|
+
cocoindex-0.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|