@airweave/sdk 0.1.49 → 0.1.51
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/collections/client/Client.d.ts +0 -18
- package/dist/cjs/api/resources/collections/client/Client.js +0 -18
- package/dist/cjs/api/resources/collections/client/requests/SearchRequest.d.ts +1 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/collections/client/Client.d.mts +0 -18
- package/dist/esm/api/resources/collections/client/Client.mjs +0 -18
- package/dist/esm/api/resources/collections/client/requests/SearchRequest.d.mts +1 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +4 -24
package/dist/cjs/Client.js
CHANGED
|
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
|
|
|
48
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
51
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
52
|
-
"User-Agent": "@airweave/sdk/v0.1.
|
|
51
|
+
"X-Fern-SDK-Version": "v0.1.51",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.1.51",
|
|
53
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
54
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
55
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -144,24 +144,6 @@ export declare class Collections {
|
|
|
144
144
|
* - Pagination with offset and limit
|
|
145
145
|
* - Score threshold filtering
|
|
146
146
|
* - Query expansion strategies
|
|
147
|
-
* - Result summarization
|
|
148
|
-
* - Control over included metadata and vectors
|
|
149
|
-
*
|
|
150
|
-
* Example request body:
|
|
151
|
-
* ```json
|
|
152
|
-
* {
|
|
153
|
-
* "query": "customer payment issues",
|
|
154
|
-
* "filter": {
|
|
155
|
-
* "must": [
|
|
156
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
157
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
158
|
-
* ]
|
|
159
|
-
* },
|
|
160
|
-
* "limit": 50,
|
|
161
|
-
* "score_threshold": 0.7,
|
|
162
|
-
* "response_type": "completion"
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
147
|
*
|
|
166
148
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
167
149
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -476,24 +476,6 @@ class Collections {
|
|
|
476
476
|
* - Pagination with offset and limit
|
|
477
477
|
* - Score threshold filtering
|
|
478
478
|
* - Query expansion strategies
|
|
479
|
-
* - Result summarization
|
|
480
|
-
* - Control over included metadata and vectors
|
|
481
|
-
*
|
|
482
|
-
* Example request body:
|
|
483
|
-
* ```json
|
|
484
|
-
* {
|
|
485
|
-
* "query": "customer payment issues",
|
|
486
|
-
* "filter": {
|
|
487
|
-
* "must": [
|
|
488
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
489
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
490
|
-
* ]
|
|
491
|
-
* },
|
|
492
|
-
* "limit": 50,
|
|
493
|
-
* "score_threshold": 0.7,
|
|
494
|
-
* "response_type": "completion"
|
|
495
|
-
* }
|
|
496
|
-
* ```
|
|
497
479
|
*
|
|
498
480
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
499
481
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -31,10 +31,6 @@ export interface SearchRequest {
|
|
|
31
31
|
summarize?: boolean;
|
|
32
32
|
/** Type of response (raw or completion) */
|
|
33
33
|
response_type?: AirweaveSDK.ResponseType;
|
|
34
|
-
/** Query expansion strategy */
|
|
34
|
+
/** Query expansion strategy. Enhances recall by expanding the query with synonyms, related terms, and other variations, but increases latency. */
|
|
35
35
|
expansion_strategy?: AirweaveSDK.QueryExpansionStrategy;
|
|
36
|
-
/** Whether to include metadata in results */
|
|
37
|
-
include_metadata?: boolean;
|
|
38
|
-
/** Whether to include vectors in response */
|
|
39
|
-
with_vectors?: boolean;
|
|
40
36
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.1.
|
|
1
|
+
export declare const SDK_VERSION = "v0.1.51";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
15
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.1.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.1.51",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.1.51",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -144,24 +144,6 @@ export declare class Collections {
|
|
|
144
144
|
* - Pagination with offset and limit
|
|
145
145
|
* - Score threshold filtering
|
|
146
146
|
* - Query expansion strategies
|
|
147
|
-
* - Result summarization
|
|
148
|
-
* - Control over included metadata and vectors
|
|
149
|
-
*
|
|
150
|
-
* Example request body:
|
|
151
|
-
* ```json
|
|
152
|
-
* {
|
|
153
|
-
* "query": "customer payment issues",
|
|
154
|
-
* "filter": {
|
|
155
|
-
* "must": [
|
|
156
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
157
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
158
|
-
* ]
|
|
159
|
-
* },
|
|
160
|
-
* "limit": 50,
|
|
161
|
-
* "score_threshold": 0.7,
|
|
162
|
-
* "response_type": "completion"
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
147
|
*
|
|
166
148
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
167
149
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -440,24 +440,6 @@ export class Collections {
|
|
|
440
440
|
* - Pagination with offset and limit
|
|
441
441
|
* - Score threshold filtering
|
|
442
442
|
* - Query expansion strategies
|
|
443
|
-
* - Result summarization
|
|
444
|
-
* - Control over included metadata and vectors
|
|
445
|
-
*
|
|
446
|
-
* Example request body:
|
|
447
|
-
* ```json
|
|
448
|
-
* {
|
|
449
|
-
* "query": "customer payment issues",
|
|
450
|
-
* "filter": {
|
|
451
|
-
* "must": [
|
|
452
|
-
* {"key": "source", "match": {"value": "stripe"}},
|
|
453
|
-
* {"key": "created_at", "range": {"gte": "2024-01-01T00:00:00Z"}}
|
|
454
|
-
* ]
|
|
455
|
-
* },
|
|
456
|
-
* "limit": 50,
|
|
457
|
-
* "score_threshold": 0.7,
|
|
458
|
-
* "response_type": "completion"
|
|
459
|
-
* }
|
|
460
|
-
* ```
|
|
461
443
|
*
|
|
462
444
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
463
445
|
* @param {AirweaveSDK.SearchRequest} request
|
|
@@ -31,10 +31,6 @@ export interface SearchRequest {
|
|
|
31
31
|
summarize?: boolean;
|
|
32
32
|
/** Type of response (raw or completion) */
|
|
33
33
|
response_type?: AirweaveSDK.ResponseType;
|
|
34
|
-
/** Query expansion strategy */
|
|
34
|
+
/** Query expansion strategy. Enhances recall by expanding the query with synonyms, related terms, and other variations, but increases latency. */
|
|
35
35
|
expansion_strategy?: AirweaveSDK.QueryExpansionStrategy;
|
|
36
|
-
/** Whether to include metadata in results */
|
|
37
|
-
include_metadata?: boolean;
|
|
38
|
-
/** Whether to include vectors in response */
|
|
39
|
-
with_vectors?: boolean;
|
|
40
36
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.1.
|
|
1
|
+
export declare const SDK_VERSION = "v0.1.51";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.1.
|
|
1
|
+
export const SDK_VERSION = "v0.1.51";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -572,30 +572,10 @@ This endpoint supports:
|
|
|
572
572
|
- Pagination with offset and limit
|
|
573
573
|
- Score threshold filtering
|
|
574
574
|
- Query expansion strategies
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
```json
|
|
581
|
-
{
|
|
582
|
-
"query": "customer payment issues",
|
|
583
|
-
"filter": {
|
|
584
|
-
"must": [
|
|
585
|
-
{ "key": "source", "match": { "value": "stripe" } },
|
|
586
|
-
{ "key": "created_at", "range": { "gte": "2024-01-01T00:00:00Z" } }
|
|
587
|
-
]
|
|
588
|
-
},
|
|
589
|
-
"limit": 50,
|
|
590
|
-
"score_threshold": 0.7,
|
|
591
|
-
"response_type": "completion"
|
|
592
|
-
}
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
</dd>
|
|
596
|
-
</dl>
|
|
597
|
-
</dd>
|
|
598
|
-
</dl>
|
|
575
|
+
</dd>
|
|
576
|
+
</dl>
|
|
577
|
+
</dd>
|
|
578
|
+
</dl>
|
|
599
579
|
|
|
600
580
|
#### 🔌 Usage
|
|
601
581
|
|