Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -184,7 +184,7 @@ def initialize_qa_system(_vector_store): # Add a leading underscore to 'vector_
|
|
| 184 |
llm=pipeline(
|
| 185 |
"text-davinci-003",
|
| 186 |
model="gpt-4",
|
| 187 |
-
api_key=
|
| 188 |
prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."),
|
| 189 |
retriever=_vector_store.as_retriever() # Use '_vector_store' here as well
|
| 190 |
)
|
|
|
|
| 184 |
llm=pipeline(
|
| 185 |
"text-davinci-003",
|
| 186 |
model="gpt-4",
|
| 187 |
+
api_key=os.environ.get('OPENAI_API_KEY'),
|
| 188 |
prompt_template="Extract the specific details relevant to the query accurately from the document without adding additional information that is not present in the text. Provide concise, clear responses that stay within the boundaries of the document's content."),
|
| 189 |
retriever=_vector_store.as_retriever() # Use '_vector_store' here as well
|
| 190 |
)
|