Skip to main content

Facebook - Meta

Meta Platforms, Inc., doing business as Meta, formerly named Facebook, Inc., and TheFacebook, Inc., is an American multinational technology conglomerate. The company owns and operates Facebook, Instagram, Threads, and WhatsApp, among other products and services.

Embedding models​

LASER​

LASER is a Python library developed by the Meta AI Research team and used for creating multilingual sentence embeddings for over 147 languages as of 2/25/2024

pip install laser_encoders

See a usage example.

from langchain_community.embeddings.laser import LaserEmbeddings

API Reference:

Document loaders​

Facebook Messenger​

Messenger is an instant messaging app and platform developed by Meta Platforms. Originally developed as Facebook Chat in 2008, the company revamped its messaging service in 2010.

See a usage example.

from langchain_community.document_loaders import FacebookChatLoader

API Reference:

Vector stores​

Facebook Faiss​

Facebook AI Similarity Search (Faiss) is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any size, up to ones that possibly do not fit in RAM. It also contains supporting code for evaluation and parameter tuning.

Faiss documentation.

We need to install faiss python package.

pip install faiss-gpu # For CUDA 7.5+ supported GPU's.

OR

pip install faiss-cpu # For CPU Installation

See a usage example.

from langchain_community.vectorstores import FAISS

API Reference:

Chat loaders​

Facebook Messenger​

Messenger is an instant messaging app and platform developed by Meta Platforms. Originally developed as Facebook Chat in 2008, the company revamped its messaging service in 2010.

See a usage example.

from langchain_community.chat_loaders.facebook_messenger import (
FolderFacebookMessengerChatLoader,
SingleFileFacebookMessengerChatLoader,
)

Facebook WhatsApp​

See a usage example.

from langchain_community.chat_loaders.whatsapp import WhatsAppChatLoader

API Reference:


Was this page helpful?


You can leave detailed feedback on GitHub.