Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cohere's NLP model added and utilised it's methods to create bots in testbase. #117

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

praveensinghrajput23
Copy link

@praveensinghrajput23 praveensinghrajput23 commented Sep 3, 2023

Scope

Cohere NLP added by default it uses Cohere's Command model.

  • generate,chat,summarize capabilities of cohere's client added.
  • Example added for each of the bot type in examples directory cohere-chat-bot,cohere-prompt-bot,cohere-summarize-bot.
  • Documented the code and also added examples in docs.

Steps to use the demo bots:

  • Go to https://dashboard.cohere.com/api-keys and generate a Trial Token.
  • Paste the token in any of the demo bots created for cohere model in Cohere.api_key.
  • Run the following command:
    • if installed locally
    poetry run python textbase/textbase_cli.py test
    • if installed through pip
    textbase-client test
    Response:
Path to the main.py file: examples/cohere-chat-bot/main.py # You can create a main.py by yourself and add that path here. NOTE: The path should not be in quotes

Screenshots

  • Cohere's Chat bot example

Screenshot from 2023-09-03 23-41-56

  • Cohere's Prompt bot example

Screenshot from 2023-09-03 23-47-28

  • Cohere's Summarize bot example

Code improvements

  • Updated the get content method instead of making a new one for cohere only, update the existing code that takes an optional parameter client to return response on that basis,

Developer checklist

  • I’ve manually tested that code works locally on desktop and mobile browsers.
  • I’ve reviewed my code.
  • I’ve removed all my personal credentials (API keys etc.) from the code.

@vercel
Copy link

vercel bot commented Sep 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
textbase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2023 8:42pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant