Nessuna modifica apportata

This commit is contained in:
andrea.terzani
2025-03-28 13:02:43 +01:00
parent f0b3f1f34a
commit 8f14260a9b

View File

@@ -223,7 +223,7 @@ public class AdvancedQueryRagSolver extends StepSolver {
}
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 The query is: " + this.query;
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();
logger.info("Other document query: " + otherDocQuery);
Builder request_builder = SearchRequest.builder()
.query(otherDocQuery)
.topK(otherTopK)