UNPKG

llamaindex

Version:

<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>

21 lines (20 loc) 940 B
import { type MetadataFilters, type RetrievalParams } from "@llamaindex/cloud/api"; import type { QueryBundle } from "@llamaindex/core/query-engine"; import { BaseRetriever } from "@llamaindex/core/retriever"; import type { NodeWithScore } from "@llamaindex/core/schema"; import type { ClientParams, CloudConstructorParams } from "./type.js"; export type CloudRetrieveParams = Omit<RetrievalParams, "query" | "search_filters" | "dense_similarity_top_k"> & { similarityTopK?: number; filters?: MetadataFilters; }; export declare class LlamaCloudRetriever extends BaseRetriever { clientParams: ClientParams; retrieveParams: CloudRetrieveParams; organizationId?: string; projectName: string; pipelineName: string; private resultNodesToNodeWithScore; private convertFilter; constructor(params: CloudConstructorParams & CloudRetrieveParams); _retrieve(query: QueryBundle): Promise<NodeWithScore[]>; }