abaliyan commited on
Commit
67c35bb
1 Parent(s): 3ad414e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -63,7 +63,8 @@ def push_to_pinecone(docs, embedding,namespace):
63
  "values": embedding.embed_query(doc.page_content),
64
  "metadata":doc.metadata}
65
  vector.append(entry)
66
-
 
67
  index = Pinecone.from_documents(docs, embedding, index_name = index_name, namespace='rag_bot')
68
 
69
  st.sidebar.write("This 35 seconds delay was added Manually... \n(because I'm using some free resources)")
 
63
  "values": embedding.embed_query(doc.page_content),
64
  "metadata":doc.metadata}
65
  vector.append(entry)
66
+ with st.expander("info"):
67
+ st.write(docs[:5])
68
  index = Pinecone.from_documents(docs, embedding, index_name = index_name, namespace='rag_bot')
69
 
70
  st.sidebar.write("This 35 seconds delay was added Manually... \n(because I'm using some free resources)")