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.
Follow our contributions guide for more details!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textbase_client-0.1.8.tar.gz.
File metadata
- Download URL: textbase_client-0.1.8.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69168b715dfb85b8806cd0be49924b75d64642360cbea111904902929594b66a
|
|
| MD5 |
07c0289f6d877b24870a846b2c1df973
|
|
| BLAKE2b-256 |
3516b1f58ee8068e59134ef9fd5411756baf2f67f2bb2e424f8ef092860cc08e
|
File details
Details for the file textbase_client-0.1.8-py3-none-any.whl.
File metadata
- Download URL: textbase_client-0.1.8-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01552eb01d5ba7dd2d687d0c455314e0e9319ed2a82bd3d06ed607f0648bd8fd
|
|
| MD5 |
6eac5fba4eb24734e1bda8c557c3c3d2
|
|
| BLAKE2b-256 |
1bd448b93cfdd28a22214277bebd62e2e84496e436e66650af75258abfcf51a9
|