gkamradt / langchain-tutorials

Overview and tutorial of the LangChain Library
6.69k stars 1.94k forks source link

Langchain Cookbook Part 1: The VectorStore object not used in the VectorStores section #32

Open SwamiKannan opened 1 year ago

SwamiKannan commented 1 year ago

Thanks for the cookbook. Pretty insightful.

In the section for VectorStores (under Indexes), the embeddings of the text are created using embeddings.embed_documents() but the vectorstore (FAISS) class is imported but not used as: db = FAISS.from_documents(texts, embeddings).

Maybe the section should include creation of the vectorstore and its usage