Files
langchain/docs
Tymofii 8ca72df26c commnity[patch]: refactor code for faiss vectorstore, update faiss vectorstore documentation (#18092)
**Description:** Refactor code of FAISS vectorcstore and update the
related documentation.
Details: 
 - replace `.format()` with f-strings for strings formatting;
- refactor definition of a filtering function to make code more readable
and more flexible;
- slightly improve efficiency of
`max_marginal_relevance_search_with_score_by_vector` method by removing
unnecessary looping over the same elements;
- slightly improve efficiency of `delete` method by using set data
structure for checking if the element was already deleted;

**Issue:** fix small inconsistency in the documentation (the old example
was incorrect and unappliable to faiss vectorstore)

**Dependencies:** basic langchain-community dependencies and `faiss`
(for CPU or for GPU)

**Twitter handle:** antonenkodev
2024-04-25 17:39:10 -07:00
..
2024-04-25 17:39:07 -07:00
2024-04-25 17:39:10 -07:00
2023-12-17 12:55:49 -08:00
2024-02-08 14:52:26 -08:00
2024-04-25 17:39:10 -07:00

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide