├── .gitignore ├── LICENSE.md ├── README.md ├── examples ├── HybridPGVector.py └── main.py ├── hector_rag ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-310.pyc │ ├── __init__.cpython-312.pyc │ ├── hector.cpython-310.pyc │ └── hector.cpython-312.pyc ├── core │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ └── base.cpython-312.pyc │ └── base.py ├── fusion │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ └── reciprocal_rank_fusion.cpython-312.pyc │ └── reciprocal_rank_fusion.py ├── hector.py ├── prompts │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-312.pyc │ │ └── templates.cpython-312.pyc │ └── templates.py ├── retrievers │ ├── __init__.py │ ├── graph_retriever.py │ ├── hybrid_retriever.py │ ├── keyword_retriever.py │ └── semantic_retriever.py └── utils │ ├── __init__.py │ ├── __pycache__ │ ├── __init__.cpython-312.pyc │ └── base.cpython-312.pyc │ └── base.py ├── poetry.lock ├── poetry.toml └── pyproject.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/README.md -------------------------------------------------------------------------------- /examples/HybridPGVector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/examples/HybridPGVector.py -------------------------------------------------------------------------------- /examples/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/examples/main.py -------------------------------------------------------------------------------- /hector_rag/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/__init__.py -------------------------------------------------------------------------------- /hector_rag/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /hector_rag/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/__pycache__/hector.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/__pycache__/hector.cpython-310.pyc -------------------------------------------------------------------------------- /hector_rag/__pycache__/hector.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/__pycache__/hector.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/core/__init__.py -------------------------------------------------------------------------------- /hector_rag/core/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/core/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/core/__pycache__/base.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/core/__pycache__/base.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/core/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/core/base.py -------------------------------------------------------------------------------- /hector_rag/fusion/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hector_rag/fusion/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/fusion/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/fusion/__pycache__/reciprocal_rank_fusion.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/fusion/__pycache__/reciprocal_rank_fusion.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/fusion/reciprocal_rank_fusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/fusion/reciprocal_rank_fusion.py -------------------------------------------------------------------------------- /hector_rag/hector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/hector.py -------------------------------------------------------------------------------- /hector_rag/prompts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hector_rag/prompts/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/prompts/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/prompts/__pycache__/templates.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/prompts/__pycache__/templates.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/prompts/templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/prompts/templates.py -------------------------------------------------------------------------------- /hector_rag/retrievers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/retrievers/__init__.py -------------------------------------------------------------------------------- /hector_rag/retrievers/graph_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/retrievers/graph_retriever.py -------------------------------------------------------------------------------- /hector_rag/retrievers/hybrid_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/retrievers/hybrid_retriever.py -------------------------------------------------------------------------------- /hector_rag/retrievers/keyword_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/retrievers/keyword_retriever.py -------------------------------------------------------------------------------- /hector_rag/retrievers/semantic_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/retrievers/semantic_retriever.py -------------------------------------------------------------------------------- /hector_rag/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hector_rag/utils/__pycache__/__init__.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/utils/__pycache__/__init__.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/utils/__pycache__/base.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/utils/__pycache__/base.cpython-312.pyc -------------------------------------------------------------------------------- /hector_rag/utils/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/hector_rag/utils/base.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/poetry.lock -------------------------------------------------------------------------------- /poetry.toml: -------------------------------------------------------------------------------- 1 | [virtualenvs] 2 | in-project = true -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zyndai/hector-rag/HEAD/pyproject.toml --------------------------------------------------------------------------------