Skip to content
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

feat: Add deep research use case (Python) #482

Merged
merged 27 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fix typing and improve prompt
leehuwuj committed Jan 20, 2025
commit d5eac5d85596e808a8c6b18cb86851728afbf98b
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ async def plan_research(

async def research(
question: str,
context_nodes: List[Node],
context_nodes: List[NodeWithScore],
) -> str:
prompt = """
You are a researcher who are inprogress of answering the question.
@@ -113,8 +113,7 @@ async def write_report(
The report should be a great outline of the research and cover all the important points of the researched perspective.
+ Have a great outline for a research report. The outline should cover the researched perspective.
+ Represent in markdown format. If possible, use tables or figures to have better presentation.
+ The citation has been customized as a new format, don't update the citation index/id; just keep it as it is.
At the result, you don't need to write a Reference section.
+ Never remove citation information (the [citation:id]() part in the provided context). You should keep it in the final report.
<User request>
{user_request}
</User request>