Passage Retrieval (CPR) implementation overview
Passage Retrieval (CPR) implementation overview
This article outlines the steps required to implement Passage Retrieval (CPR).
|
|
Passage Retrieval (CPR) is a paid product extension. Contact Coveo Sales or your Account Manager to add CPR to your organization license. |
Step 1: Choose the content to use
The content that you choose for CPR will be used as the raw data from which passages are retrieved.
|
|
Note
A Passage Retrieval (CPR) implementation must include both a CPR model and a Semantic Encoder (SE) model. Both the CPR and SE models must be configured to use the same content. |
Step 2: Create a CPR model
Step 3: Associate the CPR model with a query pipeline
When a CPR model is associated with your LLM-powered application’s query pipeline, it’s used to retrieve relevant passages for submitted queries.
|
|
Note
|
|
|
The CPR model must be associated with the same query pipeline as the Semantic Encoder (SE) model. |
Step 4: Create a Semantic Encoder (SE) model
An SE model adds vector-based search capabilities during first-stage content retrieval for CPR. An SE model ensures that CPR always uses the most relevant content from which to retrieve passages.
|
|
Note
A Passage Retrieval (CPR) implementation must include both a CPR model and a Semantic Encoder (SE) model. Both the CPR and SE models must be configured to use the same content. |
Step 5: Associate the SE model with a query pipeline
An SE model adds vector-based search capabilities to a query pipeline.
Step 6: Integrate the PR API
Use the Passage Retrieval API to retrieve the most relevant passages that were identified by the CPR model to enhance the generated output of your LLM application.
|
|
Note
|
|
|
Coveo doesn’t manage the creation of the prompt that’s sent to the LLM for output generation, or the component that displays the output. |