Nessuna modifica apportata
This commit is contained in:
@@ -223,7 +223,7 @@ public class AdvancedQueryRagSolver extends StepSolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String prompt = "I've retrieved the following chunks of document using similarity search.";
|
String prompt = "I've retrieved the following chunks of document using similarity search.";
|
||||||
prompt +="Can you provide me a query that can be used with another vector similarity search to retrieve other relevant documents to answer the query?";
|
prompt +="Can you provide me a query that can be used for a vector similarity search to retrieve other missing documents to answer the query?";
|
||||||
prompt += "\n\n" + resultString;
|
prompt += "\n\n" + resultString;
|
||||||
prompt += "\n\n The query is: " + this.query;
|
prompt += "\n\n The query is: " + this.query;
|
||||||
prompt += "\n\n The output must be a single query and nothing else.";
|
prompt += "\n\n The output must be a single query and nothing else.";
|
||||||
@@ -232,7 +232,7 @@ public class AdvancedQueryRagSolver extends StepSolver {
|
|||||||
|
|
||||||
String otherDocQuery = resp.getContent();
|
String otherDocQuery = resp.getContent();
|
||||||
logger.info("Other document query: " + otherDocQuery);
|
logger.info("Other document query: " + otherDocQuery);
|
||||||
|
|
||||||
Builder request_builder = SearchRequest.builder()
|
Builder request_builder = SearchRequest.builder()
|
||||||
.query(otherDocQuery)
|
.query(otherDocQuery)
|
||||||
.topK(otherTopK)
|
.topK(otherTopK)
|
||||||
|
|||||||
Reference in New Issue
Block a user