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
| { | |
| "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 | |
| } |