Spaces:
Running
Running
Download backend/pipeline/__init__.py from diptidhawade/NoteScanner: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/diptidhawade/NoteScanner/resolve/main/backend/pipeline/__init__.py
- Command line
-
hf download hf://spaces/diptidhawade/NoteScanner/backend/pipeline/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/diptidhawade/NoteScanner/resolve/main/backend/pipeline/__init__.py
533 Bytes
| """ | |
| The notes pipeline, built on LlamaIndex with Postgres (pgvector) as its store: | |
| models.py the search model, the re-checking model and the language model | |
| indexing.py text β passages β meaning fingerprints β Postgres (with a keyword index) | |
| retrieval.py question β keyword + meaning search in each place β re-check β best passages | |
| generation.py passages + question β answer (or flashcards, quizzes, summaries) | |
| Reading text out of PDFs and photos happens before this, in backend/ocr.py. | |
| """ | |