Type Alias Chunk

type Chunk = {
    chunkMeta: KbChunkMeta;
    searchSource?: string;
    semanticScore?: number;
    text: string;
    tfidfScore?: number;
}
Index

Properties

chunkMeta: KbChunkMeta

Metadata about the chunk

searchSource?: string

search method for the chunk, e.g. semantic search, keyword search or semantic and keyword search

semanticScore?: number

Similarity score from embedding match

text: string

Text content of the chunk

tfidfScore?: number

Score from keyword search