LangChain 1 · Retrieval (RAG)

Search by meaning

Return the four chunks closest to the query.

results = vector_store.similarity_search("How do refunds work?", k=4)

Official LangChain 1 documentation

More retrieval (rag) commands

All retrieval (rag) commands · LangChain 1 cheatsheet

Was this page helpful?