├── .gitignore ├── LICENSE ├── README.md ├── config.yml ├── docker-compose.yml ├── dockerfile-fastapi ├── dockerfile-gradio ├── img ├── chat-with-docs.png ├── chatbot_factory_line_pano.png ├── langsmith.png ├── localhost_6333_dashboard.png ├── localhost_7860_.png ├── localhost_8000_docs.png ├── process-docs.png └── scape.png ├── key.env.example ├── requirements-fastapi.txt ├── requirements-gradio.txt └── src ├── __init__.py ├── agent ├── __init__.py └── agent_handler.py ├── api ├── __init__.py ├── handlers.py ├── models.py └── routes.py ├── loader └── document.py ├── main.py ├── scraper ├── __init__.py └── scraper.py ├── template ├── prefix.txt ├── react_cot.txt └── suffix.txt ├── tools ├── __init__.py ├── doc_search.py └── setup.py ├── ui └── gradio_interface.py └── utils ├── __init__.py ├── config.py └── embedding_selector.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/README.md -------------------------------------------------------------------------------- /config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/config.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /dockerfile-fastapi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/dockerfile-fastapi -------------------------------------------------------------------------------- /dockerfile-gradio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/dockerfile-gradio -------------------------------------------------------------------------------- /img/chat-with-docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/chat-with-docs.png -------------------------------------------------------------------------------- /img/chatbot_factory_line_pano.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/chatbot_factory_line_pano.png -------------------------------------------------------------------------------- /img/langsmith.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/langsmith.png -------------------------------------------------------------------------------- /img/localhost_6333_dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/localhost_6333_dashboard.png -------------------------------------------------------------------------------- /img/localhost_7860_.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/localhost_7860_.png -------------------------------------------------------------------------------- /img/localhost_8000_docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/localhost_8000_docs.png -------------------------------------------------------------------------------- /img/process-docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/process-docs.png -------------------------------------------------------------------------------- /img/scape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/img/scape.png -------------------------------------------------------------------------------- /key.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/key.env.example -------------------------------------------------------------------------------- /requirements-fastapi.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/requirements-fastapi.txt -------------------------------------------------------------------------------- /requirements-gradio.txt: -------------------------------------------------------------------------------- 1 | gradio==4.13.0 2 | requests==2.31.0 -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/agent/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/agent/agent_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/agent/agent_handler.py -------------------------------------------------------------------------------- /src/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/api/handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/api/handlers.py -------------------------------------------------------------------------------- /src/api/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/api/models.py -------------------------------------------------------------------------------- /src/api/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/api/routes.py -------------------------------------------------------------------------------- /src/loader/document.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/loader/document.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/main.py -------------------------------------------------------------------------------- /src/scraper/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/scraper/scraper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/scraper/scraper.py -------------------------------------------------------------------------------- /src/template/prefix.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/template/prefix.txt -------------------------------------------------------------------------------- /src/template/react_cot.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/template/react_cot.txt -------------------------------------------------------------------------------- /src/template/suffix.txt: -------------------------------------------------------------------------------- 1 | Begin! 2 | 3 | {chat_history} 4 | Question: {input} 5 | {agent_scratchpad} -------------------------------------------------------------------------------- /src/tools/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tools/doc_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/tools/doc_search.py -------------------------------------------------------------------------------- /src/tools/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/tools/setup.py -------------------------------------------------------------------------------- /src/ui/gradio_interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/ui/gradio_interface.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/utils/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/utils/config.py -------------------------------------------------------------------------------- /src/utils/embedding_selector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kylejtobin/rag_bot/HEAD/src/utils/embedding_selector.py --------------------------------------------------------------------------------