ali121300 commited on
Commit
52933e7
1 Parent(s): 8190967

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def load_file():
31
  ######################################
32
  def get_text_chunks(text:str) ->list:
33
  text_splitter = CharacterTextSplitter(
34
- separator="\n", chunk_size=400, chunk_overlap=40, length_function=len
35
  )
36
  chunks = text_splitter.split_text(text)
37
  return chunks
@@ -55,7 +55,7 @@ def get_conversation_chain(vectorstore:FAISS) -> ConversationalRetrievalChain:
55
  repo_id="mistralai/Mistral-7B-Instruct-v0.2",
56
  #repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1"
57
  #repo_id="TheBloke/Mixtral-8x7B-Instruct-v0.1-GGUF"
58
- model_kwargs={"temperature": 0.1, "max_length": 2048},
59
  )
60
 
61
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
 
31
  ######################################
32
  def get_text_chunks(text:str) ->list:
33
  text_splitter = CharacterTextSplitter(
34
+ separator="\n", chunk_size=1000, chunk_overlap=100, length_function=len
35
  )
36
  chunks = text_splitter.split_text(text)
37
  return chunks
 
55
  repo_id="mistralai/Mistral-7B-Instruct-v0.2",
56
  #repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1"
57
  #repo_id="TheBloke/Mixtral-8x7B-Instruct-v0.1-GGUF"
58
+ model_kwargs={"temperature": 0.9, "max_length": 2048},
59
  )
60
 
61
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)