New features and stability 🎉
Excited to kick off the new year with a long awaited feature: Research report on specific urls! 🎉
You can now skip the search by providing urls directly to GPTResearcher and create a research report like so:
urls = ["https://docs.tavily.com/docs/tavily-api/introduction",
"https://docs.tavily.com/docs/tavily-api/python-sdk",
"https://docs.tavily.com/docs/tavily-api/rest_api"]
query = "How can I integrate Tavily Rest API with my application?"
async def get_report(query: str, source_urls: list) -> str:
researcher = GPTResearcher(query=query, source_urls=source_urls)
report = await researcher.run()
return report
report = asyncio.run(get_report(query, urls))
print(report)
The release includes additional stability and performance improvements, along with updated library dependencies.