Update app.py
Browse files
app.py
CHANGED
@@ -104,6 +104,7 @@ if "vector" not in st.session_state:
|
|
104 |
|
105 |
st.session_state.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
106 |
st.session_state.documents = st.session_state.text_splitter.split_documents(st.session_state.docs)
|
|
|
107 |
# st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
|
108 |
st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
|
109 |
# ZIE:
|
@@ -119,6 +120,7 @@ if "vector" not in st.session_state:
|
|
119 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
120 |
|
121 |
llm = ChatGroq(
|
|
|
122 |
groq_api_key=groq_api_key,
|
123 |
model_name='mixtral-8x7b-32768'
|
124 |
)
|
|
|
104 |
|
105 |
st.session_state.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
106 |
st.session_state.documents = st.session_state.text_splitter.split_documents(st.session_state.docs)
|
107 |
+
#
|
108 |
# st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
|
109 |
st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
|
110 |
# ZIE:
|
|
|
120 |
st.title("Literature Based Research (LBR) - A. Unzicker and J. Bours - Chat with Docs - Groq Edition (Very Fast!) - VERSION 3 - March 8 2024")
|
121 |
|
122 |
llm = ChatGroq(
|
123 |
+
temperature=0.2,
|
124 |
groq_api_key=groq_api_key,
|
125 |
model_name='mixtral-8x7b-32768'
|
126 |
)
|