shrut123 commited on
Commit
be3515a
1 Parent(s): fff69e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,12 +54,12 @@ if pc:
54
  if st.button("Search Query"):
55
  if query_text and index:
56
  dense_vector = encode_query(model, query_text)
57
- st.write(f"Encoded Query Vector: {dense_vector}")
58
 
59
  # Search the index (sparse values can be added here as well)
60
  results = index.query(
61
  vector=dense_vector,
62
- top_k=5,
63
  include_metadata=True
64
  )
65
 
 
54
  if st.button("Search Query"):
55
  if query_text and index:
56
  dense_vector = encode_query(model, query_text)
57
+ #st.write(f"Encoded Query Vector: {dense_vector}")
58
 
59
  # Search the index (sparse values can be added here as well)
60
  results = index.query(
61
  vector=dense_vector,
62
+ top_k=3,
63
  include_metadata=True
64
  )
65