mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
0bec1f6877
**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 |
||
---|---|---|
.. | ||
_templates | ||
additional_resources | ||
changelog | ||
contributing | ||
expression_language | ||
get_started | ||
guides | ||
integrations | ||
langsmith | ||
modules | ||
use_cases | ||
.gitignore | ||
packages.mdx | ||
people.mdx | ||
security.md |