mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
docs: providers
update 4 (#18540)
Created the `facebook` page from `facebook_faiss` and `facebook_chat` pages. Added another Facebook integrations into this page. Updated `discord` page.
This commit is contained in:
parent
9c0f84ae95
commit
07c518ad3e
@ -6,7 +6,6 @@
|
||||
|
||||
## Installation and Setup
|
||||
|
||||
|
||||
```bash
|
||||
pip install pandas
|
||||
```
|
||||
@ -25,6 +24,15 @@ with Discord. That email will have a download button using which you would be ab
|
||||
|
||||
See a [usage example](/docs/integrations/document_loaders/discord).
|
||||
|
||||
**NOTE:** The `DiscordChatLoader` is not the `ChatLoader` but a `DocumentLoader`.
|
||||
It is used to load the data from the `Discord` data dump.
|
||||
For the `ChatLoader` see Chat Loader section below.
|
||||
|
||||
```python
|
||||
from langchain_community.document_loaders import DiscordChatLoader
|
||||
```
|
||||
|
||||
## Chat Loader
|
||||
|
||||
See a [usage example](/docs/integrations/chat_loaders/discord).
|
||||
|
||||
|
93
docs/docs/integrations/providers/facebook.mdx
Normal file
93
docs/docs/integrations/providers/facebook.mdx
Normal file
@ -0,0 +1,93 @@
|
||||
# Facebook - Meta
|
||||
|
||||
>[Meta Platforms, Inc.](https://www.facebook.com/), 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](https://github.com/facebookresearch/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](https://github.com/facebookresearch/flores/blob/main/flores200/README.md#languages-in-flores-200)
|
||||
|
||||
```bash
|
||||
pip install laser_encoders
|
||||
```
|
||||
|
||||
See a [usage example](/docs/integrations/text_embedding/laser).
|
||||
|
||||
```python
|
||||
from langchain_community.embeddings.laser import LaserEmbeddings
|
||||
```
|
||||
|
||||
## Document loaders
|
||||
|
||||
### Facebook Messenger
|
||||
|
||||
>[Messenger](https://en.wikipedia.org/wiki/Messenger_(software)) 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](/docs/integrations/document_loaders/facebook_chat).
|
||||
|
||||
```python
|
||||
from langchain_community.document_loaders import FacebookChatLoader
|
||||
```
|
||||
|
||||
## Vector stores
|
||||
|
||||
### Facebook Faiss
|
||||
|
||||
>[Facebook AI Similarity Search (Faiss)](https://engineering.fb.com/2017/03/29/data-infrastructure/faiss-a-library-for-efficient-similarity-search/)
|
||||
> 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](https://faiss.ai/).
|
||||
|
||||
We need to install `faiss` python package.
|
||||
|
||||
```bash
|
||||
pip install faiss-gpu # For CUDA 7.5+ supported GPU's.
|
||||
```
|
||||
|
||||
OR
|
||||
|
||||
```bash
|
||||
pip install faiss-cpu # For CPU Installation
|
||||
```
|
||||
|
||||
See a [usage example](/docs/integrations/vectorstores/faiss).
|
||||
|
||||
```python
|
||||
from langchain_community.vectorstores import FAISS
|
||||
```
|
||||
|
||||
## Chat loaders
|
||||
|
||||
### Facebook Messenger
|
||||
|
||||
>[Messenger](https://en.wikipedia.org/wiki/Messenger_(software)) 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](/docs/integrations/chat_loaders/facebook).
|
||||
|
||||
```python
|
||||
from langchain_community.chat_loaders.facebook_messenger import (
|
||||
FolderFacebookMessengerChatLoader,
|
||||
SingleFileFacebookMessengerChatLoader,
|
||||
)
|
||||
```
|
||||
|
||||
### Facebook WhatsApp
|
||||
|
||||
See a [usage example](/docs/integrations/chat_loaders/whatsapp).
|
||||
|
||||
```python
|
||||
from langchain_community.chat_loaders.whatsapp import WhatsAppChatLoader
|
||||
```
|
@ -1,21 +0,0 @@
|
||||
# Facebook Chat
|
||||
|
||||
>[Messenger](https://en.wikipedia.org/wiki/Messenger_(software)) is an American proprietary instant messaging app and
|
||||
> platform developed by `Meta Platforms`. Originally developed as `Facebook Chat` in 2008, the company revamped its
|
||||
> messaging service in 2010.
|
||||
|
||||
## Installation and Setup
|
||||
|
||||
First, you need to install `pandas` python package.
|
||||
|
||||
```bash
|
||||
pip install pandas
|
||||
```
|
||||
|
||||
## Document Loader
|
||||
|
||||
See a [usage example](/docs/integrations/document_loaders/facebook_chat).
|
||||
|
||||
```python
|
||||
from langchain_community.document_loaders import FacebookChatLoader
|
||||
```
|
@ -1,32 +0,0 @@
|
||||
# Facebook Faiss
|
||||
|
||||
>[Facebook AI Similarity Search (Faiss)](https://engineering.fb.com/2017/03/29/data-infrastructure/faiss-a-library-for-efficient-similarity-search/)
|
||||
> 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](https://faiss.ai/).
|
||||
|
||||
|
||||
## Installation and Setup
|
||||
|
||||
We need to install `faiss` python package.
|
||||
|
||||
```bash
|
||||
pip install faiss-gpu # For CUDA 7.5+ supported GPU's.
|
||||
```
|
||||
|
||||
OR
|
||||
|
||||
```bash
|
||||
pip install faiss-cpu # For CPU Installation
|
||||
```
|
||||
|
||||
|
||||
## Vector Store
|
||||
|
||||
See a [usage example](/docs/integrations/vectorstores/faiss).
|
||||
|
||||
```python
|
||||
from langchain_community.vectorstores import FAISS
|
||||
```
|
@ -1,5 +1,13 @@
|
||||
{
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/docs/integrations/providers/facebook_chat",
|
||||
"destination": "/docs/integrations/providers/facebook"
|
||||
},
|
||||
{
|
||||
"source": "/docs/integrations/providers/facebook_faiss",
|
||||
"destination": "/docs/integrations/providers/facebook"
|
||||
},
|
||||
{
|
||||
"source": "/docs/use_cases/graph/diffbot_graphtransformer",
|
||||
"destination": "/docs/use_cases/graph/integrations/diffbot_graphtransformer"
|
||||
|
Loading…
Reference in New Issue
Block a user