Run Search
PipelineRetrieveResponse pipelines().retrieve(PipelineRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v1/pipelines/{pipeline_id}/retrieve
Run a retrieval query against a managed pipeline.
Searches the pipeline’s vector store using the provided query and retrieval parameters. Supports dense, sparse, and hybrid search modes with configurable top-k and reranking.
Run Search
package com.llamacloud_prod.api.example;
import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.pipelines.PipelineRetrieveParams;
import com.llamacloud_prod.api.models.pipelines.PipelineRetrieveResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();
PipelineRetrieveParams params = PipelineRetrieveParams.builder()
.pipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.query("x")
.build();
PipelineRetrieveResponse pipeline = client.pipelines().retrieve(params);
}
}{
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"retrieval_nodes": [
{
"node": {
"class_name": "class_name",
"embedding": [
0
],
"end_char_idx": 0,
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"extra_info": {
"foo": "bar"
},
"id_": "id_",
"metadata_seperator": "metadata_seperator",
"metadata_template": "metadata_template",
"mimetype": "mimetype",
"relationships": {
"foo": {
"node_id": "node_id",
"class_name": "class_name",
"hash": "hash",
"metadata": {
"foo": "bar"
},
"node_type": "1"
}
},
"start_char_idx": 0,
"text": "text",
"text_template": "text_template"
},
"class_name": "class_name",
"score": 0
}
],
"class_name": "class_name",
"image_nodes": [
{
"node": {
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"image_size": 0,
"page_index": 0,
"metadata": {
"foo": "bar"
}
},
"score": 0,
"class_name": "class_name"
}
],
"inferred_search_filters": {
"filters": [
{
"key": "key",
"value": 0,
"operator": "=="
}
],
"condition": "and"
},
"metadata": {
"foo": "string"
},
"page_figure_nodes": [
{
"node": {
"confidence": 0,
"figure_name": "figure_name",
"figure_size": 0,
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"page_index": 0,
"is_likely_noise": true,
"metadata": {
"foo": "bar"
}
},
"score": 0,
"class_name": "class_name"
}
],
"retrieval_latency": {
"foo": 0
}
}Returns Examples
{
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"retrieval_nodes": [
{
"node": {
"class_name": "class_name",
"embedding": [
0
],
"end_char_idx": 0,
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"extra_info": {
"foo": "bar"
},
"id_": "id_",
"metadata_seperator": "metadata_seperator",
"metadata_template": "metadata_template",
"mimetype": "mimetype",
"relationships": {
"foo": {
"node_id": "node_id",
"class_name": "class_name",
"hash": "hash",
"metadata": {
"foo": "bar"
},
"node_type": "1"
}
},
"start_char_idx": 0,
"text": "text",
"text_template": "text_template"
},
"class_name": "class_name",
"score": 0
}
],
"class_name": "class_name",
"image_nodes": [
{
"node": {
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"image_size": 0,
"page_index": 0,
"metadata": {
"foo": "bar"
}
},
"score": 0,
"class_name": "class_name"
}
],
"inferred_search_filters": {
"filters": [
{
"key": "key",
"value": 0,
"operator": "=="
}
],
"condition": "and"
},
"metadata": {
"foo": "string"
},
"page_figure_nodes": [
{
"node": {
"confidence": 0,
"figure_name": "figure_name",
"figure_size": 0,
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"page_index": 0,
"is_likely_noise": true,
"metadata": {
"foo": "bar"
}
},
"score": 0,
"class_name": "class_name"
}
],
"retrieval_latency": {
"foo": 0
}
}