Update README.md
Browse files
README.md
CHANGED
@@ -18,6 +18,19 @@ tags:
|
|
18 |
|
19 |
Can be loaded and used by [chatglm.cpp](https://github.com/li-plus/chatglm.cpp)
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
```
|
22 |
chatglm -m ./models/chatglm2-6b-ggml.q8_0.bin -p 你好
|
23 |
```
|
|
|
18 |
|
19 |
Can be loaded and used by [chatglm.cpp](https://github.com/li-plus/chatglm.cpp)
|
20 |
|
21 |
+
## Integrated with langchain framework in CustomLLM form
|
22 |
+
|
23 |
+
[chatglm_langchain.py](chatglm_langchain.py)
|
24 |
+
|
25 |
+
```
|
26 |
+
python chatglm_langchain.py
|
27 |
+
|
28 |
+
小明的妈妈有两个孩子,一个叫大明,另外一个叫小明。
|
29 |
+
```
|
30 |
+
|
31 |
+
|
32 |
+
## Use under the shell command line
|
33 |
+
|
34 |
```
|
35 |
chatglm -m ./models/chatglm2-6b-ggml.q8_0.bin -p 你好
|
36 |
```
|