Skip to content

sửa câu prompt #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/src/agent/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def web_research(state: WebSearchState, config: RunnableConfig) -> OverallState:
)

# Uses the google genai client as the langchain client doesn't return grounding metadata
print("---PROMPT---")
print(formatted_prompt)
response = genai_client.models.generate_content(
model=configurable.query_generator_model,
contents=formatted_prompt,
Expand All @@ -120,6 +122,8 @@ def web_research(state: WebSearchState, config: RunnableConfig) -> OverallState:
"temperature": 0,
},
)
print("---RESPONSE---")
print(response)
# resolve the urls to short urls for saving tokens and time
resolved_urls = resolve_urls(
response.candidates[0].grounding_metadata.grounding_chunks, state["id"]
Expand Down
Loading