Remove the retriever package. This design comes from langchain, the desire is to expose a query only capability. Instead of doing that via composition, we can add a List<Document> retrieve(String query); method to the vector store interface.
The interface should also support queries that have additional options other than the text, k and threshold can be exposed as additional overloaded methods. A small QueryOptions builder class may also be useful to encapsulate that and leave room for future expansion. A review over vector database providers in this regard should be done.
Comment From: markpollack
Will revisit adding an interface when the need arises.
retriever package removed in b35c710