Skip to content

New features and stability 🎉

Compare
Choose a tag to compare
@assafelovic assafelovic released this 04 Jan 12:05
· 1595 commits to master since this release
f783dee

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.