v0.1.2
assafelovic/gpt-researcherv0.1.2Jan 4, 2024by assafelovic
AI Summary
Introduces the ability to generate research reports directly from specific URLs, skipping the search phase, alongside general stability improvements.
Key Highlights
- Research reports on specific URLs
- Skip search phase by providing source URLs
- Stability and performance improvements
- Updated library dependencies
New Features
- Direct URL research
- Source URL input parameter
Full Release Notes
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.