Anne31415 commited on
Commit
bb380bc
1 Parent(s): 590a3ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ def load_vector_store(file_path, store_name, force_reload=False):
85
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=800, chunk_overlap=100, length_function=len)
86
  text = load_pdf_text(file_path)
87
  chunks = text_splitter.split_text(text=text)
88
- embeddings = OpenAIEmbeddings(model="gpt-3.5-turbo-instruct")
89
  VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
90
 
91
  # Serialize the vector store
 
85
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=800, chunk_overlap=100, length_function=len)
86
  text = load_pdf_text(file_path)
87
  chunks = text_splitter.split_text(text=text)
88
+ embeddings = OpenAIEmbeddings()
89
  VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
90
 
91
  # Serialize the vector store