Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,8 @@ index = pinecone.Index("scotus")
|
|
| 32 |
@st.cache_data
|
| 33 |
def search_index(query):
|
| 34 |
vector = model.encode([query]).tolist()
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
|
| 39 |
if search != "":
|
|
|
|
| 32 |
@st.cache_data
|
| 33 |
def search_index(query):
|
| 34 |
vector = model.encode([query]).tolist()
|
| 35 |
+
st.write(index.query(vector=vector,top_k=10,include_values=False,include_metadata=True))
|
| 36 |
+
|
| 37 |
|
| 38 |
search = st.text_input('Search', placeholder='First Amendment cannot protect libel')
|
| 39 |
if search != "":
|