- ReAct Pattern: Reasoning + Acting loop with full transparency
- 5 Specialized Agents: Research, Document, Trend, Project, and Scheduler agents
- Tool Registry: Search, document generation, trend analysis, project scaffolding, and more
- Memory Systems: 4-layer memory (buffer, summary, vector, entity)
- pgvector Integration: Semantic search with PostgreSQL
- Document Loaders: PDF, web, GitHub, and more
- Source Citation: Full reference tracking for all generated content
- Text Splitting: Smart chunking with 200-character overlap
- arXiv Integration: Academic paper search and analysis
- GitHub API: Real-time repository trend data
- Google Trends: Technology adoption tracking
- Hacker News & Medium: News and article aggregation
- PDF Reports: ReportLab-based with tables, charts, images
- PowerPoint Presentations: Multiple layout support
- Word Documents: Professional formatting with TOC
- Markdown Generation: Documentation and guides
- Django REST API: Complete backend templates
- FastAPI Microservices: Modern async setup
- Next.js & React: Frontend applications
- Data Science Projects: Jupyter notebook templates
- Tool Validation: Input schema checks
- Rate Limiting: Per-user request limits
- Cost Tracking: Token and budget management
- Output Sanitization: Redaction of sensitive data
| Layer | Technologies |
|---|---|
| Backend | Django REST Framework, PostgreSQL, pgvector |
| AI/ML | LangChain, OpenAI GPT-3.5/4, tiktoken |
| Vector Store | pgvector (PostgreSQL extension) |
| Task Queue | Celery |
| Frontend | Next.js, React, Tailwind CSS |
| Document Gen | ReportLab, python-pptx, python-docx |
| Testing | pytest |
| CI/CD | GitHub Actions |
- Python 3.9+
- PostgreSQL 15+ with pgvector
- Node.js 18+ (for frontend)
# Clone the repository
git clone https://github.com/Hayredin950/SYNAPSE.git
cd SYNAPSE
# Set up backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Set up PostgreSQL
# Make sure pgvector extension is installed
# Update DATABASE_URL in .env
# Run migrations
python manage.py migrate
# Start the backend
python manage.py runserver
# Set up frontend (in new terminal)
cd frontend
npm install
npm run devCreate a .env file:
# OpenAI
OPENAI_API_KEY=your_openai_api_key
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/synapse
# API Keys
GITHUB_API_KEY=your_github_api_key
GOOGLE_API_KEY=your_google_api_key
# Celery
CELERY_BROKER_URL=redis://localhost:6379/0SYNAPSE/
βββ ai_engine/ # AI and agent systems
β βββ agents/ # Research, document, trend agents
β βββ embeddings/ # Embedding generation
β βββ middleware/ # Safety, rate limiting, moderation
β βββ nlp/ # NLP processing pipelines
β βββ rag/ # RAG and vector store logic
βββ backend/ # Django backend
β βββ apps/ # Core, articles, agents, automation, billing, documents
β βββ ...
βββ frontend/ # Next.js frontend
β βββ src/
β βββ ...
βββ scraper/ # Web scrapers for data collection
β βββ spiders/ # arXiv, GitHub, HackerNews, Twitter, YouTube
β βββ ...
βββ docs/ # Project documentation
β βββ ...
βββ tests/ # Test suite
βββ ...
from ai_engine.agents.research_agent import ResearchAgent
agent = ResearchAgent()
result = agent.execute({
"task": "Analyze the current state of AI agent frameworks",
"user_id": "user_123"
})
print(result["final_answer"])from ai_engine.rag.pipeline import RAGPipeline
pipeline = RAGPipeline()
result = pipeline.query("What are the best practices for LLM safety?")
print(f"Answer: {result['answer']}")
print("\nSources:")
for source in result['sources']:
print(f" {source['source']}: {source['excerpt']}")βββββββββββββββ βββββββββββββββββ βββββββββββββββββ
β Frontend β β Backend API β β PostgreSQL β
β (Next.js) ββββββ (Django) ββββββ (with pgvector)β
βββββββββββββββ βββββββββββββββββ βββββββββββββββββ
β
βΌ
βββββββββββββββββ
β AI Engine β
β (LangChain) β
βββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββ ββββββββββββ ββββββββββββ
β Research β β Document β β Trend β
β Agent β β Agent β β Agent β
ββββββββββββ ββββββββββββ ββββββββββββ
- DOCUMENTATION_SUMMARY.md: Complete AI agent and RAG documentation
- WHATS_NEW.md: Release notes and change history
- DEPLOYMENT.md: Production deployment guide
- TASKS.md: Project task list and milestones
- Production-Grade: FAANG-level architecture and code quality
- Full-Stack: Complete backend + frontend implementation
- AI-First: Built around LangChain and OpenAI
- Open-Source: MIT licensed, community-driven
- Well-Documented: Comprehensive technical and user guides
MIT Β© Hayredin950
- GitHub: Hayredin950
- Profile: hayredin.vercel.app
Made with β€οΈ by Hayredin950
