Skip to content

Commit 904730f

Browse files
Merge pull request #27 from raywangau/dev
Updated the package names fixing ModuleNotFoundError for demo-1-basics
2 parents 15a13bc + 1db5008 commit 904730f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

demo/demo-1-basics/anomaly-llm-faiss/app/services/rag_pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
22

3-
from langchain.vectorstores import FAISS
4-
from langchain.embeddings import HuggingFaceEmbeddings
5-
from langchain.docstore.document import Document
3+
from langchain_community.vectorstores import FAISS
4+
from langchain_community.embeddings import HuggingFaceEmbeddings
5+
from langchain_core.documents import Document
66

77
import os
88

demo/demo-1-basics/anomaly-llm-faiss/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sentence-transformers
66
transformers
77
langchain
88
langchain-community
9+
langchain-core
910
faiss-cpu
1011
openshift==0.13.1
1112
python-dotenv
@@ -15,4 +16,4 @@ openai
1516
psutil
1617
py-spy
1718
ipython
18-
httpx
19+
httpx

0 commit comments

Comments
 (0)