Sandaruth commited on
Commit
b79836f
1 Parent(s): 47a9554

model.py file

Browse files
Files changed (2) hide show
  1. .gitignore +2 -0
  2. model.py +2 -2
.gitignore CHANGED
@@ -4,3 +4,5 @@
4
 
5
  # test files
6
  /kk.ipynb
 
 
 
4
 
5
  # test files
6
  /kk.ipynb
7
+
8
+ __pycache__
model.py CHANGED
@@ -5,7 +5,7 @@ from dotenv import load_dotenv
5
  load_dotenv()
6
 
7
  # Access the value of OPENAI_API_KEY
8
- OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
9
 
10
  os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
11
 
@@ -34,7 +34,7 @@ splitter = RecursiveCharacterTextSplitter(
34
 
35
  from langchain_community.vectorstores import FAISS
36
 
37
- persitsdirectory="/NLP/ATrad/ATrad/db/faiss_Test02_500_C_BGE_large"
38
 
39
  vectorstore= FAISS.load_local(persitsdirectory, embedding)
40
 
 
5
  load_dotenv()
6
 
7
  # Access the value of OPENAI_API_KEY
8
+ OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
9
 
10
  os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
11
 
 
34
 
35
  from langchain_community.vectorstores import FAISS
36
 
37
+ persitsdirectory="./faiss_Test02_500_C_BGE_large"
38
 
39
  vectorstore= FAISS.load_local(persitsdirectory, embedding)
40