Spaces:
Paused
Paused
move to langchain community
Browse files- utils/helpers.py +5 -2
utils/helpers.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
import os
|
| 2 |
from huggingface_hub import InferenceClient, hf_hub_download
|
| 3 |
-
from langchain.embeddings import HuggingFaceEmbeddings
|
| 4 |
-
from langchain.vectorstores import FAISS
|
|
|
|
|
|
|
|
|
|
| 5 |
# from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 6 |
import json
|
| 7 |
from pathlib import Path
|
|
|
|
| 1 |
import os
|
| 2 |
from huggingface_hub import InferenceClient, hf_hub_download
|
| 3 |
+
# from langchain.embeddings import HuggingFaceEmbeddings
|
| 4 |
+
# from langchain.vectorstores import FAISS
|
| 5 |
+
from langchain_community.vectorstores import FAISS
|
| 6 |
+
from langchain_huggingface import HuggingFaceEmbeddings
|
| 7 |
+
|
| 8 |
# from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 9 |
import json
|
| 10 |
from pathlib import Path
|