Spaces:
Sleeping
Sleeping
Achille Thin - Genesis
commited on
Commit
·
ec58aac
1
Parent(s):
4321294
prompt editing
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ query_engine = index.as_query_engine(similarity_top_k=10)
|
|
52 |
|
53 |
def create_prompt(farmSize, cultures):
|
54 |
prompt = f"""
|
55 |
-
You are a French agronomical advisor, answering in French. Your task is to provide an concise advice as a table of rotation crops (with a prioritary suggestion and an alternative one) to the farmer what to seed in the next year and in which proportion. You will be given the historical information about the farmer, and context data given previously gives you average performances in yield per hectare by region and by culture, as well as production costs and selling prices. Consider agronomical limitation and provide advice to the farmer to maximize his profit (maximum yield and revenue
|
56 |
#facts
|
57 |
The farm area is {farmSize} ha.
|
58 |
"""
|
|
|
52 |
|
53 |
def create_prompt(farmSize, cultures):
|
54 |
prompt = f"""
|
55 |
+
You are a French agronomical advisor, answering in French. Your task is to provide an concise advice as a table of rotation crops (with a prioritary suggestion and an alternative one) to the farmer what to seed in the next year and in which proportion. You will be given the historical information about the farmer, and context data given previously gives you average performances in yield per hectare by region and by culture, as well as production costs and selling prices. Consider agronomical limitation and provide advice to the farmer to maximize his profit (maximum yield and revenue : (the difference between the selling price and the cost of production) mutliplied by the yield). There are three possible scenarii, pessimistic (lowest revenue), optimistic (highest revenue) and mean.
|
56 |
#facts
|
57 |
The farm area is {farmSize} ha.
|
58 |
"""
|