Kushwanth Chowday Kandala commited on
Commit
3d67d69
1 Parent(s): dcb00f7

IndexError: invalid index to scalar variable.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def chat_actions():
84
 
85
  query_embedding = model.encode(st.session_state["chat_input"])
86
  # create the query vector
87
- query_vector = model.encode(query_embedding).tolist()
88
  # now query vector database
89
  result = index.query(query_vector, top_k=5, include_metadata=True) # xc is a list of tuples
90
 
 
84
 
85
  query_embedding = model.encode(st.session_state["chat_input"])
86
  # create the query vector
87
+ query_vector = query_embedding.tolist()
88
  # now query vector database
89
  result = index.query(query_vector, top_k=5, include_metadata=True) # xc is a list of tuples
90