Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ def ask_with_memory(vector_store, query, chat_history=[]):
|
|
40 |
|
41 |
from langchain.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate
|
42 |
|
43 |
-
llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5, openai_api_key=OPENAI_API_KEY)
|
|
|
44 |
|
45 |
retriever = vector_store.as_retriever(search_type='similarity', search_kwargs={'k': 3})
|
46 |
|
|
|
40 |
|
41 |
from langchain.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate
|
42 |
|
43 |
+
# llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5, openai_api_key=OPENAI_API_KEY)
|
44 |
+
llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5)
|
45 |
|
46 |
retriever = vector_store.as_retriever(search_type='similarity', search_kwargs={'k': 3})
|
47 |
|