timfe commited on
Commit
c9b431a
·
1 Parent(s): a7d95d1

changed default values

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +2 -2
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -30,9 +30,9 @@ OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
30
  with st.sidebar:
31
  model = st.selectbox("Model name", ["gpt-3.5-turbo"], disabled=True)
32
  temperature = st.number_input("Temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
33
- k = st.number_input("Number of documents to include", value=1, min_value=1, step=1, placeholder=1)
34
  if st.toggle("Splitting", value=True):
35
- chunk_size = st.number_input("Chunk size", value=750, step=250, placeholder=750) # Defines the chunks in amount of tokens in which the files are split. Also defines the amount of tokens that are feeded into the context.
36
  chunk_overlap = st.number_input("Chunk overlap", value=0, step=10, placeholder=0)
37
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap)
38
  splits = text_splitter.split_documents(docs)
 
30
  with st.sidebar:
31
  model = st.selectbox("Model name", ["gpt-3.5-turbo"], disabled=True)
32
  temperature = st.number_input("Temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
33
+ k = st.number_input("Number of documents to include", value=3, min_value=1, step=1, placeholder=3)
34
  if st.toggle("Splitting", value=True):
35
+ chunk_size = st.number_input("Chunk size", value=500, step=250, placeholder=500) # Defines the chunks in amount of tokens in which the files are split. Also defines the amount of tokens that are feeded into the context.
36
  chunk_overlap = st.number_input("Chunk overlap", value=0, step=10, placeholder=0)
37
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap)
38
  splits = text_splitter.split_documents(docs)