Spaces:
Sleeping
Sleeping
angelesteban00
commited on
Commit
•
65913cc
1
Parent(s):
fb4b26a
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def query_data(query,openai_api_key,mongo_uri):
|
|
47 |
# Load "stuff" documents chain. Stuff documents chain takes a list of documents,
|
48 |
# inserts them all into a prompt and passes that prompt to an LLM.
|
49 |
|
50 |
-
qa = RetrievalQA.from_chain_type(llm, chain_type="stuff", retriever=retriever)
|
51 |
|
52 |
# Execute the chain
|
53 |
|
|
|
47 |
# Load "stuff" documents chain. Stuff documents chain takes a list of documents,
|
48 |
# inserts them all into a prompt and passes that prompt to an LLM.
|
49 |
|
50 |
+
qa = RetrievalQA.from_chain_type(llm, chain_type="stuff", retriever=retriever, model_name='gpt-4-1106-preview')
|
51 |
|
52 |
# Execute the chain
|
53 |
|