Example

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

Hierarchy

Constructors

Properties

caller: AsyncCaller
datastoreId: string
apiKey?: string
filter?: Record<string, unknown>
topK?: number

Methods

Generated using TypeDoc