All of Valyu AI's code examples, snippets, and integrations in one place.
tldr: We needed a place to share small code snippets as gists but Github does not allow Org level gists, so this repository serves as our gist collection.
Valyu AI provides a unified search API that enables AI agents to access information from multiple high-quality sources:
- Real-time web search for current internet information
- Proprietary content including specialized papers and books
- Financial data with stock prices and market metrics
- Academic resources spanning millions of scholarly papers
- Medical literature including peer-reviewed studies
- Intelligent reranking to surface the most relevant results
Learn more at docs.valyu.ai
Sign up at Valyu AI to receive your API key. New users get $10 in free credits.
Browse the examples below and navigate to the folder that matches your use case.
Each example folder contains its own README with specific setup and usage instructions.
π Event Monitoring
Monitor news and events in real-time using Valyu's search API.
Features:
- Configurable search queries and domains
- Scheduled monitoring at custom intervals
- Relevance filtering and result limits
- Continuous logging to file and console
Use Cases:
- Track breaking news from specific sources
- Monitor industry developments
- Set up alerts for specific topics
Language: Python
Each example is contained in its own folder with:
example-name/
βββ README.md # Setup and usage instructions
βββ example-code.py # Main example code
βββ requirements.txt # Dependencies (if applicable)
Have a useful Valyu AI integration or example? We'd love to include it!
Guidelines:
- Create a new folder with a descriptive name
- Include a README.md with setup instructions
- Add clear comments in your code
- Keep examples focused on a single use case
- Test your example before submitting
- Documentation: docs.valyu.ai
- API Reference: docs.valyu.ai/api
- Website: valyu.ai
- Support: Contact us through the Valyu AI platform, email or discord.
Valyu AI integrates seamlessly with popular AI frameworks:
- LangChain
- LlamaIndex
- Vercel AI SDK
- OpenAI
- Anthropic Claude
- Model Context Protocol (MCP)
Check our documentation for integration guides.
Valyu AI uses transparent CPM (cost per thousand retrievals) pricing. You only pay for what you use - no subscriptions required.
Built with β€οΈ by the Valyu AI team