Kushwanth Chowday Kandala commited on
Commit
160526f
1 Parent(s): f34c888

length and size of data of retrivel

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -129,7 +129,10 @@ def chat_actions():
129
  with st.sidebar:
130
  st.markdown("*:red[semantic search results]* with **:green[Retrieval Augmented Generation]** ***(RAG)***.")
131
  st.dataframe(resdf)
132
- st.write(f"There are {len(consolidated_text)} characters in the pdf with {mbsize}MB size")
 
 
 
133
  promt_engineer(consolidated_text)
134
 
135
  for res in result['matches']:
 
129
  with st.sidebar:
130
  st.markdown("*:red[semantic search results]* with **:green[Retrieval Augmented Generation]** ***(RAG)***.")
131
  st.dataframe(resdf)
132
+ bytesize = consolidated_text.encode("utf-8")
133
+ p = math.pow(1024, 2)
134
+ mbsize = round(len(bytesize) / p, 2)
135
+ st.write(f"Text lenth of {len(consolidated_text)} characters with {mbsize}MB size")
136
  promt_engineer(consolidated_text)
137
 
138
  for res in result['matches']: