Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	remove defined bullets from base prompt
Browse files- appStore/__pycache__/rag.cpython-310.pyc +0 -0
- appStore/__pycache__/target.cpython-310.pyc +0 -0
- appStore/rag.py +8 -3
- appStore/target.py +1 -1
- docStore/.DS_Store +0 -0
    	
        appStore/__pycache__/rag.cpython-310.pyc
    CHANGED
    
    | Binary files a/appStore/__pycache__/rag.cpython-310.pyc and b/appStore/__pycache__/rag.cpython-310.pyc differ | 
|  | 
    	
        appStore/__pycache__/target.cpython-310.pyc
    CHANGED
    
    | Binary files a/appStore/__pycache__/target.cpython-310.pyc and b/appStore/__pycache__/target.cpython-310.pyc differ | 
|  | 
    	
        appStore/rag.py
    CHANGED
    
    | @@ -18,8 +18,8 @@ def get_prompt(context, label): | |
| 18 | 
             
              base_prompt="Summarize the following context efficiently in bullet points, the less the better- but keep concrete goals. \
         | 
| 19 | 
             
              Summarize only activities that address the vulnerability of "+label+" to climate change. \
         | 
| 20 | 
             
              Formatting example: \
         | 
| 21 | 
            -
                -  | 
| 22 | 
            -
                -  | 
| 23 | 
             
            "
         | 
| 24 |  | 
| 25 | 
             
              # Add the meta data for references
         | 
| @@ -28,7 +28,12 @@ def get_prompt(context, label): | |
| 28 |  | 
| 29 | 
             
              return prompt
         | 
| 30 |  | 
| 31 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 32 | 
             
            # # convert df rows to Document object so we can feed it into the summarizer easily
         | 
| 33 | 
             
            # def get_document(df):
         | 
| 34 | 
             
            #     # we take a list of each extract
         | 
|  | |
| 18 | 
             
              base_prompt="Summarize the following context efficiently in bullet points, the less the better- but keep concrete goals. \
         | 
| 19 | 
             
              Summarize only activities that address the vulnerability of "+label+" to climate change. \
         | 
| 20 | 
             
              Formatting example: \
         | 
| 21 | 
            +
                - Bullet point 1 \
         | 
| 22 | 
            +
                - Bullet point 2 \
         | 
| 23 | 
             
            "
         | 
| 24 |  | 
| 25 | 
             
              # Add the meta data for references
         | 
|  | |
| 28 |  | 
| 29 | 
             
              return prompt
         | 
| 30 |  | 
| 31 | 
            +
            #   base_prompt="Summarize the following context efficiently in bullet points, the less the better- but keep concrete goals. \
         | 
| 32 | 
            +
            #   Summarize only activities that address the vulnerability of "+label+" to climate change. \
         | 
| 33 | 
            +
            #   Formatting example: \
         | 
| 34 | 
            +
            #     - Collect and utilize gender-disaggregated data to inform and improve climate change adaptation efforts. \
         | 
| 35 | 
            +
            #     - Prioritize gender sensitivity in adaptation options, ensuring participation and benefits for women, who are more vulnerable to climate impacts. \
         | 
| 36 | 
            +
            # "
         | 
| 37 | 
             
            # # convert df rows to Document object so we can feed it into the summarizer easily
         | 
| 38 | 
             
            # def get_document(df):
         | 
| 39 | 
             
            #     # we take a list of each extract
         | 
    	
        appStore/target.py
    CHANGED
    
    | @@ -87,7 +87,7 @@ def target_display(): | |
| 87 |  | 
| 88 | 
             
                # Assign dataframe a name
         | 
| 89 | 
             
                df = st.session_state['key2']
         | 
| 90 | 
            -
                st.write(df)
         | 
| 91 |  | 
| 92 | 
             
                ### RAG Output by group ##
         | 
| 93 |  | 
|  | |
| 87 |  | 
| 88 | 
             
                # Assign dataframe a name
         | 
| 89 | 
             
                df = st.session_state['key2']
         | 
| 90 | 
            +
                # st.write(df)
         | 
| 91 |  | 
| 92 | 
             
                ### RAG Output by group ##
         | 
| 93 |  | 
    	
        docStore/.DS_Store
    ADDED
    
    | Binary file (6.15 kB). View file | 
|  | 
