You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
With a database in Milvus created with sparse and vector embeddings, as Description:
from milvus_model.hybrid import BGEM3EmbeddingFunction
embedding_function = BGEM3EmbeddingFunction(
model_name = "BAAI/bge-m3",
batch_size = 32,
normalize_embeddings = True,
use_fp16 = False,
return_dense = True,
return_sparse = True,
return_colbert_vecs = False,
docs = [
"Artificial intelligence was founded as an academic discipline in 1956.",
"Alan Turing was the first person to conduct substantial research in AI.",
"Born in Maida Vale, London, Turing was raised in southern England.",
]
docs_embeddings = embedding_function.encode_documents(docs)
Hi team,
I need some help trying to use embed model BGE-M3 for Hybrid Search in RAG with MilvusCollectionHybridSearchRetriever class for the Retrieval. I tried to create subclasses but not succeeded. I am using Milvus 2.4.0 as my vectorstore.
BGE-M3 actually creates both sparse and dense vectors:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
With a database in Milvus created with sparse and vector embeddings, as Description:
<...>
Description
Hi team,
I need some help trying to use embed model BGE-M3 for Hybrid Search in RAG with MilvusCollectionHybridSearchRetriever class for the Retrieval. I tried to create subclasses but not succeeded. I am using Milvus 2.4.0 as my vectorstore.
BGE-M3 actually creates both sparse and dense vectors:
Now when we try to create the retriever, I could not find BGE-M3:
System Info
"pip freeze | grep langchain"
Platform (Fedora/Linux)
uname -r 6.1.102-111.182.amzn2023.x86_64
Beta Was this translation helpful? Give feedback.
All reactions