├── .gitignore ├── .tool-versions ├── 01_openai_completions ├── chat_completions.py └── completions.py ├── 02_rag_basic ├── load_docs.py ├── rag.py └── vectorize.py ├── 03_rag_enhancements ├── ensemble_retriever.py ├── flare.py ├── hyde.py └── multi_query_retriever.py ├── LICENSE ├── README.md ├── poetry.lock ├── poetry.toml └── pyproject.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/.gitignore -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | python 3.11.5 2 | poetry 1.6.1 3 | -------------------------------------------------------------------------------- /01_openai_completions/chat_completions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/01_openai_completions/chat_completions.py -------------------------------------------------------------------------------- /01_openai_completions/completions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/01_openai_completions/completions.py -------------------------------------------------------------------------------- /02_rag_basic/load_docs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/02_rag_basic/load_docs.py -------------------------------------------------------------------------------- /02_rag_basic/rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/02_rag_basic/rag.py -------------------------------------------------------------------------------- /02_rag_basic/vectorize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/02_rag_basic/vectorize.py -------------------------------------------------------------------------------- /03_rag_enhancements/ensemble_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/03_rag_enhancements/ensemble_retriever.py -------------------------------------------------------------------------------- /03_rag_enhancements/flare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/03_rag_enhancements/flare.py -------------------------------------------------------------------------------- /03_rag_enhancements/hyde.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/03_rag_enhancements/hyde.py -------------------------------------------------------------------------------- /03_rag_enhancements/multi_query_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/03_rag_enhancements/multi_query_retriever.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/README.md -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/poetry.lock -------------------------------------------------------------------------------- /poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | prefer-active-python = true 3 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/os1ma/langchain-rag-enhancements/HEAD/pyproject.toml --------------------------------------------------------------------------------