Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 856 Bytes

dev-docs.md

File metadata and controls

58 lines (37 loc) · 856 Bytes

Development documentation

Setup

  • pip install virtualenv - install venv manager
  • virtualenv venv - create virtual env
  • source venv/bin/activate - enter venv
  • pip install poetry - install package manager
  • poetry install - install all dependencies

Tests

With a local Qdrant instance running

poetry run pytest

or with a Docker container

./tests/integration-tests.sh

Run

Crawler

Crawl content of documentation website

poetry run python site_search/crawl.py 

It creates the file data/abstracts.jsonl.

Encode & upload

To encode the scraped abstract and upload the vectors

poetry run python site_search/encode.py 

Service

To access the search service built-on top of Qdrant.

poetry run python site_search/service.py

then go to

http://localhost:8000/docs