Spaces:
Sleeping
Sleeping
Commit
•
033b966
1
Parent(s):
746f93e
redo index
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def embeddings_on_pinecone(texts):
|
|
103 |
|
104 |
def query_llm(retriever, query):
|
105 |
#llm = OpenAIChat(openai_api_key=st.session_state.openai_api_key)
|
106 |
-
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.
|
107 |
qa_chain = ConversationalRetrievalChain.from_llm(
|
108 |
llm=llm,
|
109 |
retriever=retriever,
|
|
|
103 |
|
104 |
def query_llm(retriever, query):
|
105 |
#llm = OpenAIChat(openai_api_key=st.session_state.openai_api_key)
|
106 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.9, "max_length":1024})
|
107 |
qa_chain = ConversationalRetrievalChain.from_llm(
|
108 |
llm=llm,
|
109 |
retriever=retriever,
|