File size: 533 Bytes
9c56a9c
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""
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.
"""