Kushwanth Chowday Kandala commited on
Commit
78c999a
1 Parent(s): 38e40b5

change the output length of token

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,7 +121,7 @@ def chat_actions():
121
  for res in result['matches']:
122
  i = i + 1
123
  data.append([f"{i}⭐", res['score'], res['metadata']['text']])
124
- consolidated_text += f"{res['metadata']['text']}\n\n"
125
 
126
  # Create a DataFrame from the list of lists
127
  resdf = pd.DataFrame(data, columns=['TopRank', 'Score', 'Text'])
@@ -129,7 +129,7 @@ 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
- promt_engineer(consolidated_text)
133
 
134
  for res in result['matches']:
135
  st.session_state["chat_history"].append(
 
121
  for res in result['matches']:
122
  i = i + 1
123
  data.append([f"{i}⭐", res['score'], res['metadata']['text']])
124
+ consolidated_text += res['metadata']['text']
125
 
126
  # Create a DataFrame from the list of lists
127
  resdf = pd.DataFrame(data, columns=['TopRank', 'Score', 'Text'])
 
129
  with st.sidebar:
130
  st.markdown("*:red[semantic search results]* with **:green[Retrieval Augmented Generation]** ***(RAG)***.")
131
  st.dataframe(resdf)
132
+ promt_engineer(consolidated_text[:5000])
133
 
134
  for res in result['matches']:
135
  st.session_state["chat_history"].append(