mirror of
https://github.com/kennethreitz/langchain.git
synced 2026-06-05 23:00:18 +00:00
99afc1b4f8
- **Description:** In the max_marginal_relevance_search function of the ElasticsearchStore vector store, the name of the field corresponding to the vector embedding of the document is hard coded in the delete statement that drops the field from the document metadata. This results in an exception if the vector embedding field is customized. This PR changes the hard-coded "vector" into the vector_query_field variable. - **Issue:** None - **Dependencies:** None - **Tag maintainer:** @hwchase17 Co-authored-by: Shilong Dai <sdai@viperfish.net>