Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def get_text_chunks(text):
|
|
36 |
|
37 |
# Function to create vectorstore from the text chunks
|
38 |
def get_vectorstore(text_chunks):
|
39 |
-
embeddings = HuggingFaceEmbeddings(model_name="hkunlp/instructor-
|
40 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
41 |
return vectorstore
|
42 |
|
|
|
36 |
|
37 |
# Function to create vectorstore from the text chunks
|
38 |
def get_vectorstore(text_chunks):
|
39 |
+
embeddings = HuggingFaceEmbeddings(model_name="hkunlp/instructor-base") # Using lightweight instructor model
|
40 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
41 |
return vectorstore
|
42 |
|