├── .codespellignore ├── .env.example ├── .github └── workflows │ └── unit-tests.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── langgraph.json ├── pyproject.toml ├── src ├── index_graph │ ├── __init__.py │ ├── configuration.py │ ├── graph.py │ └── state.py ├── retrieval_graph │ ├── __init__.py │ ├── configuration.py │ ├── graph.py │ ├── prompts.py │ ├── researcher_graph │ │ ├── __init__.py │ │ ├── graph.py │ │ └── state.py │ └── state.py ├── sample_docs.json ├── self_rag │ ├── __init__.py │ ├── graph.py │ ├── nodes │ │ ├── answer_grader.py │ │ ├── generate.py │ │ ├── hallucination_grader.py │ │ ├── question_rewriter.py │ │ └── retrieval_grader.py │ └── state.py ├── shared │ ├── __init__.py │ ├── configuration.py │ ├── retrieval.py │ ├── state.py │ └── utils.py └── simple_rag │ ├── __init__.py │ ├── configuration.py │ ├── graph.py │ └── state.py ├── static └── studio_ui.png └── tests ├── __init__.py ├── integration_tests ├── __init__.py └── test_graph.py └── unit_tests ├── __init__.py └── test_configuration.py /.codespellignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/unit-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/.github/workflows/unit-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/README.md -------------------------------------------------------------------------------- /langgraph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/langgraph.json -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/index_graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/index_graph/__init__.py -------------------------------------------------------------------------------- /src/index_graph/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/index_graph/configuration.py -------------------------------------------------------------------------------- /src/index_graph/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/index_graph/graph.py -------------------------------------------------------------------------------- /src/index_graph/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/index_graph/state.py -------------------------------------------------------------------------------- /src/retrieval_graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/__init__.py -------------------------------------------------------------------------------- /src/retrieval_graph/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/configuration.py -------------------------------------------------------------------------------- /src/retrieval_graph/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/graph.py -------------------------------------------------------------------------------- /src/retrieval_graph/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/prompts.py -------------------------------------------------------------------------------- /src/retrieval_graph/researcher_graph/__init__.py: -------------------------------------------------------------------------------- 1 | """Researcher Graph Module.""" 2 | -------------------------------------------------------------------------------- /src/retrieval_graph/researcher_graph/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/researcher_graph/graph.py -------------------------------------------------------------------------------- /src/retrieval_graph/researcher_graph/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/researcher_graph/state.py -------------------------------------------------------------------------------- /src/retrieval_graph/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/retrieval_graph/state.py -------------------------------------------------------------------------------- /src/sample_docs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/sample_docs.json -------------------------------------------------------------------------------- /src/self_rag/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/__init__.py -------------------------------------------------------------------------------- /src/self_rag/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/graph.py -------------------------------------------------------------------------------- /src/self_rag/nodes/answer_grader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/nodes/answer_grader.py -------------------------------------------------------------------------------- /src/self_rag/nodes/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/nodes/generate.py -------------------------------------------------------------------------------- /src/self_rag/nodes/hallucination_grader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/nodes/hallucination_grader.py -------------------------------------------------------------------------------- /src/self_rag/nodes/question_rewriter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/nodes/question_rewriter.py -------------------------------------------------------------------------------- /src/self_rag/nodes/retrieval_grader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/nodes/retrieval_grader.py -------------------------------------------------------------------------------- /src/self_rag/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/self_rag/state.py -------------------------------------------------------------------------------- /src/shared/__init__.py: -------------------------------------------------------------------------------- 1 | """Shared utilities module.""" 2 | -------------------------------------------------------------------------------- /src/shared/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/shared/configuration.py -------------------------------------------------------------------------------- /src/shared/retrieval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/shared/retrieval.py -------------------------------------------------------------------------------- /src/shared/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/shared/state.py -------------------------------------------------------------------------------- /src/shared/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/shared/utils.py -------------------------------------------------------------------------------- /src/simple_rag/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/simple_rag/__init__.py -------------------------------------------------------------------------------- /src/simple_rag/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/simple_rag/configuration.py -------------------------------------------------------------------------------- /src/simple_rag/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/simple_rag/graph.py -------------------------------------------------------------------------------- /src/simple_rag/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/src/simple_rag/state.py -------------------------------------------------------------------------------- /static/studio_ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/static/studio_ui.png -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/integration_tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Integration tests for your graph.""" 2 | -------------------------------------------------------------------------------- /tests/integration_tests/test_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/tests/integration_tests/test_graph.py -------------------------------------------------------------------------------- /tests/unit_tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/tests/unit_tests/__init__.py -------------------------------------------------------------------------------- /tests/unit_tests/test_configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucebert/langchain-doc-graph/HEAD/tests/unit_tests/test_configuration.py --------------------------------------------------------------------------------