cocoindex 0.2.17__cp311-abi3-manylinux_2_28_x86_64.whl → 0.2.19__cp311-abi3-manylinux_2_28_x86_64.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.abi3.so +0 -0
- cocoindex/functions/__init__.py +5 -10
- cocoindex/functions/_engine_builtin_specs.py +4 -0
- cocoindex/sources/_engine_builtin_specs.py +3 -0
- cocoindex/targets/_engine_builtin_specs.py +10 -1
- {cocoindex-0.2.17.dist-info → cocoindex-0.2.19.dist-info}/METADATA +1 -1
- {cocoindex-0.2.17.dist-info → cocoindex-0.2.19.dist-info}/RECORD +10 -10
- {cocoindex-0.2.17.dist-info → cocoindex-0.2.19.dist-info}/WHEEL +1 -1
- {cocoindex-0.2.17.dist-info → cocoindex-0.2.19.dist-info}/licenses/THIRD_PARTY_NOTICES.html +34 -4
- {cocoindex-0.2.17.dist-info → cocoindex-0.2.19.dist-info}/entry_points.txt +0 -0
cocoindex/_engine.abi3.so
CHANGED
Binary file
|
cocoindex/functions/__init__.py
CHANGED
@@ -5,13 +5,7 @@ including embedding functions, text processing, and multimodal operations.
|
|
5
5
|
"""
|
6
6
|
|
7
7
|
# Import all engine builtin function specs
|
8
|
-
from ._engine_builtin_specs import
|
9
|
-
ParseJson,
|
10
|
-
SplitRecursively,
|
11
|
-
SplitBySeparators,
|
12
|
-
EmbedText,
|
13
|
-
ExtractByLlm,
|
14
|
-
)
|
8
|
+
from ._engine_builtin_specs import *
|
15
9
|
|
16
10
|
# Import SentenceTransformer embedding functionality
|
17
11
|
from .sbert import (
|
@@ -29,11 +23,12 @@ from .colpali import (
|
|
29
23
|
|
30
24
|
__all__ = [
|
31
25
|
# Engine builtin specs
|
32
|
-
"
|
33
|
-
"SplitRecursively",
|
34
|
-
"SplitBySeparators",
|
26
|
+
"DetectProgrammingLanguage",
|
35
27
|
"EmbedText",
|
36
28
|
"ExtractByLlm",
|
29
|
+
"ParseJson",
|
30
|
+
"SplitBySeparators",
|
31
|
+
"SplitRecursively",
|
37
32
|
# SentenceTransformer
|
38
33
|
"SentenceTransformerEmbed",
|
39
34
|
"SentenceTransformerEmbedExecutor",
|
@@ -19,6 +19,10 @@ class CustomLanguageSpec:
|
|
19
19
|
aliases: list[str] = dataclasses.field(default_factory=list)
|
20
20
|
|
21
21
|
|
22
|
+
class DetectProgrammingLanguage(op.FunctionSpec):
|
23
|
+
"""Detect the programming language of a file."""
|
24
|
+
|
25
|
+
|
22
26
|
class SplitRecursively(op.FunctionSpec):
|
23
27
|
"""Split a document (in string) recursively."""
|
24
28
|
|
@@ -100,3 +100,6 @@ class Postgres(op.SourceSpec):
|
|
100
100
|
|
101
101
|
# Optional: when set, supports change capture from PostgreSQL notification.
|
102
102
|
notification: PostgresNotification | None = None
|
103
|
+
|
104
|
+
# Optional: SQL expression filter for rows (arbitrary SQL boolean expression)
|
105
|
+
filter: str | None = None
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"""All builtin targets."""
|
2
2
|
|
3
3
|
from dataclasses import dataclass
|
4
|
-
from typing import Sequence
|
4
|
+
from typing import Sequence, Literal
|
5
5
|
|
6
6
|
from .. import op
|
7
7
|
from .. import index
|
@@ -9,12 +9,21 @@ from ..auth_registry import AuthEntryReference
|
|
9
9
|
from ..setting import DatabaseConnectionSpec
|
10
10
|
|
11
11
|
|
12
|
+
@dataclass
|
13
|
+
class PostgresColumnOptions:
|
14
|
+
"""Options for a Postgres column."""
|
15
|
+
|
16
|
+
# Specify the specific type of the column in Postgres. Can use it to override the default type derived from CocoIndex schema.
|
17
|
+
type: Literal["vector", "halfvec"] | None = None
|
18
|
+
|
19
|
+
|
12
20
|
class Postgres(op.TargetSpec):
|
13
21
|
"""Target powered by Postgres and pgvector."""
|
14
22
|
|
15
23
|
database: AuthEntryReference[DatabaseConnectionSpec] | None = None
|
16
24
|
table_name: str | None = None
|
17
25
|
schema: str | None = None
|
26
|
+
column_options: dict[str, PostgresColumnOptions] | None = None
|
18
27
|
|
19
28
|
|
20
29
|
class PostgresSqlCommand(op.TargetAttachmentSpec):
|
@@ -1,17 +1,17 @@
|
|
1
|
-
cocoindex-0.2.
|
2
|
-
cocoindex-0.2.
|
3
|
-
cocoindex-0.2.
|
4
|
-
cocoindex-0.2.
|
1
|
+
cocoindex-0.2.19.dist-info/METADATA,sha256=z-JkcBlnCXXhcn7yDzAi2OFeeyUKmozPm-p12261vU8,13444
|
2
|
+
cocoindex-0.2.19.dist-info/WHEEL,sha256=O2QTG69GgK-VjUv6T5nE2QGjJc-8mS3d1MslSxOOSiY,107
|
3
|
+
cocoindex-0.2.19.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
|
4
|
+
cocoindex-0.2.19.dist-info/licenses/THIRD_PARTY_NOTICES.html,sha256=FpJNEsnvjyAB1qtTee_XMRM_2Thi2mbI0mfm-AVM9Ag,719620
|
5
5
|
cocoindex/__init__.py,sha256=6qZWVkK4WZ01BIAg3CPh_bRRdA6Clk4d4Q6OnZ2jFa4,2630
|
6
|
-
cocoindex/_engine.abi3.so,sha256=
|
6
|
+
cocoindex/_engine.abi3.so,sha256=mb-G0vihKZu7XmhFXLIU8y_eA446lVBO5cYb0ZaDfIY,77248304
|
7
7
|
cocoindex/auth_registry.py,sha256=g-uLDWLYW5NMbYe7q4Y-sU5dSyrlJXBEciyWtAiP9KE,1340
|
8
8
|
cocoindex/cli.py,sha256=19IszBXOzqGn0xOV1SaS-oR9NupTmIm18uzFNET7NTQ,23978
|
9
9
|
cocoindex/engine_object.py,sha256=5YTuWoR3WILhyt3PW-d9es3MAas_xD6tZZqvipN-sjg,10050
|
10
10
|
cocoindex/engine_value.py,sha256=8M7MbwVG2bfd3kFptGGbQHBAp9pD3TVjrBiBDOAhD5M,23211
|
11
11
|
cocoindex/flow.py,sha256=JWPTR2G6TdPJkO5ZlrCcyDyQ8utUS4zZWNR8zsHTeW8,40074
|
12
12
|
cocoindex/functions.py,sha256=V4ljBnCprvA25XlCVvNLwK5ergXiEcKU76jkOGC-X3A,12882
|
13
|
-
cocoindex/functions/__init__.py,sha256=
|
14
|
-
cocoindex/functions/_engine_builtin_specs.py,sha256=
|
13
|
+
cocoindex/functions/__init__.py,sha256=V2IF4h-Cqq4OD_GN3Oqdry-FArORyRCKmqJ7g5UlJr8,1021
|
14
|
+
cocoindex/functions/_engine_builtin_specs.py,sha256=WpCGrjUfJBa8xZP5JiEmA8kLu7fp9Rcs7ynpuJmvSGg,1786
|
15
15
|
cocoindex/functions/colpali.py,sha256=oACyG3qG2dquyCJ6bT7FkMkua5rXDLSxnOHcgoz9waU,8865
|
16
16
|
cocoindex/functions/sbert.py,sha256=1z5OJT-blXT6tVN5vEvEzvYAzOnzs1RCnu1UbCUP6wM,2162
|
17
17
|
cocoindex/index.py,sha256=tz5ilvmOp0BtroGehCQDqWK_pIX9m6ghkhcxsDVU8WE,982
|
@@ -24,10 +24,10 @@ cocoindex/runtime.py,sha256=4NxcltaDZvA3RR3Pnt6gH_f99jcWSyMH_1Xi5BjbtwY,1342
|
|
24
24
|
cocoindex/setting.py,sha256=1Dx8ktjwf-8BiXrbsmfn5Mzudb2SQYqFdRnSNGVKaLk,4960
|
25
25
|
cocoindex/setup.py,sha256=7uIHKN4FOCuoidPXcKyGTrkqpkl9luL49-6UcnMxYzw,3068
|
26
26
|
cocoindex/sources/__init__.py,sha256=Yu9VHNaGlOEE3jpqfIseswsg25Le3HzwDr6XJAn22Ns,78
|
27
|
-
cocoindex/sources/_engine_builtin_specs.py,sha256=
|
27
|
+
cocoindex/sources/_engine_builtin_specs.py,sha256=s4AxMLi2j3ZHmzACVEGAdVe05gY8PRZ_mYMxWR7scDY,3304
|
28
28
|
cocoindex/subprocess_exec.py,sha256=r1xO84uek4VP4I6i87JMwsH5xFm3vKW0ABvgn0jskt4,10088
|
29
29
|
cocoindex/targets/__init__.py,sha256=HQG7I4U0xQhHiYctiUvwEBLxT2727oHP3xwrqotjmhk,78
|
30
|
-
cocoindex/targets/_engine_builtin_specs.py,sha256=
|
30
|
+
cocoindex/targets/_engine_builtin_specs.py,sha256=glXUN5bj11Jxky1VPvmGnWnMHXTQWEh08INcbldo3F4,3375
|
31
31
|
cocoindex/targets/lancedb.py,sha256=1nzCre5p-fvKkmLOTvfpiLTfnhF3qMLqTvsTwNuGwVU,15749
|
32
32
|
cocoindex/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
cocoindex/tests/test_engine_object.py,sha256=9llG3jMyP9_hM8FT4VXagCBh8qWU8U9_U5a2mLXiQ-4,11238
|
@@ -40,4 +40,4 @@ cocoindex/typing.py,sha256=so_RusbhBmg_uLoZTY7W_pqU0aIJwFarkTF5NQufl4o,23944
|
|
40
40
|
cocoindex/user_app_loader.py,sha256=bc3Af-gYRxJ9GpObtpjegZY855oQBCv5FGkrkWV2yGY,1873
|
41
41
|
cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
|
42
42
|
cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
|
43
|
-
cocoindex-0.2.
|
43
|
+
cocoindex-0.2.19.dist-info/RECORD,,
|
@@ -44,8 +44,8 @@
|
|
44
44
|
|
45
45
|
<h2>Overview of licenses:</h2>
|
46
46
|
<ul class="licenses-overview">
|
47
|
-
<li><a href="#Apache-2.0">Apache License 2.0</a> (
|
48
|
-
<li><a href="#MIT">MIT License</a> (
|
47
|
+
<li><a href="#Apache-2.0">Apache License 2.0</a> (416)</li>
|
48
|
+
<li><a href="#MIT">MIT License</a> (126)</li>
|
49
49
|
<li><a href="#Unicode-3.0">Unicode License v3</a> (19)</li>
|
50
50
|
<li><a href="#ISC">ISC License</a> (8)</li>
|
51
51
|
<li><a href="#BSD-3-Clause">BSD 3-Clause "New" or "Revised" License</a> (6)</li>
|
@@ -2428,7 +2428,7 @@ Software.
|
|
2428
2428
|
<h3 id="Apache-2.0">Apache License 2.0</h3>
|
2429
2429
|
<h4>Used by:</h4>
|
2430
2430
|
<ul class="license-used-by">
|
2431
|
-
<li><a href=" https://crates.io/crates/cocoindex ">cocoindex 0.2.
|
2431
|
+
<li><a href=" https://crates.io/crates/cocoindex ">cocoindex 0.2.19</a></li>
|
2432
2432
|
<li><a href=" https://github.com/awesomized/crc-fast-rust ">crc-fast 1.3.0</a></li>
|
2433
2433
|
<li><a href=" https://github.com/qdrant/rust-client ">qdrant-client 1.15.0</a></li>
|
2434
2434
|
</ul>
|
@@ -9559,6 +9559,7 @@ limitations under the License.
|
|
9559
9559
|
<li><a href=" https://github.com/googleapis/google-cloud-rust/tree/main ">google-cloud-rpc 0.4.5</a></li>
|
9560
9560
|
<li><a href=" https://github.com/googleapis/google-cloud-rust/tree/main ">google-cloud-type 0.4.5</a></li>
|
9561
9561
|
<li><a href=" https://github.com/googleapis/google-cloud-rust/tree/main ">google-cloud-wkt 0.5.4</a></li>
|
9562
|
+
<li><a href=" https://github.com/VoidStarKat/half-rs ">half 2.6.0</a></li>
|
9562
9563
|
<li><a href=" https://github.com/TedDriggs/ident_case ">ident_case 1.0.1</a></li>
|
9563
9564
|
<li><a href=" https://github.com/yaahc/indenter ">indenter 0.3.4</a></li>
|
9564
9565
|
<li><a href=" https://github.com/dtolnay/indoc ">indoc 2.0.6</a></li>
|
@@ -11931,7 +11932,7 @@ SOFTWARE.
|
|
11931
11932
|
<li><a href=" https://github.com/tree-sitter/tree-sitter-json ">tree-sitter-json 0.24.8</a></li>
|
11932
11933
|
<li><a href=" https://github.com/tree-sitter-grammars/tree-sitter-kotlin ">tree-sitter-kotlin-ng 1.1.0</a></li>
|
11933
11934
|
<li><a href=" https://github.com/tree-sitter/tree-sitter ">tree-sitter-language 0.1.5</a></li>
|
11934
|
-
<li><a href=" https://github.com/tree-sitter-grammars/tree-sitter-markdown ">tree-sitter-md 0.
|
11935
|
+
<li><a href=" https://github.com/tree-sitter-grammars/tree-sitter-markdown ">tree-sitter-md 0.5.1</a></li>
|
11935
11936
|
<li><a href=" https://github.com/Isopod/tree-sitter-pascal ">tree-sitter-pascal 0.10.0</a></li>
|
11936
11937
|
<li><a href=" https://github.com/tree-sitter/tree-sitter-php ">tree-sitter-php 0.23.11</a></li>
|
11937
11938
|
<li><a href=" https://github.com/tree-sitter/tree-sitter-python ">tree-sitter-python 0.23.6</a></li>
|
@@ -12174,6 +12175,35 @@ furnished to do so, subject to the following conditions:
|
|
12174
12175
|
The above copyright notice and this permission notice shall be included in all
|
12175
12176
|
copies or substantial portions of the Software.
|
12176
12177
|
|
12178
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
12179
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
12180
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
12181
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
12182
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
12183
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
12184
|
+
SOFTWARE.
|
12185
|
+
</pre>
|
12186
|
+
</li>
|
12187
|
+
<li class="license">
|
12188
|
+
<h3 id="MIT">MIT License</h3>
|
12189
|
+
<h4>Used by:</h4>
|
12190
|
+
<ul class="license-used-by">
|
12191
|
+
<li><a href=" https://github.com/eira-fransham/crunchy ">crunchy 0.2.4</a></li>
|
12192
|
+
</ul>
|
12193
|
+
<pre class="license-text">The MIT License (MIT)
|
12194
|
+
|
12195
|
+
Copyright 2017-2023 Eira Fransham.
|
12196
|
+
|
12197
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
12198
|
+
of this software and associated documentation files (the "Software"), to deal
|
12199
|
+
in the Software without restriction, including without limitation the rights
|
12200
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12201
|
+
copies of the Software, and to permit persons to whom the Software is
|
12202
|
+
furnished to do so, subject to the following conditions:
|
12203
|
+
|
12204
|
+
The above copyright notice and this permission notice shall be included in all
|
12205
|
+
copies or substantial portions of the Software.
|
12206
|
+
|
12177
12207
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
12178
12208
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
12179
12209
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
File without changes
|