File size: 827 Bytes
6099a4b
 
 
 
 
 
 
 
 
 
 
 
4ac4c09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: Sample Langchain Api
emoji: 💻
colorFrom: purple
colorTo: indigo
sdk: docker
pinned: false
license: apache-2.0
short_description: Very simple langchain api to translate anything
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Langchain basics 

This is a basic application that runs an LLM application using Langchain and Langserve. 

## Requirements 

You need to have:

* Mistral Account to get a Mistral API Key
* Docker installed

## Run the application 

To run the application simply:

```bash
docker run -p 7860:7680 -e MISTRAL_API_KEY=REPLACE_WITH_YOUR_MISTRAL_API_KEY jedha/langchain-base
```
And then open web browser and go to:

* http://localhost:7860/chain/playground 

This endpoint will prompt you to a web page to test the `/chain` endpoint.