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 <[email protected]>
S
Shilong Dai committed
99afc1b4f84314fa699da83a34db39e62bc625a8
Parent: 0d44746
Committed by GitHub <[email protected]>
on 10/23/2023, 7:08:55 PM