Issue: OpenSearch painless scripting scoring function could be improved #8089
Labels
🤖:improvement
Medium size change to existing code to handle new use-cases
Ɑ: vector store
Related to vector store module
Issue you'd like to raise.
Painless scripting shows an example scoring function here
https://opensearch.org/docs/latest/search-plugins/knn/painless-functions/#get-started-with-k-nns-painless-scripting-functions
You can see that they reference the query vector by
params.query_value
. This is better, in my opinion than simply pasting it in as we do herehttps://github.com/hwchase17/langchain/blob/17c06ee45634cafb9aa8fcd06848a4213b2d58e2/libs/langchain/langchain/vectorstores/opensearch_vector_search.py#L246
Suggestion:
No response
The text was updated successfully, but these errors were encountered: