langchain/libs
Tymofii 0bec1f6877
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-03-11 22:33:03 -07:00
..
cli infra: make .gitignore consistent with standard python gitignore (#16828) 2024-02-12 19:43:41 -08:00
community commnity[patch]: refactor code for faiss vectorstore, update faiss vectorstore documentation (#18092) 2024-03-11 22:33:03 -07:00
core core[minor]: add streaming support to OAI tool parsers (#18940) 2024-03-11 21:53:56 -07:00
experimental experimental[patch]: Fix LLM graph transformer default prompt (#18856) 2024-03-11 20:11:52 -07:00
langchain langchain[patch]: update llm_router.py (#18865) 2024-03-11 22:30:07 -07:00
partners core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
text-splitters docs: text splitters readme (#18359) 2024-03-01 03:00:42 +00:00