cohere-ai/sandbox-grounded-qa
Python
Captured source
source ↗cohere-ai/sandbox-grounded-qa
Description: A sandbox repo for grounded question answering with Cohere and Google Search
Language: Python
License: MIT
Stars: 137
Forks: 16
Open issues: 9
Created: 2022-10-11T12:20:46Z
Pushed: 2023-07-25T20:47:57Z
Default branch: main
Fork: no
Archived: yes
README:
################################################################################ # ____ _ ____ _ _ # # / ___|___ | |__ ___ _ __ ___ / ___| __ _ _ __ __| | |__ _____ __ # # | | / _ \| '_ \ / _ \ '__/ _ \ \___ \ / _` | '_ \ / _` | '_ \ / _ \ \/ / # # | |__| (_) | | | | __/ | | __/ ___) | (_| | | | | (_| | |_) | (_) > --serp_api_key
or with increased verbosity
python3 cli_demo.py --cohere_api_key --serp_api_key --verbosity 2
4. (Optional) Run the discord bot demo: You can create a discord both with this functionality by creating a bot account with message read and write permissions at https://discord.com/developers then running the following command
python3 discord_bot.py --cohere_api_key --serp_api_key --discord_key
5. (Optional) Run the demo as REST based web service:
python3 rest_bot.py --cohere_api_key --serp_api_key --discord_key
and send a request
curl --request POST --url http://localhost:5007/api/v1/ask --header 'content-type: application/json' --data '{ "question":"When was the fall of Constantinople?" }'Get support
If you have any questions or comments, please file an issue or reach out to us on Discord.
Contributors
If you would like to contribute to this project, please read CONTRIBUTORS.md in this repository, and sign the Contributor License Agreement before submitting any pull requests. A link to sign the Cohere CLA will be generated the first time you make a pull request to a Cohere repository.
License
Grounded Question Answering has an MIT license, as found in the LICENSE file.
Excerpt shown — open the source for the full document.