Upload helper.py
Browse files
helper.py
CHANGED
@@ -42,7 +42,7 @@ llm = HuggingFacePipeline(pipeline=pipe)
|
|
42 |
# # Initialize instructor embeddings using the Hugging Face model
|
43 |
# instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="C:/Users/arasu/Workspace/Projects/GenAI/embeddings/hkunlp_instructor-large")
|
44 |
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-large")
|
45 |
-
db_path = "vector_db"
|
46 |
|
47 |
def create_vector_db():
|
48 |
# Load data from pdf
|
|
|
42 |
# # Initialize instructor embeddings using the Hugging Face model
|
43 |
# instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="C:/Users/arasu/Workspace/Projects/GenAI/embeddings/hkunlp_instructor-large")
|
44 |
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-large")
|
45 |
+
db_path = "./vector_db"
|
46 |
|
47 |
def create_vector_db():
|
48 |
# Load data from pdf
|