Anne31415 commited on
Commit
b7092f4
·
verified ·
1 Parent(s): 9de6716

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=True):
85
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200, 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
 
85
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200, length_function=len)
86
  text = load_pdf_text(file_path)
87
  chunks = text_splitter.split_text(text=text)
88
+ embeddings = OpenAIEmbeddings(model="text-embedding-3-large")
89
  VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
90
 
91
  # Serialize the vector store