thread-sdk 0.2.0__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.
- thread_sdk-0.2.0/Cargo.lock +287 -0
- thread_sdk-0.2.0/Cargo.toml +21 -0
- thread_sdk-0.2.0/PKG-INFO +445 -0
- thread_sdk-0.2.0/README.md +429 -0
- thread_sdk-0.2.0/crates/thread-core/Cargo.toml +8 -0
- thread_sdk-0.2.0/crates/thread-core/examples/tree_bench.rs +75 -0
- thread_sdk-0.2.0/crates/thread-core/src/container.rs +355 -0
- thread_sdk-0.2.0/crates/thread-core/src/delta.rs +728 -0
- thread_sdk-0.2.0/crates/thread-core/src/docs.rs +838 -0
- thread_sdk-0.2.0/crates/thread-core/src/error.rs +120 -0
- thread_sdk-0.2.0/crates/thread-core/src/excerpts.rs +1000 -0
- thread_sdk-0.2.0/crates/thread-core/src/filter.rs +260 -0
- thread_sdk-0.2.0/crates/thread-core/src/fusion.rs +446 -0
- thread_sdk-0.2.0/crates/thread-core/src/keys.rs +750 -0
- thread_sdk-0.2.0/crates/thread-core/src/kmeans.rs +808 -0
- thread_sdk-0.2.0/crates/thread-core/src/lex.rs +1556 -0
- thread_sdk-0.2.0/crates/thread-core/src/lib.rs +76 -0
- thread_sdk-0.2.0/crates/thread-core/src/math.rs +474 -0
- thread_sdk-0.2.0/crates/thread-core/src/part.rs +552 -0
- thread_sdk-0.2.0/crates/thread-core/src/pq.rs +595 -0
- thread_sdk-0.2.0/crates/thread-core/src/quant.rs +220 -0
- thread_sdk-0.2.0/crates/thread-core/src/rerank.rs +246 -0
- thread_sdk-0.2.0/crates/thread-core/src/route.rs +814 -0
- thread_sdk-0.2.0/crates/thread-core/src/routing.rs +1025 -0
- thread_sdk-0.2.0/crates/thread-core/src/search.rs +858 -0
- thread_sdk-0.2.0/crates/thread-core/src/segment.rs +693 -0
- thread_sdk-0.2.0/crates/thread-core/src/slab.rs +1262 -0
- thread_sdk-0.2.0/crates/thread-core/src/source.rs +759 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/identifiers.rs +205 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/light.rs +89 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/segment.rs +167 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/snowball/among.rs +6 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/snowball/english.rs +901 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/snowball/mod.rs +38 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize/snowball/snowball_env.rs +497 -0
- thread_sdk-0.2.0/crates/thread-core/src/tokenize.rs +1205 -0
- thread_sdk-0.2.0/crates/thread-core/src/tomb.rs +158 -0
- thread_sdk-0.2.0/crates/thread-core/src/topk.rs +191 -0
- thread_sdk-0.2.0/crates/thread-core/src/varint.rs +98 -0
- thread_sdk-0.2.0/crates/thread-py/Cargo.toml +15 -0
- thread_sdk-0.2.0/crates/thread-py/src/fusion.rs +113 -0
- thread_sdk-0.2.0/crates/thread-py/src/lex.rs +917 -0
- thread_sdk-0.2.0/crates/thread-py/src/lib.rs +1326 -0
- thread_sdk-0.2.0/crates/thread-py/src/run.rs +558 -0
- thread_sdk-0.2.0/pyproject.toml +33 -0
- thread_sdk-0.2.0/thread_sdk/__init__.py +143 -0
- thread_sdk-0.2.0/thread_sdk/_native.pyi +202 -0
- thread_sdk-0.2.0/thread_sdk/attrs.py +331 -0
- thread_sdk-0.2.0/thread_sdk/chunk.py +112 -0
- thread_sdk-0.2.0/thread_sdk/cold.py +152 -0
- thread_sdk-0.2.0/thread_sdk/embed.py +229 -0
- thread_sdk-0.2.0/thread_sdk/index.py +1410 -0
- thread_sdk-0.2.0/thread_sdk/lex.py +428 -0
- thread_sdk-0.2.0/thread_sdk/pack.py +623 -0
- thread_sdk-0.2.0/thread_sdk/py.typed +0 -0
- thread_sdk-0.2.0/thread_sdk/query.py +515 -0
- thread_sdk-0.2.0/thread_sdk/revision.py +192 -0
- thread_sdk-0.2.0/thread_sdk/s3.py +495 -0
- thread_sdk-0.2.0/thread_sdk/store.py +972 -0
- thread_sdk-0.2.0/thread_sdk/warm.py +271 -0
- thread_sdk-0.2.0/thread_sdk/wire.py +579 -0
- thread_sdk-0.2.0/thread_sdk/write.py +1006 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "bumpalo"
|
|
7
|
+
version = "3.20.3"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cfg-if"
|
|
13
|
+
version = "1.0.5"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "heck"
|
|
19
|
+
version = "0.5.0"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "itoa"
|
|
25
|
+
version = "1.0.18"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "libc"
|
|
31
|
+
version = "0.2.190"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "memchr"
|
|
37
|
+
version = "2.8.3"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "once_cell"
|
|
43
|
+
version = "1.21.4"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "portable-atomic"
|
|
49
|
+
version = "1.15.0"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "proc-macro2"
|
|
55
|
+
version = "1.0.107"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
58
|
+
dependencies = [
|
|
59
|
+
"unicode-ident",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "pyo3"
|
|
64
|
+
version = "0.29.3"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
|
|
67
|
+
dependencies = [
|
|
68
|
+
"libc",
|
|
69
|
+
"once_cell",
|
|
70
|
+
"portable-atomic",
|
|
71
|
+
"pyo3-build-config",
|
|
72
|
+
"pyo3-ffi",
|
|
73
|
+
"pyo3-macros",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "pyo3-build-config"
|
|
78
|
+
version = "0.29.3"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
|
|
81
|
+
dependencies = [
|
|
82
|
+
"target-lexicon",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "pyo3-ffi"
|
|
87
|
+
version = "0.29.3"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
|
|
90
|
+
dependencies = [
|
|
91
|
+
"libc",
|
|
92
|
+
"pyo3-build-config",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "pyo3-macros"
|
|
97
|
+
version = "0.29.3"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"proc-macro2",
|
|
102
|
+
"pyo3-macros-backend",
|
|
103
|
+
"quote",
|
|
104
|
+
"syn 2.0.119",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "pyo3-macros-backend"
|
|
109
|
+
version = "0.29.3"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
|
|
112
|
+
dependencies = [
|
|
113
|
+
"heck",
|
|
114
|
+
"proc-macro2",
|
|
115
|
+
"quote",
|
|
116
|
+
"syn 2.0.119",
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "quote"
|
|
121
|
+
version = "1.0.47"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
124
|
+
dependencies = [
|
|
125
|
+
"proc-macro2",
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
[[package]]
|
|
129
|
+
name = "rustversion"
|
|
130
|
+
version = "1.0.23"
|
|
131
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "serde"
|
|
136
|
+
version = "1.0.229"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"serde_core",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "serde_core"
|
|
145
|
+
version = "1.0.229"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"serde_derive",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "serde_derive"
|
|
154
|
+
version = "1.0.229"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
157
|
+
dependencies = [
|
|
158
|
+
"proc-macro2",
|
|
159
|
+
"quote",
|
|
160
|
+
"syn 3.0.6",
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "serde_json"
|
|
165
|
+
version = "1.0.151"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
|
|
168
|
+
dependencies = [
|
|
169
|
+
"itoa",
|
|
170
|
+
"memchr",
|
|
171
|
+
"serde",
|
|
172
|
+
"serde_core",
|
|
173
|
+
"zmij",
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "syn"
|
|
178
|
+
version = "2.0.119"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
181
|
+
dependencies = [
|
|
182
|
+
"proc-macro2",
|
|
183
|
+
"quote",
|
|
184
|
+
"unicode-ident",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "syn"
|
|
189
|
+
version = "3.0.6"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"proc-macro2",
|
|
194
|
+
"quote",
|
|
195
|
+
"unicode-ident",
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "target-lexicon"
|
|
200
|
+
version = "0.13.5"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "thread-cli"
|
|
206
|
+
version = "0.2.0"
|
|
207
|
+
dependencies = [
|
|
208
|
+
"serde_json",
|
|
209
|
+
"thread-core",
|
|
210
|
+
]
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "thread-core"
|
|
214
|
+
version = "0.2.0"
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "thread-py"
|
|
218
|
+
version = "0.2.0"
|
|
219
|
+
dependencies = [
|
|
220
|
+
"pyo3",
|
|
221
|
+
"thread-core",
|
|
222
|
+
]
|
|
223
|
+
|
|
224
|
+
[[package]]
|
|
225
|
+
name = "thread-wasm"
|
|
226
|
+
version = "0.2.0"
|
|
227
|
+
dependencies = [
|
|
228
|
+
"thread-core",
|
|
229
|
+
"wasm-bindgen",
|
|
230
|
+
]
|
|
231
|
+
|
|
232
|
+
[[package]]
|
|
233
|
+
name = "unicode-ident"
|
|
234
|
+
version = "1.0.26"
|
|
235
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
+
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "wasm-bindgen"
|
|
240
|
+
version = "0.2.129"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
|
|
243
|
+
dependencies = [
|
|
244
|
+
"cfg-if",
|
|
245
|
+
"once_cell",
|
|
246
|
+
"rustversion",
|
|
247
|
+
"wasm-bindgen-macro",
|
|
248
|
+
"wasm-bindgen-shared",
|
|
249
|
+
]
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "wasm-bindgen-macro"
|
|
253
|
+
version = "0.2.129"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
|
|
256
|
+
dependencies = [
|
|
257
|
+
"quote",
|
|
258
|
+
"wasm-bindgen-macro-support",
|
|
259
|
+
]
|
|
260
|
+
|
|
261
|
+
[[package]]
|
|
262
|
+
name = "wasm-bindgen-macro-support"
|
|
263
|
+
version = "0.2.129"
|
|
264
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
265
|
+
checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
|
|
266
|
+
dependencies = [
|
|
267
|
+
"bumpalo",
|
|
268
|
+
"proc-macro2",
|
|
269
|
+
"quote",
|
|
270
|
+
"syn 3.0.6",
|
|
271
|
+
"wasm-bindgen-shared",
|
|
272
|
+
]
|
|
273
|
+
|
|
274
|
+
[[package]]
|
|
275
|
+
name = "wasm-bindgen-shared"
|
|
276
|
+
version = "0.2.129"
|
|
277
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
278
|
+
checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
|
|
279
|
+
dependencies = [
|
|
280
|
+
"unicode-ident",
|
|
281
|
+
]
|
|
282
|
+
|
|
283
|
+
[[package]]
|
|
284
|
+
name = "zmij"
|
|
285
|
+
version = "1.0.23"
|
|
286
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
287
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
resolver = "2"
|
|
3
|
+
members = ["crates/thread-core", "crates/thread-py"]
|
|
4
|
+
|
|
5
|
+
[workspace.package]
|
|
6
|
+
version = "0.2.0"
|
|
7
|
+
edition = "2021"
|
|
8
|
+
license = "MIT"
|
|
9
|
+
|
|
10
|
+
[profile.release]
|
|
11
|
+
opt-level = 3
|
|
12
|
+
lto = "fat"
|
|
13
|
+
codegen-units = 1
|
|
14
|
+
panic = "abort"
|
|
15
|
+
debug = false
|
|
16
|
+
|
|
17
|
+
# The Python extension (crates/thread-py, built by maturin with `--profile python`): a panic must
|
|
18
|
+
# unwind into a Python exception instead of aborting the interpreter.
|
|
19
|
+
[profile.python]
|
|
20
|
+
inherits = "release"
|
|
21
|
+
panic = "unwind"
|