@cpod/sdk - v0.2.7
    Preparing search index...

    Interface SearchResult

    Individual search result

    interface SearchResult {
        id: string;
        chunkId: string;
        fileHash: string;
        chunkIndex: number;
        source: string;
        sourceName?: string | null;
        sourceFilename?: string | null;
        content?: string | null;
        summary?: string | null;
        entities?: string[] | null;
        atomicRelations?: string[] | null;
        questions?: string[] | null;
        metadata?: Record<string, unknown> | null;
        relevanceScore?: number | null;
        matchCount: number;
        score?: number | null;
        createdAt?: string | null;
        updatedAt?: string | null;
    }
    Index

    Properties

    id: string

    Unique result ID

    chunkId: string

    Chunk ID within the document

    fileHash: string

    Hash of the source file

    chunkIndex: number

    Index of this chunk in the document

    source: string

    Source ID/identifier

    sourceName?: string | null

    Source display name (project name for project sources)

    sourceFilename?: string | null

    Original filename

    content?: string | null

    Content of the chunk (if includeContent=true)

    summary?: string | null

    AI-generated summary

    entities?: string[] | null

    Extracted entities (if includeEntities=true)

    atomicRelations?: string[] | null

    Extracted atomic relations

    questions?: string[] | null

    Generated questions

    metadata?: Record<string, unknown> | null

    Additional metadata

    relevanceScore?: number | null

    Relevance score (0-1)

    matchCount: number

    Number of matches in this result

    score?: number | null

    Search score

    createdAt?: string | null

    Creation timestamp

    updatedAt?: string | null

    Last update timestamp