When I call retriever from the chain, the maximum number of documents retrieved by TypeSense is 10, as stated in the documentation. I've tried to inherit TypeSense class by implementing my own CustomTypesense with custom similarity_search_with_score and similarity_search functions with default `k = 100´, but it didn't help.
I have tried to play with various arguments, such as search_kwargs arguments, when I call the as_retriever function from the VectorStore class (inherited in the Typesense class), which also didn't help.
Upgrading the longchain hasn't changed the situation.
I assume this can be considered a bug since no arguments work to specify the number of retrieved documents from Typesense.
System Info
System Information
OS: Linux
OS Version: #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 2 16:16:55 UTC 2
Python Version: 3.11.10 | packaged by conda-forge | (main, Sep 30 2024, 18:08:57) [GCC 13.3.0]
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
When I call retriever from the chain, the maximum number of documents retrieved by TypeSense is 10, as stated in the documentation. I've tried to inherit
TypeSense
class by implementing my ownCustomTypesense
with customsimilarity_search_with_score
andsimilarity_search
functions with default `k = 100´, but it didn't help.I have tried to play with various arguments, such as
search_kwargs
arguments, when I call theas_retriever
function from theVectorStore
class (inherited in theTypesense
class), which also didn't help.Upgrading the
longchain
hasn't changed the situation.I assume this can be considered a bug since no arguments work to specify the number of retrieved documents from
Typesense
.System Info
System Information
Package Information
Other Dependencies