{"id":26045053,"url":"https://github.com/nna301023/clarus","last_synced_at":"2026-05-29T06:31:05.675Z","repository":{"id":280952735,"uuid":"943706362","full_name":"NnA301023/clarus","owner":"NnA301023","description":"Sharing Session Dibimbing X ExaBytes 2025","archived":false,"fork":false,"pushed_at":"2025-03-06T07:03:12.000Z","size":701,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T07:46:03.429Z","etag":null,"topics":["flask","generative-ai","groq"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NnA301023.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T06:14:49.000Z","updated_at":"2025-03-06T07:03:15.000Z","dependencies_parsed_at":"2025-03-06T07:46:07.608Z","dependency_job_id":"dd1b9a41-a7ab-46c3-8078-b66d1104e866","html_url":"https://github.com/NnA301023/clarus","commit_stats":null,"previous_names":["nna301023/clarus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NnA301023%2Fclarus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NnA301023%2Fclarus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NnA301023%2Fclarus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NnA301023%2Fclarus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NnA301023","download_url":"https://codeload.github.com/NnA301023/clarus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242450606,"owners_count":20130208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","generative-ai","groq"],"created_at":"2025-03-07T19:30:55.672Z","updated_at":"2026-05-29T06:31:05.665Z","avatar_url":"https://github.com/NnA301023.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🤖 Clarus (ExaBytes RAG Demo Application)\n\n![Python](https://img.shields.io/badge/python-v3.11+-blue.svg)\n![Flask](https://img.shields.io/badge/flask-v3.0.0-lightgrey.svg)\n![LangChain](https://img.shields.io/badge/langchain-v0.1.0-green.svg)\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n\nA modern web application implementing Retrieval Augmented Generation (RAG) using Flask and Tailwind CSS. Upload documents and get AI-powered answers based on their content.\n\n[Features](#features) •\n[Quick Start](#quick-start) •\n[Installation](#installation) •\n[Usage](#usage) •\n[Architecture](#architecture) •\n[Development](#development)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- 📄 **Document Processing**\n  - Support for PDF and TXT files\n  - Automatic text chunking and embedding\n  - Efficient vector storage with ChromaDB\n\n- 🔍 **Advanced RAG Implementation**\n  - Powered by Groq's Mixtral-8x7b model\n  - Sentence transformers for embeddings\n  - Context-aware question answering\n\n- 🎨 **Modern UI/UX**\n  - Clean, responsive design with Tailwind CSS\n  - Real-time loading states\n  - Toast notifications for feedback\n  - Drag-and-drop file upload\n\n## 🚀 Quick Start\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/clarus.git\ncd clarus\n\n# Create and activate virtual environment\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n\n# Install dependencies\nuv pip install -e .\n\n# Set up environment variables\ncp app/.env.example app/.env\n# Edit app/.env with your API keys\n\n# Run the application\npython main.py\n```\n\nVisit `http://localhost:5000` in your browser to start using the application.\n\n## 🛠️ Installation\n\n### Prerequisites\n\n- Python 3.11+\n- uv package manager (recommended) or pip\n- Groq API key for LLM access\n\n### Detailed Setup\n\n1. **Environment Setup**\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n2. **Install Dependencies**\n   \n   Using uv (recommended):\n   ```bash\n   uv pip install -e .\n   ```\n   \n   Using pip:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Configure Environment Variables**\n   ```bash\n   cp app/.env.example app/.env\n   ```\n   Edit `app/.env` and add:\n   ```\n   SECRET_KEY=your-secret-key\n   GROQ_API_KEY=your-groq-api-key\n   ```\n\n## 🎯 Usage\n\n1. **Upload Documents**\n   - Click the upload area or drag and drop files\n   - Supported formats: PDF, TXT\n   - Wait for the success notification\n\n2. **Ask Questions**\n   - Enter your question in the text area\n   - Click \"Get Answer\"\n   - View AI-generated response based on your documents\n\n## 🏗️ Architecture\n\n```\n.\n├── app/                  # Application package\n│   ├── templates/       # HTML templates\n│   ├── static/         # Static files\n│   ├── utils/          # Utility modules\n│   │   └── rag.py     # RAG implementation\n│   └── routes.py       # Flask routes\n├── main.py             # Application entry point\n├── pyproject.toml      # Project metadata and dependencies\n└── requirements.txt    # Direct dependencies\n```\n\n## 🧪 Development\n\n### Tech Stack\n\n- **Backend**\n  - Flask: Web framework\n  - LangChain: RAG implementation\n  - ChromaDB: Vector storage\n  - Sentence Transformers: Text embeddings\n  - Groq: LLM provider\n\n- **Frontend**\n  - Tailwind CSS: Styling\n  - Vanilla JavaScript: Interactivity\n\n### Development Tools\n\n```bash\n# Install development dependencies\nuv pip install -e \".[dev]\"\n\n# Format code\nblack app/\nisort app/\n\n# Lint code\nflake8 app/\n```\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n\u003cdiv align=\"center\"\u003e\nMade with ❤️ using Flask, LangChain, and Groq\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnna301023%2Fclarus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnna301023%2Fclarus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnna301023%2Fclarus/lists"}