This project is a information retrieval system that allows users to upload and search documents (PDF & TXT files). It uses TF-IDF vectorization for efficient information retrieval. The backend is built with Flask, while the frontend is built with Next.js.
Ensure you have the following installed:
- Endpoint:
POST /upload - Description: Uploads PDF and TXT files.
- Usage:
curl -X POST -F "file=@document.pdf" http://127.0.0.1:5000/upload- Endpoint:
GET /search?q=<query> - Description: Searches for a keyword in the uploaded files.
- Usage:
curl -X GET "http://127.0.0.1:5000/search?q=information"Feel free to submit issues or pull requests to improve this project!