simplify graphrag
Browse files
app.py
CHANGED
@@ -72,14 +72,8 @@ https://kevinwkc.github.io/davinci/
|
|
72 |
=======================
|
73 |
Reasoning from context, answering the question
|
74 |
""")
|
75 |
-
in_verbatim = gr.Textbox(label="Context")
|
76 |
-
|
77 |
-
out_product = gr.Textbox(label="Answer")
|
78 |
-
|
79 |
-
gr.Examples(
|
80 |
-
[
|
81 |
-
[
|
82 |
-
"""
|
83 |
A business model is not merely a static description but a dynamic ecosystem defined by five interdependent pillars:
|
84 |
|
85 |
Value Creation (What you sell): The core offering must solve a critical pain point or unlock untapped demand. This is the foundation of your value proposition—quantifiable (e.g., cost efficiency) or qualitative (e.g., exceptional user experience)—that differentiates you in the market.
|
@@ -109,22 +103,29 @@ Data-Driven Iteration: Use AARRR metrics to identify leaks in the funnel. If act
|
|
109 |
Scalability through Partnerships: Key partners (e.g., tech vendors, logistics providers) can reduce overhead while expanding reach—critical for transitioning from niche to mass markets.
|
110 |
|
111 |
By framing each component as a strategic variable rather than a fixed element, businesses can continuously adapt to disruptions—a necessity in Ohmae’s vision of fluid, customer-first strategy.
|
112 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
],
|
114 |
[in_verbatim]
|
115 |
)
|
116 |
-
|
117 |
gr.Examples(
|
118 |
[
|
119 |
[
|
120 |
-
"""
|
121 |
Low APR and great customer service. I would highly recommend if you’re looking for a great credit card company and looking to rebuild your credit. I have had my credit limit increased annually and the annual fee is very low.
|
122 |
"""]
|
123 |
],
|
124 |
[in_question]
|
125 |
)
|
126 |
btn_recommend = gr.Button("Reasoning")
|
127 |
-
btn_recommend.click(fn=reasoning, inputs=[in_verbatim, in_question], outputs=out_product)
|
128 |
|
129 |
|
130 |
demo.launch(allowed_paths=["./xgb","./ts"])
|
|
|
72 |
=======================
|
73 |
Reasoning from context, answering the question
|
74 |
""")
|
75 |
+
#in_verbatim = gr.Textbox(label="Context")
|
76 |
+
in_verbatim = """
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
A business model is not merely a static description but a dynamic ecosystem defined by five interdependent pillars:
|
78 |
|
79 |
Value Creation (What you sell): The core offering must solve a critical pain point or unlock untapped demand. This is the foundation of your value proposition—quantifiable (e.g., cost efficiency) or qualitative (e.g., exceptional user experience)—that differentiates you in the market.
|
|
|
103 |
Scalability through Partnerships: Key partners (e.g., tech vendors, logistics providers) can reduce overhead while expanding reach—critical for transitioning from niche to mass markets.
|
104 |
|
105 |
By framing each component as a strategic variable rather than a fixed element, businesses can continuously adapt to disruptions—a necessity in Ohmae’s vision of fluid, customer-first strategy.
|
106 |
+
"""
|
107 |
+
in_question = gr.Textbox(label="Persona")
|
108 |
+
out_product = gr.Textbox(label="Plan")
|
109 |
+
"""
|
110 |
+
gr.Examples(
|
111 |
+
[
|
112 |
+
[
|
113 |
+
]
|
114 |
],
|
115 |
[in_verbatim]
|
116 |
)
|
117 |
+
"""
|
118 |
gr.Examples(
|
119 |
[
|
120 |
[
|
121 |
+
"""
|
122 |
Low APR and great customer service. I would highly recommend if you’re looking for a great credit card company and looking to rebuild your credit. I have had my credit limit increased annually and the annual fee is very low.
|
123 |
"""]
|
124 |
],
|
125 |
[in_question]
|
126 |
)
|
127 |
btn_recommend = gr.Button("Reasoning")
|
128 |
+
btn_recommend.click(fn=reasoning, inputs=[in_verbatim, f"Create marketing campaign that can improve customer acquisition, activation, retention and referral for this persona: {in_question}"], outputs=out_product)
|
129 |
|
130 |
|
131 |
demo.launch(allowed_paths=["./xgb","./ts"])
|