Skip to content

Commit c46fd34

Browse files
committed
.
1 parent 305d93a commit c46fd34

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

backend/onyx/agents/agent_search/dr/sub_agents/internet_search/dr_is_2_search.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ def web_search(
6767
graph_config = cast(GraphConfig, config["metadata"]["config"])
6868
base_question = graph_config.inputs.prompt_builder.raw_user_query
6969

70-
logger.debug(
71-
f"Search start for Internet Search {iteration_nr}.{parallelization_nr} at {datetime.now()}"
72-
)
73-
7470
if graph_config.inputs.persona is None:
7571
raise ValueError("persona is not set")
7672

backend/onyx/agents/agent_search/dr/sub_agents/internet_search/dr_is_3_fetch.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ def web_fetch(
121121
base_question = graph_config.inputs.prompt_builder.raw_user_query
122122
research_type = graph_config.behavior.research_type
123123

124-
logger.debug(
125-
f"Web Fetch for Internet Search {iteration_nr}.{parallelization_nr} at {datetime.now()}"
126-
)
127-
128124
if graph_config.inputs.persona is None:
129125
raise ValueError("persona is not set")
130126

@@ -155,19 +151,13 @@ def web_fetch(
155151

156152
document_texts = "\n\n".join(document_texts_list)
157153

158-
logger.debug(
159-
f"Fetch end/LLM start for Internet Search {iteration_nr}.{parallelization_nr} at {datetime.now()}"
160-
)
161-
162-
# Process with LLM based on research type
163154
if research_type == ResearchType.DEEP:
164155
search_prompt = INTERNAL_SEARCH_PROMPTS[research_type].build(
165156
search_query=state.branch_question or "",
166157
base_question=base_question,
167158
document_text=document_texts,
168159
)
169160

170-
# Run LLM
171161
search_answer_json = invoke_llm_json(
172162
llm=graph_config.tooling.primary_llm,
173163
prompt=create_question_prompt(
@@ -177,11 +167,6 @@ def web_fetch(
177167
timeout_override=40,
178168
)
179169

180-
logger.debug(
181-
f"LLM/all done for Internet Search {iteration_nr}.{parallelization_nr} at {datetime.now()}"
182-
)
183-
184-
# Get cited documents
185170
answer_string = search_answer_json.answer
186171
claims = search_answer_json.claims or []
187172
reasoning = search_answer_json.reasoning or ""

0 commit comments

Comments
 (0)