Ilyas KHIAT
commited on
Commit
·
c4c63f6
1
Parent(s):
66b42f2
modif
Browse files- RAG_PDF_WEB.py +28 -14
RAG_PDF_WEB.py
CHANGED
|
@@ -100,23 +100,37 @@ def rag_pdf_web():
|
|
| 100 |
chain = get_conversation_chain(vectorstore)
|
| 101 |
|
| 102 |
if sous_options == "Ambition, Vision, Missions, Valeurs":
|
| 103 |
-
question = '''voici les 4 points à génerer absolument, pas de reponse comme je ne sais pas; et n'oublie aucun des points , chaque paragraphe doit être de minimum 150 caractères:
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
response = chain.invoke(question)
|
| 116 |
-
st.markdown(response.content)
|
|
|
|
|
|
|
| 117 |
ambition = chain.invoke("Quelle est l'ambition de l'entreprise ? (répondre avec maximum 250 caractères)")
|
| 118 |
st.markdown("### Ambition :")
|
| 119 |
st.markdown(ambition.content)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
values = chain.invoke("Quels sont les valeurs de l'entreprise ? (répondre avec 10 mots maximum en bullet points)")
|
| 121 |
st.markdown("### Valeurs :")
|
| 122 |
st.markdown(values.content)
|
|
|
|
| 100 |
chain = get_conversation_chain(vectorstore)
|
| 101 |
|
| 102 |
if sous_options == "Ambition, Vision, Missions, Valeurs":
|
| 103 |
+
# question = '''voici les 4 points à génerer absolument, pas de reponse comme je ne sais pas; et n'oublie aucun des points , chaque paragraphe doit être de minimum 150 caractères:
|
| 104 |
+
# \n
|
| 105 |
+
# ### Ambition : \n
|
| 106 |
+
# Quelle est l'ambition de l'entreprise ? (répondre avec maximum 250 caractères)
|
| 107 |
+
# \n
|
| 108 |
+
# ### Vision : \n
|
| 109 |
+
# Quelle est la vision de l'entreprise ? (répondre avec maximum 250 caractères)
|
| 110 |
+
# \n
|
| 111 |
+
# ### Missions : \n
|
| 112 |
+
# Quelles sont les missions de l'entreprise ? (répondre avec maximum 250 caractères)
|
| 113 |
+
# \n
|
| 114 |
+
# renvoie ta réponse en markdown et bien formatée'''
|
| 115 |
+
# response = chain.invoke(question)
|
| 116 |
+
# st.markdown(response.content)
|
| 117 |
+
|
| 118 |
+
#ambition
|
| 119 |
ambition = chain.invoke("Quelle est l'ambition de l'entreprise ? (répondre avec maximum 250 caractères)")
|
| 120 |
st.markdown("### Ambition :")
|
| 121 |
st.markdown(ambition.content)
|
| 122 |
+
|
| 123 |
+
#vision
|
| 124 |
+
ambition = chain.invoke(" Quelle est la vision de l'entreprise ? (répondre avec maximum 250 caractères)")
|
| 125 |
+
st.markdown("### Vision :")
|
| 126 |
+
st.markdown(ambition.content)
|
| 127 |
+
|
| 128 |
+
#Mission
|
| 129 |
+
ambition = chain.invoke(" Quelle est la vision de l'entreprise ? (répondre avec maximum 250 caractères)")
|
| 130 |
+
st.markdown("### Mission :")
|
| 131 |
+
st.markdown(ambition.content)
|
| 132 |
+
|
| 133 |
+
#values
|
| 134 |
values = chain.invoke("Quels sont les valeurs de l'entreprise ? (répondre avec 10 mots maximum en bullet points)")
|
| 135 |
st.markdown("### Valeurs :")
|
| 136 |
st.markdown(values.content)
|