Skip to content

liang3030/llm-project

Repository files navigation

Use virtual environment

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install dependencies

pip install -r requirements.txt

Add dependencies and update requirements.txt

pip install <package_name>
pip freeze > requirements.txt

API Usage with cur

  1. store and process a PDF file
curl -X POST "http://localhost:8000/pdf-search/process-pdf" \
  -F "[email protected]" \
  -F "chunking_method=sentences"
  1. 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
  }'

About

learning llm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published