@far-world-labs/verblets 0.3.2 → 0.4.0
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.
- package/README.md +14 -2
- package/dist/index.browser.js +218 -71
- package/dist/index.js +367 -219
- package/dist/shared-CMgpfDG4.js +10714 -0
- package/package.json +9 -7
- package/dist/shared-C6kPWghF.js +0 -7806
package/README.md
CHANGED
|
@@ -88,6 +88,16 @@ Content utilities generate, transform, and analyze text while maintaining struct
|
|
|
88
88
|
- [veiled-variants](./src/chains/veiled-variants) - Reword queries to avoid triggering content filters
|
|
89
89
|
|
|
90
90
|
|
|
91
|
+
### Retrieval
|
|
92
|
+
|
|
93
|
+
Retrieval utilities transform queries and prepare text for search and RAG workflows.
|
|
94
|
+
|
|
95
|
+
- [embed-rewrite-query](./src/verblets/embed-rewrite-query) - Rewrite search queries for clarity and specificity
|
|
96
|
+
- [embed-multi-query](./src/verblets/embed-multi-query) - Generate diverse query variants for broader retrieval
|
|
97
|
+
- [embed-step-back](./src/verblets/embed-step-back) - Broaden queries to underlying concepts and principles
|
|
98
|
+
- [embed-subquestions](./src/verblets/embed-subquestions) - Split complex queries into atomic sub-questions
|
|
99
|
+
|
|
100
|
+
|
|
91
101
|
### Utility Operations
|
|
92
102
|
|
|
93
103
|
Utility operations are uncategorized functionality like automatic tool selection, intent parsing, and context compression.
|
|
@@ -107,16 +117,18 @@ Codebase utilities analyze, test, and improve code quality using AI reasoning.
|
|
|
107
117
|
|
|
108
118
|
- [scan-js](./src/chains/scan-js) - Examine JavaScript for patterns, anti-patterns, and potential issues
|
|
109
119
|
- [test](./src/chains/test) - Generate test cases covering happy paths, edge cases, and error conditions
|
|
110
|
-
|
|
120
|
+
|
|
111
121
|
|
|
112
122
|
## Library Helpers
|
|
113
123
|
|
|
114
124
|
Helpers support higher-level operations. They make no LLM calls and are often synchronous.
|
|
115
125
|
|
|
116
|
-
- [
|
|
126
|
+
- [llm](./src/lib/llm) - LLM wrapper
|
|
117
127
|
- [prompt-cache](./src/lib/prompt-cache) - Cache prompts and responses
|
|
118
128
|
- [retry](./src/lib/retry) - Retry asynchronous calls
|
|
119
129
|
- [ring-buffer](./src/lib/ring-buffer) - Circular buffer implementation for running LLMs on streams of data
|
|
130
|
+
- [embed-normalize-text](./src/lib/embed-normalize-text) - Normalize text (NFC, whitespace, line endings) for consistent processing
|
|
131
|
+
- [embed-neighbor-chunks](./src/lib/embed-neighbor-chunks) - Expand retrieved chunks with neighboring context
|
|
120
132
|
|
|
121
133
|
## Contributing
|
|
122
134
|
|
package/dist/index.browser.js
CHANGED
|
@@ -1,74 +1,221 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cy as a } from "./shared-CMgpfDG4.js";
|
|
2
|
+
import { cv as r, B as i, C as c, F as n, D as o, E as l, a8 as b, Q as p, bN as m, bM as u, z as d, U as g, aT as I, m as S, ae as h, ao as y, bf as T, b_ as C, f as P, ay as f, R as B, x as R, y as E, ax as F, bd as v, M, N as x, cd as N, bG as k, az as L, bE as O, aA as A, ce as w, b5 as G, cx as D, d as U, aB as V, aC as W, cf as _, bZ as q, bY as z, bI as Q, A as Y, G as j, V as K, aU as J, o as X, ap as H, aq as Z, g as $, bH as aa, a as sa, O as ea, P as ta, a9 as ra, aD as ia, aF as ca, aH as na, aI as oa, bn as la, bC as ba, bo as pa, bA as ma, bp as ua, bB as da, bu as ga, bz as Ia, by as Sa, bt as ha, bx as ya, bs as Ta, bD as Ca, bv as Pa, bw as fa, bq as Ba, bV as Ra, bW as Ea, bU as Fa, bS as va, bX as Ma, bQ as xa, bR as Na, bT as ka, S as La, X as Oa, Z as Aa, _ as wa, W as Ga, Y as Da, T as Ua, i as Va, bg as Wa, bh as _a, $ as qa, aw as za, c4 as Qa, aJ as Ya, a0 as ja, aK as Ka, c0 as Ja, a1 as Xa, a6 as Ha, cu as Za, aE as $a, J as as, K as ss, a2 as es, a3 as ts, cw as rs, bi as is, a4 as cs, aL as ns, cg as os, a5 as ls, a7 as bs, aa as ps, a as ms, bj as us, bk as ds, ab as gs, aM as Is, aN as Ss, bJ as hs, n as ys, h as Ts, H as Cs, I as Ps, ch as fs, bK as Bs, bL as Rs, cc as Es, aV as Fs, aW as vs, aO as Ms, bk as xs, ci as Ns, co as ks, aP as Ls, w as Os, cr as As, cs as ws, cp as Gs, aQ as Ds, bF as Us, r as Vs, aS as Ws, aR as _s, aY as qs, a_ as zs, a$ as Qs, aX as Ys, aZ as js, ct as Ks, c as Js, bP as Xs, k as Hs, q as Zs, u as $s, v as ae, p as se, t as ee, l as te, b0 as re, cq as ie, bc as ce, s as ne, b$ as oe, ac as le, ah as be, aj as pe, ak as me, af as ue, ag as de, ai as ge, ad as Ie, bl as Se, e as he, br as ye, bm as Te, cn as Ce, aG as Pe, b1 as fe, be as Be, al as Re, cj as Ee, b2 as Fe, c6 as ve, c5 as Me, b3 as xe, an as Ne, b4 as ke, am as Le, as as Oe, au as Ae, av as we, ar as Ge, at as De, bO as Ue, b6 as Ve, b7 as We, c7 as _e, c9 as qe, ca as ze, c8 as Qe, cb as Ye, b8 as je, b9 as Ke, ck as Je, cl as Xe, bb as He, ba as Ze, c1 as $e, c2 as at, c3 as st, L as et, cm as tt } from "./shared-CMgpfDG4.js";
|
|
3
3
|
a();
|
|
4
4
|
export {
|
|
5
|
-
r as
|
|
6
|
-
i as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
p as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
B as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
M as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
A as
|
|
37
|
-
|
|
38
|
-
G as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
ea as
|
|
58
|
-
ta as
|
|
59
|
-
ra as
|
|
60
|
-
ia as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
pa as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
da as
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
5
|
+
r as CAPABILITY_KEYS,
|
|
6
|
+
i as COMPLIANCE,
|
|
7
|
+
c as CONTEXT_KINDS,
|
|
8
|
+
n as COST_POSTURE,
|
|
9
|
+
o as DOMAIN,
|
|
10
|
+
l as ENVIRONMENT,
|
|
11
|
+
b as ListStyle,
|
|
12
|
+
p as QUALITY_INTENT,
|
|
13
|
+
m as TimedAbortController,
|
|
14
|
+
u as anySignal,
|
|
15
|
+
d as applyCalibrate,
|
|
16
|
+
g as applyEntities,
|
|
17
|
+
I as applyRelations,
|
|
18
|
+
S as applyScale,
|
|
19
|
+
h as applyScore,
|
|
20
|
+
y as applyTags,
|
|
21
|
+
T as auto,
|
|
22
|
+
C as batchTracker,
|
|
23
|
+
P as bool,
|
|
24
|
+
f as buildSeedGenerationPrompt,
|
|
25
|
+
B as calculateStatistics,
|
|
26
|
+
R as calibrate,
|
|
27
|
+
E as calibrateSpec,
|
|
28
|
+
F as categorySamples,
|
|
29
|
+
v as causalFramePrompt,
|
|
30
|
+
M as centralTendency,
|
|
31
|
+
x as centralTendencyLines,
|
|
32
|
+
N as chunk,
|
|
33
|
+
k as chunkSentences,
|
|
34
|
+
L as collectTerms,
|
|
35
|
+
O as combinations,
|
|
36
|
+
A as commonalities,
|
|
37
|
+
w as compact,
|
|
38
|
+
G as computeTagStatistics,
|
|
39
|
+
D as config,
|
|
40
|
+
U as constants,
|
|
41
|
+
V as conversation,
|
|
42
|
+
W as conversationTurnReduce,
|
|
43
|
+
_ as cosineSimilarity,
|
|
44
|
+
q as createBatchContext,
|
|
45
|
+
z as createBatchProgressCallback,
|
|
46
|
+
Q as createBatches,
|
|
47
|
+
Y as createCalibratedClassifier,
|
|
48
|
+
j as createContextBuilder,
|
|
49
|
+
K as createEntityExtractor,
|
|
50
|
+
J as createRelationExtractor,
|
|
51
|
+
X as createScale,
|
|
52
|
+
H as createTagExtractor,
|
|
53
|
+
Z as createTagger,
|
|
54
|
+
$ as date,
|
|
55
|
+
aa as debug,
|
|
56
|
+
sa as default,
|
|
57
|
+
ea as detectPatterns,
|
|
58
|
+
ta as detectThreshold,
|
|
59
|
+
ra as determineStyle,
|
|
60
|
+
ia as disambiguate,
|
|
61
|
+
ca as dismantle,
|
|
62
|
+
na as dismantleFactory,
|
|
63
|
+
oa as documentShrink,
|
|
64
|
+
la as embed,
|
|
65
|
+
ba as embedAssembleSpan,
|
|
66
|
+
pa as embedBatch,
|
|
67
|
+
ma as embedBuildIndex,
|
|
68
|
+
ua as embedChunked,
|
|
69
|
+
da as embedMergeRanges,
|
|
70
|
+
ga as embedMultiQuery,
|
|
71
|
+
Ia as embedNeighborChunks,
|
|
72
|
+
Sa as embedNormalizeText,
|
|
73
|
+
ha as embedRewriteQuery,
|
|
74
|
+
ya as embedRewriteToOutputDoc,
|
|
75
|
+
Ta as embedScore,
|
|
76
|
+
Ca as embedStandaloneSpan,
|
|
77
|
+
Pa as embedStepBack,
|
|
78
|
+
fa as embedSubquestions,
|
|
79
|
+
Ba as embedWarmup,
|
|
80
|
+
Ra as emitBatchComplete,
|
|
81
|
+
Ea as emitBatchProcessed,
|
|
82
|
+
Fa as emitBatchStart,
|
|
83
|
+
va as emitComplete,
|
|
84
|
+
Ma as emitPhaseProgress,
|
|
85
|
+
xa as emitProgress,
|
|
86
|
+
Na as emitStart,
|
|
87
|
+
ka as emitStepProgress,
|
|
88
|
+
La as entities,
|
|
89
|
+
Oa as entitiesFilterInstructions,
|
|
90
|
+
Aa as entitiesFindInstructions,
|
|
91
|
+
wa as entitiesGroupInstructions,
|
|
92
|
+
Ga as entitiesMapInstructions,
|
|
93
|
+
Da as entitiesReduceInstructions,
|
|
94
|
+
Ua as entitySpec,
|
|
95
|
+
Va as enums,
|
|
96
|
+
Wa as expect,
|
|
97
|
+
_a as expectChain,
|
|
98
|
+
qa as extractBlocks,
|
|
99
|
+
za as extractFeatures,
|
|
100
|
+
Qa as extractJson,
|
|
101
|
+
Ya as fillMissing,
|
|
102
|
+
ja as filter,
|
|
103
|
+
Ka as filterAmbiguous,
|
|
104
|
+
Ja as filterProgress,
|
|
105
|
+
Xa as find,
|
|
106
|
+
Ha as generateList,
|
|
107
|
+
Za as getCapabilities,
|
|
108
|
+
$a as getMeanings,
|
|
109
|
+
as as getOption,
|
|
110
|
+
ss as getOptions,
|
|
111
|
+
es as glossary,
|
|
112
|
+
ts as group,
|
|
113
|
+
rs as init,
|
|
114
|
+
is as intent,
|
|
115
|
+
cs as intersections,
|
|
116
|
+
ns as join,
|
|
117
|
+
os as last,
|
|
118
|
+
ls as list,
|
|
119
|
+
bs as listBatch,
|
|
120
|
+
ps as listExpand,
|
|
121
|
+
ms as llm,
|
|
122
|
+
us as llmLogger,
|
|
123
|
+
ds as makePrompt,
|
|
124
|
+
gs as map,
|
|
125
|
+
Is as name,
|
|
126
|
+
Ss as nameSimilarTo,
|
|
127
|
+
hs as normalizeLlm,
|
|
128
|
+
ys as number,
|
|
129
|
+
Ts as numberWithUnits,
|
|
130
|
+
Cs as observeApplication,
|
|
131
|
+
Ps as observeProviders,
|
|
132
|
+
fs as omit,
|
|
133
|
+
Bs as parallel,
|
|
134
|
+
Rs as parallelMap,
|
|
135
|
+
Es as parseLLMList,
|
|
136
|
+
Fs as parseRDFLiteral,
|
|
137
|
+
vs as parseRelations,
|
|
138
|
+
Ms as people,
|
|
139
|
+
xs as phailForge,
|
|
140
|
+
Ns as pick,
|
|
141
|
+
ks as pipe,
|
|
142
|
+
Ls as popReference,
|
|
143
|
+
Os as probeScan,
|
|
144
|
+
As as promptCache,
|
|
145
|
+
ws as promptPiece,
|
|
146
|
+
Gs as prompts,
|
|
147
|
+
Ds as questions,
|
|
148
|
+
Us as rangeCombinations,
|
|
149
|
+
Vs as reduce,
|
|
150
|
+
Ws as relationSpec,
|
|
151
|
+
_s as relations,
|
|
152
|
+
qs as relationsFilterInstructions,
|
|
153
|
+
zs as relationsFindInstructions,
|
|
154
|
+
Qs as relationsGroupInstructions,
|
|
155
|
+
Ys as relationsMapInstructions,
|
|
156
|
+
js as relationsReduceInstructions,
|
|
157
|
+
Ks as resolveModel,
|
|
158
|
+
Js as retry,
|
|
159
|
+
Xs as ringBuffer,
|
|
160
|
+
Hs as scale,
|
|
161
|
+
Zs as scaleFilterInstructions,
|
|
162
|
+
$s as scaleFindInstructions,
|
|
163
|
+
ae as scaleGroupInstructions,
|
|
164
|
+
se as scaleMapInstructions,
|
|
165
|
+
ee as scaleReduceInstructions,
|
|
166
|
+
te as scaleSpec,
|
|
167
|
+
re as schemaOrg,
|
|
168
|
+
ie as schemas,
|
|
169
|
+
ce as scientificFramingPrompt,
|
|
170
|
+
ne as scopeOperation,
|
|
171
|
+
oe as scopeProgress,
|
|
172
|
+
le as score,
|
|
173
|
+
be as scoreFilterInstructions,
|
|
174
|
+
pe as scoreFindInstructions,
|
|
175
|
+
me as scoreGroupInstructions,
|
|
176
|
+
ue as scoreItem,
|
|
177
|
+
de as scoreMapInstructions,
|
|
178
|
+
ge as scoreReduceInstructions,
|
|
179
|
+
Ie as scoreSpec,
|
|
180
|
+
Se as sentiment,
|
|
181
|
+
he as services,
|
|
182
|
+
ye as setEmbedEnabled,
|
|
183
|
+
Te as setInterval,
|
|
184
|
+
Ce as shuffle,
|
|
185
|
+
Pe as simplifyTree,
|
|
186
|
+
fe as socratic,
|
|
187
|
+
Be as softCoverPrompt,
|
|
188
|
+
Re as sort,
|
|
189
|
+
Ee as sortBy,
|
|
190
|
+
Fe as split,
|
|
191
|
+
ve as stripNumeric,
|
|
192
|
+
Me as stripResponse,
|
|
193
|
+
xe as summaryMap,
|
|
194
|
+
Ne as tagSpec,
|
|
195
|
+
ke as tagVocabulary,
|
|
196
|
+
Le as tags,
|
|
197
|
+
Oe as tagsFilterInstructions,
|
|
198
|
+
Ae as tagsFindInstructions,
|
|
199
|
+
we as tagsGroupInstructions,
|
|
200
|
+
Ge as tagsMapInstructions,
|
|
201
|
+
De as tagsReduceInstructions,
|
|
202
|
+
Ue as templateReplace,
|
|
203
|
+
Ve as themes,
|
|
204
|
+
We as timeline,
|
|
205
|
+
_e as toBool,
|
|
206
|
+
qe as toDate,
|
|
207
|
+
ze as toEnum,
|
|
208
|
+
Qe as toNumber,
|
|
209
|
+
Ye as toNumberWithUnits,
|
|
210
|
+
je as toObject,
|
|
211
|
+
Ke as truncate,
|
|
212
|
+
Je as unionBy,
|
|
213
|
+
Xe as vectorSearch,
|
|
214
|
+
He as veiledVariantStrategies,
|
|
215
|
+
Ze as veiledVariants,
|
|
216
|
+
$e as version,
|
|
217
|
+
at as windowFor,
|
|
218
|
+
st as withInactivityTimeout,
|
|
219
|
+
et as withPolicy,
|
|
220
|
+
tt as zipWith
|
|
74
221
|
};
|