langchain
9a8fe58e - community[minor]: Improve Cassandra VectorStore as_retriever (#22465)

Commit
1 year ago
community[minor]: Improve Cassandra VectorStore as_retriever (#22465) The Vectorstore's API `as_retriever` doesn't expose explicitly the parameters `search_type` and `search_kwargs` and so these are not well documented. This PR improves `as_retriever` for the Cassandra VectorStore by making these parameters explicit. NB: An alternative would have been to modify `as_retriever` in `Vectorstore`. But there's probably a good reason these were not exposed in the first place ? Is it because implementations may decide to not support them and have fixed values when creating the VectorStoreRetriever ?
Author
Parents
Loading