Skip to content

Commit 28367f5

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents d68145e + a4e9e8d commit 28367f5

File tree

15 files changed

+1021
-317
lines changed

15 files changed

+1021
-317
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Cookbook Project Contribution
2+
3+
## Project Overview
4+
<!-- Provide a concise description of what your project does and the problem it solves -->
5+
6+
## API Integration
7+
<!-- Describe how your project uses the Perplexity API, including which models and features are leveraged -->
8+
9+
## Impact & Value
10+
<!-- Explain why this project is valuable to the developer community and how it showcases the API's capabilities -->
11+
12+
## Technical Implementation
13+
<!-- Briefly describe the technical approach and any notable implementation details -->
14+
15+
## Setup & Dependencies
16+
<!-- List any dependencies, environment requirements, or setup steps needed -->
17+
18+
## Screenshots/Demo
19+
<!-- If applicable, include screenshots, demo links, or example outputs -->
20+
21+
## Checklist
22+
<!-- Mark the following with an 'x' like [x] -->
23+
24+
- [ ] Project is fully functional with no major bugs
25+
- [ ] Code includes proper error handling
26+
- [ ] Documentation is complete (README, code comments, etc.)
27+
- [ ] All credentials/API keys have been removed
28+
- [ ] Code follows best practices for the language/framework used
29+
- [ ] Project demonstrates a unique or valuable use case
30+
31+
## Additional Notes
32+
<!-- Any other information that might be helpful for reviewers -->

CONTRIBUTING.md

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# Contribution Guidelines for API Cookbook Repository
2+
3+
Thank you for your interest in contributing to our API Cookbook repository! We're looking for high-quality, impactful projects that showcase the capabilities of our API and provide genuine value to developers.
4+
5+
## Project Quality Standards
6+
7+
We prioritize quality over quantity in all contributions. Here's what we look for:
8+
9+
### Technical Requirements
10+
11+
- **Functional Completeness**: Your project should be fully functional, free of bugs, and include proper error handling.
12+
- **Code Quality**: Code should be clean, well-formatted, well-documented, and follow standard best practices for the language/framework used.
13+
- **Documentation**: Include comprehensive README with:
14+
- Clear description of what the project does
15+
- Installation/setup instructions
16+
- Usage examples
17+
- Explanation of how the API is leveraged
18+
- Any limitations or considerations
19+
- **Maintainability**: Code should be structured to be easily maintained and extended.
20+
21+
### Impact Criteria
22+
23+
We're especially interested in projects that demonstrate one or more of the following:
24+
25+
1. **Solves Real Problems**: Addresses actual use cases that developers might encounter
26+
2. **Educational Value**: Teaches important concepts about API usage or implementation patterns
27+
3. **Novel Applications**: Shows innovative or unexpected ways to leverage the API
28+
4. **Vertical-Specific Solutions**: Demonstrates the API's utility in specific industries or domains
29+
5. **Integration Examples**: Shows how to effectively combine our API with other tools or services
30+
31+
## Submission Process
32+
33+
1. **Fork the Repository**: Create your own fork of the cookbook repository
34+
2. **Create a New Directory**: Name it descriptively after your project
35+
3. **Implement Your Project**: Follow the quality guidelines above
36+
4. **Test Thoroughly**: Ensure everything works as expected
37+
5. **Update the README**: Add your project to the README for visibility.
38+
5. **Submit a Pull Request**: Include a detailed description of your project and what makes it valuable
39+
40+
## Review Criteria
41+
42+
When reviewing submissions, we evaluate based on:
43+
44+
- **Functionality**: Does it work as described?
45+
- **Code Quality**: Is the implementation well-crafted?
46+
- **Originality**: Does it add something new to the cookbook?
47+
- **Usefulness**: Would other developers find this helpful?
48+
- **Documentation**: Is it well-explained and easy to follow?
49+
50+
## Examples of High-Impact Projects
51+
52+
- A specialized search application focused on a particular domain (e.g., legal research, academic papers)
53+
- A browser extension that enhances productivity or learning
54+
- An automated workflow tool that solves a specific business problem
55+
- An integration with popular platforms or productivity tools
56+
- An innovative data visualization of API results
57+
- A tool addressing a specific industry challenge
58+
59+
## What to Avoid
60+
61+
- Projects with minimal functionality beyond basic API calls
62+
- Poorly documented implementations
63+
- Projects that essentially duplicate existing cookbook examples
64+
- Code with security issues or significant bugs
65+
- Projects focused on prohibited use cases
66+
67+
Thank you for helping us build a valuable resource for our developer community! We look forward to seeing your innovative applications of our API.
68+
69+
## Pull Request Process
70+
71+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
72+
build.
73+
2. Update the README.md with details of changes to the interface, this includes new environment
74+
variables, exposed ports, useful file locations and container parameters.
75+
3. Increase the version numbers in any examples files and the README.md to the new version that this
76+
Pull Request would represent.
77+
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
78+
do not have permission to do that, you may request the second reviewer to merge it for you.
79+
80+
## Code of Conduct
81+
82+
### Our Pledge
83+
84+
In the interest of fostering an open and welcoming environment, we as
85+
contributors and maintainers pledge to making participation in our project and
86+
our community a harassment-free experience for everyone, regardless of age, body
87+
size, disability, ethnicity, gender identity and expression, level of experience,
88+
nationality, personal appearance, race, religion, or sexual identity and
89+
orientation.
90+
91+
### Our Standards
92+
93+
Examples of behavior that contributes to creating a positive environment
94+
include:
95+
96+
* Using welcoming and inclusive language
97+
* Being respectful of differing viewpoints and experiences
98+
* Gracefully accepting constructive criticism
99+
* Focusing on what is best for the community
100+
* Showing empathy towards other community members
101+
102+
Examples of unacceptable behavior by participants include:
103+
104+
* The use of sexualized language or imagery and unwelcome sexual attention or
105+
advances
106+
* Trolling, insulting/derogatory comments, and personal or political attacks
107+
* Public or private harassment
108+
* Publishing others' private information, such as a physical or electronic
109+
address, without explicit permission
110+
* Other conduct which could reasonably be considered inappropriate in a
111+
professional setting
112+
113+
### Our Responsibilities
114+
115+
Project maintainers are responsible for clarifying the standards of acceptable
116+
behavior and are expected to take appropriate and fair corrective action in
117+
response to any instances of unacceptable behavior.
118+
119+
Project maintainers have the right and responsibility to remove, edit, or
120+
reject comments, commits, code, wiki edits, issues, and other contributions
121+
that are not aligned to this Code of Conduct, or to ban temporarily or
122+
permanently any contributor for other behaviors that they deem inappropriate,
123+
threatening, offensive, or harmful.
124+
125+
### Scope
126+
127+
This Code of Conduct applies both within project spaces and in public spaces
128+
when an individual is representing the project or its community. Examples of
129+
representing a project or community include using an official project e-mail
130+
address, posting via an official social media account, or acting as an appointed
131+
representative at an online or offline event. Representation of a project may be
132+
further defined and clarified by project maintainers.
133+
134+
### Enforcement
135+
136+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
137+
reported by contacting the project team at [[email protected]]. All
138+
complaints will be reviewed and investigated and will result in a response that
139+
is deemed necessary and appropriate to the circumstances. The project team is
140+
obligated to maintain confidentiality with regard to the reporter of an incident.
141+
Further details of specific enforcement policies may be posted separately.
142+
143+
Project maintainers who do not follow or enforce the Code of Conduct in good
144+
faith may face temporary or permanent repercussions as determined by other
145+
members of the project's leadership.
146+
147+
### Attribution
148+
149+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
150+
available at [http://contributor-covenant.org/version/1/4][version]
151+
152+
[homepage]: http://contributor-covenant.org
153+
[version]: http://contributor-covenant.org/version/1/4/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 perplexity
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
11
# Sonar API Projects
22

3+
![SONAR](assets/perplexity-sonar.png)
4+
35
A collection of practical applications and tools built with [Perplexity's Sonar API](https://sonar.perplexity.ai/), the fastest, most cost-effective AI answer engine with robust search capabilities.
46

5-
## ⚠️ API Key Required
7+
## Contributing
68

7-
**Before you begin:** You'll need a Perplexity API key to use any project in this repository.
9+
Contributions to this repository are welcome! Whether you want to:
810

9-
Sign up for an API key by following the steps in the [Perplexity documentation](https://docs.perplexity.ai/guides/getting-started).
11+
- Fix bugs in existing projects
12+
- Add new features to current tools
13+
- Contribute entirely new Sonar API projects
14+
- Improve documentation or examples
1015

11-
## About This Repository
16+
Please check the [CONTRIBUTING.md](./CONTRIBUTING.md) file for guidelines.
1217

13-
This repository contains various projects that demonstrate how to leverage Perplexity's Sonar API for different use cases. Each project is designed to showcase the API's capabilities while providing practical, ready-to-use tools for developers.
1418

1519
## Projects
1620

17-
### Fact Checker CLI
18-
19-
The flagship project in this collection is a command-line tool that analyzes claims or articles for factual accuracy. Using Sonar API's powerful search capabilities, it identifies false or misleading statements, provides corrections, and cites reliable sources.
20-
21-
[Read more about the Fact Checker CLI →](./fact-checker/README.md)
22-
23-
### Coming Soon
24-
25-
We're actively working on adding more projects to this collection:
26-
27-
- **Research Assistant**: Automated literature review and summarization tool
28-
- **News Analyzer**: Track developing stories and analyze reporting biases
29-
- **Content Verifier**: Browser extension for real-time fact checking
30-
- **Data Explorer**: Query and visualize complex datasets through natural language
31-
32-
## Why Sonar API?
21+
**[Fact Checker CLI](sonar-use-cases/fact_checker_cli/)** - A command-line tool that analyzes claims or articles for factual accuracy using Sonar API's search capabilities.
3322

34-
Perplexity's Sonar API offers several advantages that make it ideal for building powerful AI applications:
23+
**[Daily Knowledge Bot](sonar-use-cases/daily_knowledge_bot/)** - Python application that delivers interesting facts about rotating topics using the Perplexity AI API.
3524

36-
- **Fast & Cost-Effective**: Get reliable answers at a fraction of the cost of other AI APIs
37-
- **Search Grounding**: Internet-connected models that can access and cite the latest information
38-
- **Easy Integration**: Simple, straightforward API that developers can integrate in minutes
39-
- **Scalable Pricing**: Pay-as-you-go model that scales with your usage
25+
**[Disease Information App](sonar-use-cases/daily_knowledge_bot/)** - Interactive browser-based application providing structured information about diseases using the Sonar API.
4026

4127
## Getting Started
4228

@@ -47,30 +33,8 @@ To use any of the projects in this repository, you'll need:
4733

4834
Each project includes its own README with specific installation and usage instructions.
4935

50-
## API Access
51-
52-
You can sign up for Perplexity's Sonar API at [sonar.perplexity.ai](https://sonar.perplexity.ai/).
53-
54-
The API offers:
55-
- Free tier to get started
56-
- Straightforward documentation
57-
- Transparent usage-based pricing
58-
59-
## Contributing
60-
61-
Contributions to this repository are welcome! Whether you want to:
62-
63-
- Fix bugs in existing projects
64-
- Add new features to current tools
65-
- Contribute entirely new Sonar API projects
66-
- Improve documentation or examples
67-
68-
Please check the [CONTRIBUTING.md](./CONTRIBUTING.md) file for guidelines.
6936

7037
## License
7138

7239
Unless otherwise specified, all projects in this repository are licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
7340

74-
---
75-
76-
*Build with the best AI answer engine. Power your products with the fastest, cheapest API offering out there with search grounding. Get started in minutes.*

assets/perplexity-sonar.png

80.1 KB
Loading

0 commit comments

Comments
 (0)