SuperSearch
SuperSearch is a powerful and versatile Python package designed to facilitate advanced search and data extraction capabilities. By leveraging the GPT-4 AI model and integrating with Google search and web scraping techniques, SuperSearch offers an efficient and convenient way to obtain information on various topics.
Features
- Query GPT-4 AI model for intelligent and relevant answers
- Google search integration for real-time information retrieval
- Web scraping capabilities for data extraction and analysis
- Summarization of lengthy content
- JSON-based communication for easy integration with other applications
- Easy-to-use interface for quick and accurate responses to complex queries
Installation
To install SuperSearch, simply run:
pip install super_search_gpt
Example Usage 1
Here's a quick example of how to use SuperSearch:
from super_search import SuperSearch
api_key = "your_openai_api_key"
query = "What is the capital of France?"
sup = SuperSearch(api_key)
final_answer, messages = sup.get_answer(query, max_iterations=10, debug=True)
print(f"Final Answer: {final_answer}")
For more information and advanced usage, please refer to the documentation.
Example Usage 2
query =''' what is the news summary in california '''
sup = SuperSearch(gpt_api_key=api_key1,google_search_key=google_search_key1,cse_id=cse_id1,
max_iterations_per_answer=15, use_google_search_api=True,)
final_answer, messages = sup.get_answer(query, debug=True)
print(f"Final Answer: {final_answer}")
Raw answer: {"Answer": "None", "Google": "news summary in california", "Scrap": "None", "Location": 0}
Answer: {'Answer': None, 'Google': 'news summary in california', 'Scrap': None, 'Location': 0}
[{"url": "https://www.latimes.com/", "title": "Los Angeles Times: News from California, the nation and world", "description": "The L.A. Times is a leading source of breaking news, entertainment, sports, politics, and more for Southern California and the world."}, {"url": "https://www.energy.ca.gov/news/2021-03/california-releases-report-charting........
.
.
.
{'role': 'user', 'content': '{"q": " what is the news summary in california ", "Google_Reply": "None", "Scrap_Reply": "None", "Location_Reply": 0, "Error": ""}'}
Final Answer: Here are some news summaries from California sources:
1. Los Angeles Times: Provides breaking news, entertainment, sports, politics, and more for Southern California and the world (https://www.latimes.com/).
2. California Releases Report Charting Path to 100 Percent Clean Electricity: An initial analysis called for in Senate Bill 100 regarding clean energy (https://www.energy.ca.gov/news/2021-03/california-releases-report-charting-path-100-percent-clean-electricity).
3. California News from US News Best States: Provides an interactive platform for ranking the 50 U.S. states, alongside news analysis and daily reporting (https://www.usnews.com/news/california).
4. CNN: Offers the latest news and breaking news for the U.S., world, weather, entertainment, politics, and health (https://www.cnn.com/).
5. Budget News from California Community Colleges Chancellor's Office: Shares summary information related to California Community College budgets (https://www.cccco.edu/About-Us/Chancellors-Office/Divisions/College-Finance-and-Facilities-Planning/Budget-News).
6. UC Davis News, Magazine, Experts and Media Resources: Features news, research, and COVID-19 resources (https://www.ucdavis.edu/news).
7. Tax News from FTB.ca.gov: Informs tax professionals, taxpayers, and business owners about state income tax laws (https://www.ftb.ca.gov/about-ftb/newsroom/tax-news/index.html).
8. California Governor Newsroom: Shares recent news about California's governor (https://www.gov.ca.gov/newsroom/).
9. California Consumer Privacy Laws – CCPA & CPRA: Offers analysis of California's consumer privacy laws (https://pro.bloomberglaw.com/brief/california-consumer-privacy-laws-ccpa-cpra/).
License
SuperSearch is released under the MIT License.
Contributing
We welcome contributions to SuperSearch! If you're interested in contributing, feel free to submit a pull request or open an issue.
Metadata
Release files for super-search-gpt 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| super_search_gpt-0.1.4.tar.gz | 9.2 kB | Without provenance | Details for super_search_gpt-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| super_search_gpt-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for super_search_gpt-0.1.4-py3-none-any.whl |
Total release size: 17.0 kB
Release files / super_search_gpt-0.1.4.tar.gz
| Download URL | super_search_gpt-0.1.4.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af9747660b41abd3fb628cbcf6f391404e0f662069e5d745651b5b36f49ee0b2
|
|
BLAKE2b-256 checksum How to use checksums |
59028399d1bae443db7319b8da0ae432ba831d121f7a8a87f1aaf0f771378aef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / super_search_gpt-0.1.4-py3-none-any.whl
| Download URL | super_search_gpt-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e636d528bfdb08040fad628cd70993172efd43201251b893bec3f2c938d6ddf
|
|
BLAKE2b-256 checksum How to use checksums |
8a9b82aed0e701af3e8761833dc47f8daa05d2c1227d4d764840979b079838c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for super-search-gpt 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.