cf-service-sdk 0.1.43 → 0.1.44
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.
|
@@ -5246,6 +5246,8 @@ export type SegmentObject = {
|
|
|
5246
5246
|
export type SemanticSearchConfigInput = {
|
|
5247
5247
|
/** BM25 text relevance weight (0.0-1.0, default 0.4) */
|
|
5248
5248
|
bm25Weight?: InputMaybe<Scalars['Float']['input']>;
|
|
5249
|
+
/** When true, run Claude over the raw query to extract structured filters (state, industries, metals, etc.) and rewrite the text with filter terms stripped. When false, skip extraction even if the server default has it on. When omitted, falls through to the USE_CF_SEARCH_FILTER_EXTRACTION env default. */
|
|
5250
|
+
extractFilters?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5249
5251
|
/** k-NN semantic similarity weight (0.0-1.0, default 0.6) */
|
|
5250
5252
|
knnWeight?: InputMaybe<Scalars['Float']['input']>;
|
|
5251
5253
|
/**
|
|
@@ -5255,6 +5257,10 @@ export type SemanticSearchConfigInput = {
|
|
|
5255
5257
|
provider?: InputMaybe<Scalars['String']['input']>;
|
|
5256
5258
|
/** Natural language search query. */
|
|
5257
5259
|
query: Scalars['String']['input'];
|
|
5260
|
+
/** When true, re-rank top semantic hits via Claude (adds ~1-2s latency). When false, skip re-ranking even if the server default has it on. When omitted, falls through to the USE_CF_SEARCH_RERANK env default. */
|
|
5261
|
+
rerank?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5262
|
+
/** When true, expand the raw query via Claude before embedding to improve recall on short/vague queries. When false, skip rewriting even if the server default has it on. When omitted, falls through to the USE_CF_SEARCH_QUERY_REWRITE env default. */
|
|
5263
|
+
rewriteQuery?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5258
5264
|
};
|
|
5259
5265
|
export type SendEmailToContact = {
|
|
5260
5266
|
__typename?: 'SendEmailToContact';
|