Instructions to use munhim/multimodal-rag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use munhim/multimodal-rag with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("munhim/multimodal-rag") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
File size: 300 Bytes
7cd0d9a | 1 2 3 4 5 6 7 8 9 10 | {
"text_embedding_dim": 384,
"image_embedding_dim": 512,
"text_model": "sentence-transformers/all-MiniLM-L6-v2",
"image_model": "openai/clip-vit-base-patch32",
"llm_model": "mistralai/Mistral-7B-Instruct-v0.2",
"num_text_vectors": 161,
"num_image_vectors": 285,
"total_vectors": 446
} |