Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -625,7 +625,7 @@ texts = text_splitter.split_text(state_of_the_union)
|
|
625 |
|
626 |
embeddings = OpenAIEmbeddings()
|
627 |
vectorstore = FAISS.from_texts(texts, embeddings)
|
628 |
-
qa = VectorDBQA.from_chain_type(llm=OpenAI(model_name="
|
629 |
#llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, max_tokens=256) # Modify model_name if you have access to GPT-4
|
630 |
|
631 |
|
|
|
625 |
|
626 |
embeddings = OpenAIEmbeddings()
|
627 |
vectorstore = FAISS.from_texts(texts, embeddings)
|
628 |
+
qa = VectorDBQA.from_chain_type(llm=OpenAI(model_name="text-davinci-002", temperature=0, max_tokens=256), chain_type="stuff", vectorstore=vectorstore)
|
629 |
#llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, max_tokens=256) # Modify model_name if you have access to GPT-4
|
630 |
|
631 |
|