langchain.js
    Preparing search index...
    const retriever = new ChaindeskRetriever({
    datastoreId: "DATASTORE_ID",
    apiKey: "CHAINDESK_API_KEY",
    topK: 8,
    });
    const docs = await retriever.getRelevantDocuments("hello");

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    apiKey?: string
    caller: AsyncCaller
    datastoreId: string
    filter?: Record<string, unknown>
    lc_namespace: string[] = ...
    topK?: number

    Methods

    • Parameters

      • query: string

      Returns Promise<Document[]>

    • Returns string