This is an AI-powered web application that allows users to upload documents, perform semantic searches using large language models (LLMs), and generate document summaries.
Clone the repository:
git clone https://github.com/Leg0shii/smart-documents.git
cd smart-documents
Set up the environment variables in backend/.env
:
FRONTEND_PORT=5000
BACKEND_PORT=8000
SECRET_KEY=your_secret_key
OPENAI_API_KEY=your_openai_api_key
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=smart_documents
POSTGRES_HOST=db
POSTGRES_PORT=5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
Run the application with Docker:
docker-compose up --build
Access the application:
http://localhost:5000
http://localhost:8000
To run locally without Docker:
Backend:
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
Frontend:
cd frontend
npm install
npm run dev
This project is licensed under the MIT License.