{"id":17973853,"url":"https://github.com/leg0shii/smart-documents","last_synced_at":"2026-02-23T07:04:06.243Z","repository":{"id":259866868,"uuid":"863695190","full_name":"Leg0shii/smart-documents","owner":"Leg0shii","description":"A web application that enables users to upload documents and utilize AI techniques like semantic search and text summarization for efficient analysis. Built with Python, FastAPI, Svelte, PostgreSQL, and LangChain.","archived":false,"fork":false,"pushed_at":"2024-10-28T11:01:45.000Z","size":410,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-28T14:21:44.924Z","etag":null,"topics":["ai","document-analysis","fastapi","langchain","semantic-search"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leg0shii.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":"2024-09-26T18:37:55.000Z","updated_at":"2024-10-28T11:01:48.000Z","dependencies_parsed_at":"2024-10-28T14:21:55.499Z","dependency_job_id":"ba236058-0917-4c00-bc93-034f9fb6997f","html_url":"https://github.com/Leg0shii/smart-documents","commit_stats":null,"previous_names":["leg0shii/smart-documents"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leg0shii%2Fsmart-documents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leg0shii%2Fsmart-documents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leg0shii%2Fsmart-documents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leg0shii%2Fsmart-documents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leg0shii","download_url":"https://codeload.github.com/Leg0shii/smart-documents/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222083668,"owners_count":16928134,"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":["ai","document-analysis","fastapi","langchain","semantic-search"],"created_at":"2024-10-29T17:03:53.438Z","updated_at":"2025-10-26T01:14:56.450Z","avatar_url":"https://github.com/Leg0shii.png","language":"Python","readme":"# AI-Powered Document Search and Analysis\n\nThis is an AI-powered web application that allows users to upload documents, perform semantic searches using large language models (LLMs), and generate document summaries.\n\n## Features\n\n- **Document Upload**: Upload documents for search and analysis.\n- **Semantic Search**: Perform AI-based contextual searches using LLMs.\n- **Chat with Documents**: Chat with your documents using LLMs.\n- **Text Summarization**: Generate concise summaries of document content.\n- **User Authentication**: Secure login and registration with JWT tokens.\n\n## Tech Stack\n\n- **Backend**: Python (FastAPI)\n- **Frontend**: Svelte\n- **Database**: PostgreSQL\n- **AI Libraries**: LangChain, OpenAI\n- **Containerization**: Docker, Docker Compose\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/Leg0shii/smart-documents.git\n   cd smart-documents\n   ```\n\n2. **Set up the environment variables** in `backend/.env`:\n   ```env\n   FRONTEND_PORT=5000\n   BACKEND_PORT=8000\n   SECRET_KEY=your_secret_key\n   OPENAI_API_KEY=your_openai_api_key\n   POSTGRES_USER=postgres\n   POSTGRES_PASSWORD=postgres\n   POSTGRES_DB=smart_documents\n   POSTGRES_HOST=db\n   POSTGRES_PORT=5432\n   DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}\n   ```\n\n3. **Run the application with Docker**:\n   ```bash\n   docker-compose up --build\n   ```\n\n4. **Access the application**:\n   - Frontend: `http://localhost:5000`\n   - Backend: `http://localhost:8000`\n\n## Usage\n\n- **Register/Login**: Create an account or log in.\n- **Upload Documents**: Upload your documents for search.\n- **Perform Search**: Use the search bar to find documents with custom top K results.\n- **Get Summaries**: Retrieve summaries of the search results.\n\n## Development\n\nTo run locally without Docker:\n\n- **Backend**:\n  ```bash\n  cd backend\n  pip install -r requirements.txt\n  uvicorn app.main:app --reload\n  ```\n\n- **Frontend**:\n  ```bash\n  cd frontend\n  npm install\n  npm run dev\n  ```\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleg0shii%2Fsmart-documents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleg0shii%2Fsmart-documents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleg0shii%2Fsmart-documents/lists"}