Tonic commited on
Commit
1b97e14
β€’
1 Parent(s): 17d91f4

added langchain app for simplicity

Browse files
Files changed (1) hide show
  1. 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