Resolve comments
This commit is contained in:
@@ -165,7 +165,6 @@ class CrosswalkBuilder:
|
||||
else:
|
||||
reverse_dict[target] = [str(source)]
|
||||
|
||||
# Then join the lists with commas
|
||||
return {target: sources for target, sources in reverse_dict.items()}
|
||||
|
||||
def map_value(self, key_value):
|
||||
|
||||
@@ -4,10 +4,7 @@ import src.config as config
|
||||
import src.prompts.prompt_templates as prompt_templates
|
||||
from src.constants.constants import Constants
|
||||
from src.prompts.fieldset import Field, FieldSet
|
||||
from src.utils import llm_utils, string_utils, timing_utils, rag_utils
|
||||
from src.pipelines.shared.preprocessing.hybrid_smart_chunking_funcs import (
|
||||
format_chunks_for_llm,
|
||||
)
|
||||
from src.utils import llm_utils, string_utils
|
||||
import json
|
||||
|
||||
|
||||
@@ -317,7 +314,7 @@ def prompt_special_case_breakout(breakout_template, term_answer, filename):
|
||||
logging.warning(
|
||||
f"Expected prompt string, got {type(prompt)} in prompt_special_case_breakout; coercing to str."
|
||||
)
|
||||
prompt, _parser = str(prompt)
|
||||
prompt = str(prompt)
|
||||
|
||||
# Look for a corresponding _INSTRUCTION() function for caching
|
||||
template_name = getattr(breakout_template, "__name__", "SPECIAL_CASE_BREAKOUT")
|
||||
|
||||
@@ -4,10 +4,7 @@ import src.config as config
|
||||
import src.prompts.prompt_templates as prompt_templates
|
||||
from src.constants.constants import Constants
|
||||
from src.prompts.fieldset import Field, FieldSet
|
||||
from src.utils import llm_utils, string_utils, timing_utils, rag_utils
|
||||
from src.pipelines.shared.preprocessing.hybrid_smart_chunking_funcs import (
|
||||
format_chunks_for_llm,
|
||||
)
|
||||
from src.utils import llm_utils, string_utils
|
||||
import json
|
||||
|
||||
|
||||
@@ -324,7 +321,7 @@ def prompt_special_case_breakout(breakout_template, term_answer, filename):
|
||||
logging.warning(
|
||||
f"Expected prompt string, got {type(prompt)} in prompt_special_case_breakout; coercing to str."
|
||||
)
|
||||
prompt, _parser = str(prompt)
|
||||
prompt = str(prompt)
|
||||
|
||||
# Look for a corresponding _INSTRUCTION() function for caching
|
||||
template_name = getattr(breakout_template, "__name__", "SPECIAL_CASE_BREAKOUT")
|
||||
|
||||
Reference in New Issue
Block a user