woogim commited on
Commit
25331d6
1 Parent(s): efec870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ retriever = vector_store.as_retriever(search_kwargs={"k": 2})
32
  from langchain.chat_models import ChatOpenAI
33
  from langchain.chains import RetrievalQAWithSourcesChain
34
 
35
- llm = ChatOpenAI(model_name="gpt-3.5", temperature=0) # Modify model_name if you have access to GPT-4
36
 
37
  chain = RetrievalQAWithSourcesChain.from_chain_type(
38
  llm=llm,
@@ -66,7 +66,7 @@ from langchain.chains import RetrievalQAWithSourcesChain
66
 
67
  chain_type_kwargs = {"prompt": prompt}
68
 
69
- llm = ChatOpenAI(model_name="gpt-3.5", temperature=0) # Modify model_name if you have access to GPT-4
70
 
71
  chain = RetrievalQAWithSourcesChain.from_chain_type(
72
  llm=llm,
 
32
  from langchain.chat_models import ChatOpenAI
33
  from langchain.chains import RetrievalQAWithSourcesChain
34
 
35
+ llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0) # Modify model_name if you have access to GPT-4
36
 
37
  chain = RetrievalQAWithSourcesChain.from_chain_type(
38
  llm=llm,
 
66
 
67
  chain_type_kwargs = {"prompt": prompt}
68
 
69
+ llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0) # Modify model_name if you have access to GPT-4
70
 
71
  chain = RetrievalQAWithSourcesChain.from_chain_type(
72
  llm=llm,