mirror of https://github.com/hwchase17/langchain
Fixed hardcoded "vector" and replaced with vector_query_field variable (#12126)
- **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>pull/11674/head
parent
0d44746430
commit
99afc1b4f8
Loading…
Reference in New Issue