timefullytrue commited on
Commit
69a44b5
·
verified ·
1 Parent(s): 0722f22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ collection = client.get_or_create_collection("patents")
20
  collection.add(documents=docs,ids=ids)
21
 
22
  def text_embedding(input):
23
- model = SentenceTransformer('sentence-transformers/all-mpnet-base-v2')
24
  return model.encode(input)
25
 
26
  def gen_context(query):
 
20
  collection.add(documents=docs,ids=ids)
21
 
22
  def text_embedding(input):
23
+ model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
24
  return model.encode(input)
25
 
26
  def gen_context(query):