Langchain.
document contents and queries. k: Optional[int] = 20 The number of relevant documents to return. Can be set to None, in which case similarity_threshold must be specified. Defaults to 20. similarity_fn: Callable = Similarity function for comparing documents. Function expected to take as input two