Spaces:
Build error
Build error
added langchain app for simplicity
Browse files- langchainapp.py +1 -1
langchainapp.py
CHANGED
@@ -95,7 +95,7 @@ class MyEmbeddingFunction(EmbeddingFunction):
|
|
95 |
# query_prefix = "Instruct: " +tasks[selected_task] +"\nQuery: "
|
96 |
# Construct the embed_instruction and query_instruction dynamically
|
97 |
embed_instruction = f"Instruct: {task_description}" +"\nQuery:"
|
98 |
-
query_instruction = f""
|
99 |
|
100 |
# Update the hf_embeddings object with the new instructions
|
101 |
self.hf_embeddings.embed_instruction = embed_instruction
|
|
|
95 |
# query_prefix = "Instruct: " +tasks[selected_task] +"\nQuery: "
|
96 |
# Construct the embed_instruction and query_instruction dynamically
|
97 |
embed_instruction = f"Instruct: {task_description}" +"\nQuery:"
|
98 |
+
# query_instruction = f""
|
99 |
|
100 |
# Update the hf_embeddings object with the new instructions
|
101 |
self.hf_embeddings.embed_instruction = embed_instruction
|