python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
pip install <package_name>
pip freeze > requirements.txt
- store and process a PDF file
curl -X POST "http://localhost:8000/pdf-search/process-pdf" \
-F "[email protected]" \
-F "chunking_method=sentences"
- search in the processed PDF file
curl -X POST "http://localhost:8000/pdf-search/search" \
-H "Content-Type: application/json" \
-d '{
"query": "what does this file about?",
"n_results": 1
}'