Skip to content

Commit

Permalink
docs: integrations updates 21 (langchain-ai#27380)
Browse files Browse the repository at this point in the history
Added missed provider pages. Added descriptions and links. Fixed
inconsistency in text formatting.

---------

Co-authored-by: Erick Friis <erickfriis@gmail.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
  • Loading branch information
3 people authored Oct 16, 2024
1 parent 591a3db commit 3165415
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 10 deletions.
16 changes: 12 additions & 4 deletions docs/docs/integrations/providers/byte_dance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@ Get the access token.
You can find the access instructions [here](https://open.larksuite.com/document)


## Document Loader

### Lark Suite
## Document Loaders

>[Lark Suite](https://www.larksuite.com/) is an enterprise collaboration platform
> developed by `ByteDance`.
See a [usage example](/docs/integrations/document_loaders/larksuite).
### Lark Suite for Document

See a [usage example](/docs/integrations/document_loaders/larksuite/#load-from-document).

```python
from langchain_community.document_loaders.larksuite import LarkSuiteDocLoader
```

### Lark Suite for Wiki

See a [usage example](/docs/integrations/document_loaders/larksuite/#load-from-wiki).

```python
from langchain_community.document_loaders.larksuite import LarkSuiteWikiLoader
```
24 changes: 24 additions & 0 deletions docs/docs/integrations/providers/localai.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# LocalAI

>[LocalAI](https://localai.io/) is the free, Open Source OpenAI alternative.
> `LocalAI` act as a drop-in replacement REST API that’s compatible with OpenAI API
> specifications for local inferencing. It allows you to run LLMs, generate images,
> audio (and not only) locally or on-prem with consumer grade hardware,
> supporting multiple model families and architectures.
## Installation and Setup

We have to install several python packages:

```bash
pip install tenacity openai
```


## Embedding models

See a [usage example](/docs/integrations/text_embedding/localai).

```python
from langchain_community.embeddings import LocalAIEmbeddings
```
18 changes: 13 additions & 5 deletions docs/docs/integrations/providers/milvus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,25 @@
Install the Python SDK:

```bash
pip install pymilvus
pip install langchain-milvus
```

## Vector Store

There exists a wrapper around `Milvus` indexes, allowing you to use it as a vectorstore,
whether for semantic search or example selection.
See a [usage example](/docs/integrations/vectorstores/milvus).

To import this vectorstore:
```python
from langchain_community.vectorstores import Milvus
from langchain_milvus import Milvus
```

## Retrievers

See a [usage example](/docs/integrations/retrievers/milvus_hybrid_search).

To import this vectorstore:
```python
from langchain_milvus.retrievers import MilvusCollectionHybridSearchRetriever
from langchain_milvus.utils.sparse import BM25SparseEmbedding
```

For a more detailed walkthrough of the `Miluvs` wrapper, see [this notebook](/docs/integrations/vectorstores/milvus)
24 changes: 24 additions & 0 deletions docs/docs/integrations/providers/mongodb.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# MongoDB

>[MongoDB](https://www.mongodb.com/) is a NoSQL, document-oriented
> database that supports JSON-like documents with a dynamic schema.
**NOTE:**
- See other `MongoDB` integrations on the [MongoDB Atlas page](/docs/integrations/providers/mongodb_atlas).

## Installation and Setup

Install the Python package:

```bash
pip install langchain-mongodb
```

## Message Histories

See a [usage example](/docs/integrations/memory/mongodb_chat_message_history).

To import this vectorstore:
```python
from langchain_mongodb.chat_message_histories import MongoDBChatMessageHistory
```
22 changes: 21 additions & 1 deletion docs/docs/integrations/providers/mongodb_atlas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,30 @@ See a [usage example](/docs/integrations/vectorstores/mongodb_atlas).
from langchain_mongodb import MongoDBAtlasVectorSearch
```

## Retrievers

## LLM Caches
### Full Text Search Retriever

>`Hybrid Search Retriever` performs full-text searches using
> Lucene’s standard (`BM25`) analyzer.
```python
from langchain_mongodb.retrievers import MongoDBAtlasFullTextSearchRetriever
```

### Hybrid Search Retriever

>`Hybrid Search Retriever` combines vector and full-text searches weighting
> them the via `Reciprocal Rank Fusion` (`RRF`) algorithm.
```python
from langchain_mongodb.retrievers import MongoDBAtlasHybridSearchRetriever
```

## Model Caches

### MongoDBCache

An abstraction to store a simple cache in MongoDB. This does not use Semantic Caching, nor does it require an index to be made on the collection before generation.

To import this cache:
Expand Down

0 comments on commit 3165415

Please sign in to comment.