Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ if query:
|
|
| 62 |
# Upsert the embeddings for the query into the Pinecone index
|
| 63 |
query_embeddings = model.encode(query).tolist()
|
| 64 |
# now query
|
| 65 |
-
xc = index.query(vector=query_embeddings, top_k=5,
|
| 66 |
|
| 67 |
# Display the search results
|
| 68 |
st.write(f"Search results for '{query}':")
|
|
|
|
| 62 |
# Upsert the embeddings for the query into the Pinecone index
|
| 63 |
query_embeddings = model.encode(query).tolist()
|
| 64 |
# now query
|
| 65 |
+
xc = index.query(vector=query_embeddings, top_k=5, namespace="hotel-detail", include_metadata=True)
|
| 66 |
|
| 67 |
# Display the search results
|
| 68 |
st.write(f"Search results for '{query}':")
|