Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 181 additions & 15 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions specification/_types/Retriever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { FieldCollapse } from '@global/search/_types/FieldCollapse'
import { Rescore } from '@global/search/_types/rescoring'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { Id, IndexName } from './common'
import { ChunkRescorerChunkingSettings } from './mapping/ChunkingSettings'
import { QueryContainer } from './query_dsl/abstractions'

/**
Expand Down Expand Up @@ -150,10 +151,15 @@ export class TextSimilarityReranker extends RetrieverBase {
rank_window_size?: integer
/** Unique identifier of the inference endpoint created using the inference API. */
inference_id?: string
/** The text snippet used as the basis for similarity comparison */
/** The text snippet used as the basis for similarity comparison. */
inference_text: string
/** The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text */
/** The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text. */
field: string
/** Whether to rescore on only the best matching chunks.
* @availability stack since=9.2.0 stability=beta
* @availability serverless stability=beta
*/
chunk_rescorer?: ChunkRescorer
}

export class RuleRetriever extends RetrieverBase {
Expand All @@ -166,3 +172,10 @@ export class RuleRetriever extends RetrieverBase {
/** This value determines the size of the individual result set. */
rank_window_size?: integer
}

export class ChunkRescorer {
/** The number of chunks per document to evaluate for reranking. */
size?: integer
/** Chunking settings to apply */
chunking_settings?: ChunkRescorerChunkingSettings
}
Loading