metechmohit commited on
Commit
39cd134
·
verified ·
1 Parent(s): d245f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def search_courses(query):
84
  query_embedding = model.encode([query])
85
 
86
  # Search for the closest courses using FAISS
87
- top_k = 10 # Retrieve the top 10 closest matches
88
  distances, indices = index.search(np.array(query_embedding), top_k)
89
 
90
  # Collect the results based on the indices returned by FAISS
 
84
  query_embedding = model.encode([query])
85
 
86
  # Search for the closest courses using FAISS
87
+ top_k = 6 # Retrieve the top 6 closest matches
88
  distances, indices = index.search(np.array(query_embedding), top_k)
89
 
90
  # Collect the results based on the indices returned by FAISS