Spaces:
Runtime error
Runtime error
praveenku32k
commited on
Commit
·
a6a4f52
1
Parent(s):
bc768d7
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
#Helps us generate embeddings
|
11 |
#An embedding is a vector (list) of floating point numbers. The distance between two vectors measures their relatedness.
|
12 |
#Small distances suggest high relatedness and large distances suggest low relatedness.
|
13 |
-
from langchain.embeddings import
|
14 |
|
15 |
|
16 |
#FAISS is an open-source library developed by Facebook AI Research for efficient similarity search and clustering of large-scale datasets, particularly with high-dimensional vectors.
|
@@ -33,7 +33,7 @@ st.header("Hey, Ask me something & I will give out similar things")
|
|
33 |
|
34 |
#Initialize the OpenAIEmbeddings object
|
35 |
# embeddings = OpenAIEmbeddings()
|
36 |
-
embeddings= HuggingFaceInstructEmbeddings(model_name="
|
37 |
|
38 |
#The below snippet helps us to import CSV file data for our tasks
|
39 |
from langchain.document_loaders.csv_loader import CSVLoader
|
|
|
10 |
#Helps us generate embeddings
|
11 |
#An embedding is a vector (list) of floating point numbers. The distance between two vectors measures their relatedness.
|
12 |
#Small distances suggest high relatedness and large distances suggest low relatedness.
|
13 |
+
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
14 |
|
15 |
|
16 |
#FAISS is an open-source library developed by Facebook AI Research for efficient similarity search and clustering of large-scale datasets, particularly with high-dimensional vectors.
|
|
|
33 |
|
34 |
#Initialize the OpenAIEmbeddings object
|
35 |
# embeddings = OpenAIEmbeddings()
|
36 |
+
embeddings= HuggingFaceInstructEmbeddings(model_name="hku-nlp/instructor-xl")
|
37 |
|
38 |
#The below snippet helps us to import CSV file data for our tasks
|
39 |
from langchain.document_loaders.csv_loader import CSVLoader
|