mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 16:13:25 +00:00
docs: Update qdrant.ipynb "BM25".lower() (#25616)
Otherwise I've got KeyError from `fastembeds`
This commit is contained in:
parent
b002702af6
commit
d457d7d121
@ -532,7 +532,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"from langchain_qdrant import FastEmbedSparse, RetrievalMode\n",
|
"from langchain_qdrant import FastEmbedSparse, RetrievalMode\n",
|
||||||
"\n",
|
"\n",
|
||||||
"sparse_embeddings = FastEmbedSparse(model_name=\"Qdrant/BM25\")\n",
|
"sparse_embeddings = FastEmbedSparse(model_name=\"Qdrant/bm25\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"qdrant = QdrantVectorStore.from_documents(\n",
|
"qdrant = QdrantVectorStore.from_documents(\n",
|
||||||
" docs,\n",
|
" docs,\n",
|
||||||
@ -571,7 +571,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"from langchain_qdrant import FastEmbedSparse, RetrievalMode\n",
|
"from langchain_qdrant import FastEmbedSparse, RetrievalMode\n",
|
||||||
"\n",
|
"\n",
|
||||||
"sparse_embeddings = FastEmbedSparse(model_name=\"Qdrant/BM25\")\n",
|
"sparse_embeddings = FastEmbedSparse(model_name=\"Qdrant/bm25\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"qdrant = QdrantVectorStore.from_documents(\n",
|
"qdrant = QdrantVectorStore.from_documents(\n",
|
||||||
" docs,\n",
|
" docs,\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user