Skip to content

Commit 860fa59

Browse files
authored
add metal to ecosystem (langchain-ai#3613)
1 parent ee670c4 commit 860fa59

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/_static/MetalDash.png

3.48 MB
Loading

docs/ecosystem/metal.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Metal
2+
3+
This page covers how to use [Metal](https://getmetal.io) within LangChain.
4+
5+
## What is Metal?
6+
7+
Metal is a managed retrieval & memory platform built for production. Easily index your data into `Metal` and run semantic search and retrieval on it.
8+
9+
![Metal](../_static/MetalDash.png)
10+
11+
## Quick start
12+
13+
Get started by [creating a Metal account](https://app.getmetal.io/signup).
14+
15+
Then, you can easily take advantage of the `MetalRetriever` class to start retrieving your data for semantic search, prompting context, etc. This class takes a `Metal` instance and a dictionary of parameters to pass to the Metal API.
16+
17+
```python
18+
from langchain.retrievers import MetalRetriever
19+
from metal_sdk.metal import Metal
20+
21+
22+
metal = Metal("API_KEY", "CLIENT_ID", "INDEX_ID");
23+
retriever = MetalRetriever(metal, params={"limit": 2})
24+
25+
docs = retriever.get_relevant_documents("search term")
26+
```

0 commit comments

Comments
 (0)