docs: Update body_func to hybrid_query in ElasticsearchRetriever (#20498)

This commit is contained in:
naaive
2024-04-19 04:19:02 +08:00
committed by GitHub
parent 27370b679e
commit 6f0d4f3f09

View File

@@ -366,7 +366,7 @@
"\n",
"hybrid_retriever = ElasticsearchRetriever.from_es_params(\n",
" index_name=index_name,\n",
" body_func=bm25_query,\n",
" body_func=hybrid_query,\n",
" content_field=text_field,\n",
" url=es_url,\n",
")\n",