├── .gitignore ├── CONTRIBUTORS.md ├── LICENSE ├── README.md ├── __init__.py ├── cli_demo.py ├── discord_bot.py ├── qa ├── __init__.py ├── answer.py ├── bot.py ├── model.py ├── prompt_data │ ├── get_contextual_search_query.prompt │ └── get_sample_answer.prompt ├── search.py └── util.py ├── requirements.txt ├── rest_demo.py ├── setup.py └── streamlit_demo.py /.gitignore: -------------------------------------------------------------------------------- 1 | qa/__pycache__/ 2 | .secrets/ 3 | -------------------------------------------------------------------------------- /CONTRIBUTORS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/CONTRIBUTORS.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/__init__.py -------------------------------------------------------------------------------- /cli_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/cli_demo.py -------------------------------------------------------------------------------- /discord_bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/discord_bot.py -------------------------------------------------------------------------------- /qa/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/__init__.py -------------------------------------------------------------------------------- /qa/answer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/answer.py -------------------------------------------------------------------------------- /qa/bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/bot.py -------------------------------------------------------------------------------- /qa/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/model.py -------------------------------------------------------------------------------- /qa/prompt_data/get_contextual_search_query.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/prompt_data/get_contextual_search_query.prompt -------------------------------------------------------------------------------- /qa/prompt_data/get_sample_answer.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/prompt_data/get_sample_answer.prompt -------------------------------------------------------------------------------- /qa/search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/search.py -------------------------------------------------------------------------------- /qa/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/qa/util.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/requirements.txt -------------------------------------------------------------------------------- /rest_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/rest_demo.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/setup.py -------------------------------------------------------------------------------- /streamlit_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cohere-ai/sandbox-grounded-qa/HEAD/streamlit_demo.py --------------------------------------------------------------------------------