Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,7 @@ from langchain.chat_models import ChatOpenAI
|
|
9 |
from langchain.memory import ConversationBufferMemory
|
10 |
|
11 |
from langchain.prompts import PromptTemplate
|
12 |
-
|
13 |
-
You are a study partner assistant,students give you pdfs
|
14 |
-
and you help them to answer their questions.
|
15 |
-
|
16 |
-
Answer the question based on the most recent provided ressources only.
|
17 |
-
Give the most relevant answer.
|
18 |
-
{context}
|
19 |
-
Question: {question}
|
20 |
-
Answer:
|
21 |
-
"""
|
22 |
|
23 |
|
24 |
openai_api_key = os.environ.get("OPENAI_API_KEY")
|
|
|
9 |
from langchain.memory import ConversationBufferMemory
|
10 |
|
11 |
from langchain.prompts import PromptTemplate
|
12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
openai_api_key = os.environ.get("OPENAI_API_KEY")
|