A python library to help you create chatbots easily with some more configurations
Project description
✨ Textbase is a framework for building chatbots using NLP and ML. ✨
Just implement the on_message
function in main.py
and Textbase will take care of the rest :)
Since it is just Python you can use whatever models, libraries, vector databases and APIs you want.
Coming soon:
- PyPI package
- Easy web deployment via textbase-client deploy
- SMS integration
- Native integration of other models (Claude, Llama, ...)
Installation
Make sure you have python version >=3.9.0
, it's always good to follow the docs 👈🏻
1. Through pip
pip install textbase-client
2. Local installation
Clone the repository and install the dependencies using Poetry (you might have to install Poetry first).
For proper details see here
git clone https://github.com/cofactoryai/textbase
cd textbase
poetry shell
poetry install
Start development server
If you're using the default template, remember to set the OpenAI API key in
main.py
.
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/openai-bot/main.py # You can create a main.py by yourself and add that path here. NOTE: The path should not be in quotes
Now go to the link in blue color which is shown on the CLI and you will be able to chat with your bot!
Other commands have been mentioned in the documentation website.
Have a look 😃!
Contributions
Contributions are welcome! Please open an issue or create a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for textbase_client-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7ddcfb1fd519e8d390ec91ad7b021fb01d4eac3984cd3d3fb1cdbf4bcaabf9 |
|
MD5 | 188ffd82aad9ffbb266dcd5b7b3c2b87 |
|
BLAKE2b-256 | af2178382e990d5eb41b29504de0972c3823159094cf9deeeb4926d5d0f3b5ce |