Replies: 1 comment
-
|
The official documentation of Spring AI states that VectorStoreDocumentRetriever allows for direct retrieval from the vector repository. You can create different vector retrievers and merge the results with ConcatenationDocumentJoiner https://docs.spring.io/spring-ai/reference/api/retrieval-augmented-generation.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I need some guidance.
I’m using a
vectorStoreand want to build a prompt that includes two distinct contexts, both retrieved from the vector store, for example:I’m currently using
QuestionAnswerAdvisorylike this:What’s the recommended Spring AI pattern to run two separate vectorStore queries (with different filters/topK) and inject both result sets into a single prompt?
<context1>and<context2>) viaprompt().param(...)?Any code snippet or best practice for merging multiple retrievals into one prompt would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions