Welcome to our collection of example notebooks showcasing the power of Contextual's AI platform! 🚀
This repository contains practical examples and demonstrations of how to interact with Contextual's API, helping you get started quickly and efficiently. You can run these examples in any jupyter notebook but an easy way to get started is Colab notebooks:
- End to End Example - Complete example of the Contextual Platform
- Hands on Lab - Lab broken into three chapters: Creating Agent & Datastores, Evaluation, and Tuning
- Standalone API - Examples of using individual API endpoints like
/generate
,/rerank
,/parse
, and/lmunit
- Contextual AI MCP Server
- Policy Changes - Tracking changes in long policy documents
- Improving Agent Performance - Settings for improving or specializing your RAG agent
- Retrieval Analysis - End-to-end evaluation of RAG retrieval
- Structured Data Extraction - Extraction from unstructured legal documents
- Monitoring RAG - Using Metrics API to monitor your RAG agent
- Metadata Introduction - Working with metadata in your RAG Agent
- CrewAI Multi-Agent Workflow - Using CrewAI in a MultiAgent workflow
- RAGAS Evaluation - Using RAGAS for RAG agent evaluation
- Google Sheets Script - Automating form filling using Contextual AI's API
- Full Stack Deep Research with Gemini, Contextual AI, and LangGraph
- Deep Research Agent using Agno, Contextual AI, Tavily, and Langfuse
- Using Dify.AI with Contextual AI
- Reranker v2 Benchmarks - Performance evaluation of the reranker
- LMUnit Evaluation for RewardBench - Using LMUnit for evaluating RewardBench
- FACTS Benchmark - Benchmark for evaluating grounding in LLMs
- RAG QA Arena - End-to-end RAG benchmark
- 📥 Clone this repository
git clone https://github.com/ContextualAI/examples
- 🔑 Set up your API credentials in the respective notebook
API_TOKEN = '...' # Replace with your actual API token
- 📦 Install required dependencies
pip install -r requirements.txt
- 🎮 Run the example notebook
- Python 3.7+
- Jupyter Notebook/Lab
- Contextual API credentials
- Required Python packages (listed in
requirements.txt
)
We welcome contributions! Feel free to:
- 🐛 Report bugs
- ✨ Request features
- 🔀 Submit pull requests
Need help?
- 📧 Contact our support team [email protected]
- 💬 Join our community discussions
- 📖 Check out our documentation
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the Contextual team