├── .gitignore ├── LICENSE ├── README.md ├── data ├── how-to-do-great-work.md ├── how-to-start-google.md ├── how-to-work-hard.md ├── superlinear-returns.md └── weird-languages.md ├── embed.py ├── output-50.jsonl ├── output.jsonl ├── pyproject.toml ├── rag_app ├── README.md ├── __init__.py ├── cli.py ├── evaluate.py ├── generate_synthetic_question.py ├── ingest.py ├── models.py ├── query.py └── src │ ├── chunking.py │ └── metrics.py ├── requirements.txt ├── test.py └── tests ├── __init__.py └── test_models.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/README.md -------------------------------------------------------------------------------- /data/how-to-do-great-work.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/data/how-to-do-great-work.md -------------------------------------------------------------------------------- /data/how-to-start-google.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/data/how-to-start-google.md -------------------------------------------------------------------------------- /data/how-to-work-hard.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/data/how-to-work-hard.md -------------------------------------------------------------------------------- /data/superlinear-returns.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/data/superlinear-returns.md -------------------------------------------------------------------------------- /data/weird-languages.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/data/weird-languages.md -------------------------------------------------------------------------------- /embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/embed.py -------------------------------------------------------------------------------- /output-50.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/output-50.jsonl -------------------------------------------------------------------------------- /output.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/output.jsonl -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/pyproject.toml -------------------------------------------------------------------------------- /rag_app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/README.md -------------------------------------------------------------------------------- /rag_app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /rag_app/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/cli.py -------------------------------------------------------------------------------- /rag_app/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/evaluate.py -------------------------------------------------------------------------------- /rag_app/generate_synthetic_question.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/generate_synthetic_question.py -------------------------------------------------------------------------------- /rag_app/ingest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/ingest.py -------------------------------------------------------------------------------- /rag_app/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/models.py -------------------------------------------------------------------------------- /rag_app/query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/query.py -------------------------------------------------------------------------------- /rag_app/src/chunking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/src/chunking.py -------------------------------------------------------------------------------- /rag_app/src/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/rag_app/src/metrics.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | lancedb 2 | tqdm 3 | openai -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/test.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jxnl/n-levels-of-rag/HEAD/tests/test_models.py --------------------------------------------------------------------------------