Class: LlamaCloudRetriever
Retrievers retrieve the nodes that most closely match our query in similarity.
Implements
Constructors
new LlamaCloudRetriever()
new LlamaCloudRetriever(
params
):LlamaCloudRetriever
Parameters
• params: object
& ClientParams
& Omit
<RetrievalParams
, "query"
| "className"
| "searchFilters"
| "pipelineId"
> & object
Returns
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:34
Properties
client?
optional
client:PlatformApiClient
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:16
clientParams
clientParams:
ClientParams
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:17
pipelineName
pipelineName:
string
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:20
projectName
projectName:
string
=DEFAULT_PROJECT_NAME
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:19
retrieveParams
retrieveParams:
CloudRetrieveParams
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:18
Methods
getClient()
private
getClient():Promise
<PlatformApiClient
>
Returns
Promise
<PlatformApiClient
>
Source
packages/core/src/cloud/LlamaCloudRetriever.ts:46
resultNodesToNodeWithScore()
private
resultNodesToNodeWithScore(nodes
):NodeWithScore
<Metadata
>[]
Parameters
• nodes: TextNodeWithScore
[]