Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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 |
|