Langchain.
persist_directory="/content/stores/insurance") vectorstore.persist() Setup the retriever retriever = vectorstore.as_retriever(search_kwargs={"k":2}) Get relevant contexts matching the query docs = retriever.get_relevant_documents(query="What is Group life insurance?") pretty_print_docs(docs) #####