sentence-transformers
dependency is large. This step could take several minutes to complete.
CSVLoader
document loader. In this case, lazy_load
returns an iterator to ingest our quotes more efficiently. In this example, we only load 5,000 quotes.
add_texts
to add additional quotes.
as_retriever
, but this could be done just as easily by calling docstore.max_marginal_relevance_search
directly. The lambda_mult
search argument determines the diversity of our query response. 0 corresponds to maximum diversity and 1 to minimum diversity.