Get up and running with the SynthoraAI Agentic AI Pipeline in 5 minutes!
- Python 3.11 or later
- Google AI API key (Get one here)
- MongoDB (optional for local testing)
cd agentic_aipip install -r requirements.txtcp .env.example .envEdit .env and add your Google AI API key:
GOOGLE_AI_API_KEY=your_google_ai_api_key_here
MONGODB_URI=mongodb://localhost:27017/synthoraaipython examples/basic_usage.pyThis will process a sample article and display all the results.
Create a file test.py:
import asyncio
from agentic_ai import AgenticPipeline
async def main():
pipeline = AgenticPipeline()
result = await pipeline.process_article({
"id": "test-1",
"content": "Your article content here...",
"url": "https://example.com/article",
"source": "test"
})
print(f"Summary: {result['summary']}")
print(f"Topics: {result['topics']}")
print(f"Sentiment: {result['sentiment_label']}")
asyncio.run(main())Run it:
python test.pyStart the server:
python -m agentic_ai.mcp_server.serverOr with uvicorn:
uvicorn agentic_ai.mcp_server.server:app --reloadTest with curl:
curl -X POST http://localhost:8000/process \
-H "Content-Type: application/json" \
-d '{
"id": "test-1",
"url": "https://example.com",
"content": "Article content...",
"source": "test"
}'docker-compose up -dThis starts:
- Pipeline server on port 8000
- MongoDB on port 27017
- Redis on port 6379
- Prometheus on port 9090
Test the API:
curl http://localhost:8000/health- Read the full documentation
- Check out examples
- Deploy to AWS or Azure
- Run tests
Issue: ImportError for langchain or langgraph
Solution: Make sure you installed all dependencies:
pip install -r requirements.txtIssue: Google AI API errors
Solution: Verify your API key is correct and has quota:
echo $GOOGLE_AI_API_KEYIssue: MongoDB connection errors
Solution: Make sure MongoDB is running:
# Start MongoDB locally
mongod --dbpath /path/to/dbOr use MongoDB Atlas (cloud):
MONGODB_URI=mongodb+srv://user:pass@cluster.mongodb.net/synthoraai- GitHub Issues: https://github.com/hoangsonww/AI-Gov-Content-Curator/issues
- Email: hoangson091104@gmail.com
- Documentation: README.md