Skip to main content
Open on GitHub

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.

嵌入模型

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

查看一个 使用示例

from langchain_community.embeddings.laser import LaserEmbeddings
API 参考:LaserEmbeddings

文档加载器

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.

查看一个 使用示例

from langchain_community.document_loaders import FacebookChatLoader
API 参考:FacebookChatLoader

向量存储

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 文档

我们需要安装 faiss 个 Python 包。

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

OR

pip install faiss-cpu # For CPU Installation

查看一个 使用示例

from langchain_community.vectorstores import FAISS
API 参考:FAISS

聊天加载器

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.

查看一个 使用示例

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

Facebook WhatsApp

查看一个 使用示例

from langchain_community.chat_loaders.whatsapp import WhatsAppChatLoader
API 参考:WhatsAppChatLoader