mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-28 21:01:55 +08:00
Changed prompts import from helpers to prompts
This commit is contained in:
parent
3b5b24d6f8
commit
9fa3df2390
@ -10,7 +10,7 @@ from langchain_core.runnables import RunnableParallel
|
||||
from tqdm import tqdm
|
||||
from ..utils.logging import get_logger
|
||||
from .base_node import BaseNode
|
||||
from ..helpers.generate_answer_node_csv_prompts import template_chunks_csv, template_no_chunks_csv, template_merge_csv
|
||||
from ..prompts.generate_answer_node_csv_prompts import template_chunks_csv, template_no_chunks_csv, template_merge_csv
|
||||
|
||||
|
||||
class GenerateAnswerCSVNode(BaseNode):
|
||||
|
||||
@ -10,7 +10,7 @@ from langchain_community.chat_models import ChatOllama
|
||||
from tqdm import tqdm
|
||||
from ..utils.logging import get_logger
|
||||
from .base_node import BaseNode
|
||||
from ..helpers import template_chunks, template_no_chunks, template_merge, template_chunks_md, template_no_chunks_md, template_merge_md
|
||||
from ..prompts import template_chunks, template_no_chunks, template_merge, template_chunks_md, template_no_chunks_md, template_merge_md
|
||||
|
||||
class GenerateAnswerNode(BaseNode):
|
||||
"""
|
||||
|
||||
@ -13,7 +13,7 @@ from tqdm import tqdm
|
||||
from langchain_community.chat_models import ChatOllama
|
||||
# Imports from the library
|
||||
from .base_node import BaseNode
|
||||
from ..helpers.generate_answer_node_omni_prompts import template_no_chunk_omni, template_chunks_omni, template_merge_omni
|
||||
from ..prompts.generate_answer_node_omni_prompts import template_no_chunk_omni, template_chunks_omni, template_merge_omni
|
||||
|
||||
|
||||
class GenerateAnswerOmniNode(BaseNode):
|
||||
|
||||
@ -10,7 +10,7 @@ from tqdm import tqdm
|
||||
from langchain_community.chat_models import ChatOllama
|
||||
from ..utils.logging import get_logger
|
||||
from .base_node import BaseNode
|
||||
from ..helpers.generate_answer_node_pdf_prompts import template_chunks_pdf, template_no_chunks_pdf, template_merge_pdf
|
||||
from ..prompts.generate_answer_node_pdf_prompts import template_chunks_pdf, template_no_chunks_pdf, template_merge_pdf
|
||||
|
||||
|
||||
class GenerateAnswerPDFNode(BaseNode):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user