transformation folder change

This commit is contained in:
LUIS NOVO 2024-11-01 12:36:59 -03:00
parent c65bf8ba12
commit 0876e94658
13 changed files with 26 additions and 27 deletions

View file

@ -30,7 +30,7 @@ def call_model(state: dict, config: RunnableConfig) -> dict:
"input_text": state["content_stack"][-1], "input_text": state["content_stack"][-1],
"command": current_transformation, "command": current_transformation,
} }
current_transformation = "patterns/custom" current_transformation = "patterns/default/command"
transformation_result = run_pattern( transformation_result = run_pattern(
pattern_name=current_transformation, pattern_name=current_transformation,

View file

@ -54,7 +54,7 @@ def call_model(state: TocState, config: RunnableConfig) -> dict:
) )
return { return {
"toc": run_pattern( "toc": run_pattern(
pattern_name="recursive_toc", pattern_name="default/recursive_toc",
model_id=model_id, model_id=model_id,
state=state, state=state,
).content ).content

View file

@ -12,7 +12,7 @@ st.set_page_config(
version_sidebar() version_sidebar()
st.title("Settings") st.title("⚙️ Settings")
model_tab, model_defaults_tab = st.tabs(["Models", "Model Defaults"]) model_tab, model_defaults_tab = st.tabs(["Models", "Model Defaults"])

View file

@ -1,4 +1,4 @@
{% include 'patterns/common_text.jinja' %} {% include 'patterns/default/common_tranformation_instructions.jinja' %}
# IDENTITY and PURPOSE # IDENTITY and PURPOSE

View file

@ -1,4 +1,4 @@
{% include 'patterns/common_text.jinja' %} {% include 'patterns/default/common_tranformation_instructions.jinja' %}
Please clean-up the following text, fixing the paragraphs, ponctuation, etc. Please clean-up the following text, fixing the paragraphs, ponctuation, etc.
If you find any word or name mispellings, feel free to correct. If you find any word or name mispellings, feel free to correct.

View file

@ -0,0 +1,9 @@
{% include 'patterns/default/common_tranformation_instructions.jinja' %}
{{command}}
# INPUT
{{input_text}}
# OUTPUT

View file

@ -1,9 +0,0 @@
{% include 'patterns/common_text.jinja' %}
{{command}}
# INPUT
{{input_text}}
# OUTPUT

View file

@ -1,5 +1,5 @@
{% include 'patterns/common_text.jinja' %} {% include 'patterns/default/common_tranformation_instructions.jinja' %}
# IDENTITY and PURPOSE # IDENTITY and PURPOSE

View file

@ -1,4 +1,4 @@
{% include 'patterns/common_text.jinja' %} {% include 'patterns/default/common_tranformation_instructions.jinja' %}
# MISSION # MISSION
You are a Sparse Priming Representation (SPR) writer. An SPR is a particular kind of use of language for advanced NLP, NLU, and NLG tasks, particularly useful for the latest generation of Large Language Models (LLMs). You will be given information by the USER which you are to render as an SPR. You are a Sparse Priming Representation (SPR) writer. An SPR is a particular kind of use of language for advanced NLP, NLU, and NLG tasks, particularly useful for the latest generation of Large Language Models (LLMs). You will be given information by the USER which you are to render as an SPR.

View file

@ -1,5 +1,4 @@
{% include 'patterns/default/common_tranformation_instructions.jinja' %}
{% include 'patterns/common_text.jinja' %}
# IDENTITY and PURPOSE # IDENTITY and PURPOSE

View file

@ -1,4 +1,4 @@
{% include 'patterns/common_text.jinja' %} {% include 'patterns/default/common_tranformation_instructions.jinja' %}
# SYSTEM ROLE # SYSTEM ROLE
You are a content summarization assistant that creates dense, information-rich summaries optimized for machine understanding. Your summaries should capture key concepts with minimal words while maintaining complete, clear sentences. You are a content summarization assistant that creates dense, information-rich summaries optimized for machine understanding. Your summaries should capture key concepts with minimal words while maintaining complete, clear sentences.

View file

@ -4,32 +4,32 @@ source_insights:
insight_type: "Content Summary" insight_type: "Content Summary"
description: "Summarize the content" description: "Summarize the content"
transformations: transformations:
- patterns/makeitdense - patterns/default/makeitdense
- patterns/summarize - patterns/default/summarize
- name: "Key Insights" - name: "Key Insights"
insight_type: "Key Insights" insight_type: "Key Insights"
description: "Extracts a list of the Key Insights of the content" description: "Extracts a list of the Key Insights of the content"
transformations: transformations:
- patterns/keyinsights - patterns/default/keyinsights
- name: "Make it Dense" - name: "Make it Dense"
insight_type: "Dense Representation" insight_type: "Dense Representation"
description: "Create a dense representation of the content" description: "Create a dense representation of the content"
transformations: transformations:
- patterns/makeitdense - patterns/default/makeitdense
- name: "Analyze Paper" - name: "Analyze Paper"
insight_type: "Paper Analysis" insight_type: "Paper Analysis"
description: "Analyze the paper and provide a quick summary" description: "Analyze the paper and provide a quick summary"
transformations: transformations:
- patterns/analyze_paper - patterns/default/analyze_paper
- name: "Reflection" - name: "Reflection"
insight_type: "Reflection Questions" insight_type: "Reflection Questions"
description: "Generates a list of insightful questions to provoke reflection" description: "Generates a list of insightful questions to provoke reflection"
transformations: transformations:
- patterns/reflection_questions - patterns/default/reflection_questions
# - name: "Reflection [PT]" # - name: "Reflection [PT]"
# insight_type: "Reflection Questions [PT]" # insight_type: "Reflection Questions [PT]"
# description: "Generates a list of insightful questions to provoke reflection" # description: "Generates a list of insightful questions to provoke reflection"
# transformations: # transformations:
# - patterns/reflection_questions # - patterns/default/reflection_questions
# - patterns/translate # - patterns/default/translate