Skip to main content

Textbase python library

Documentation

✨ 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:

Demo Deploy GIF

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! Local UI

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!

Release files for textbase-client 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textbase-client 0.1.8
File Size Uploaded
textbase_client-0.1.8.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textbase-client 0.1.8
File Interpreter ABI Platform
textbase_client-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / textbase_client-0.1.8.tar.gz

Download URL textbase_client-0.1.8.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
69168b715dfb85b8806cd0be49924b75d64642360cbea111904902929594b66a
BLAKE2b-256 checksum
How to use checksums
3516b1f58ee8068e59134ef9fd5411756baf2f67f2bb2e424f8ef092860cc08e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

Release files / textbase_client-0.1.8-py3-none-any.whl

Download URL textbase_client-0.1.8-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01552eb01d5ba7dd2d687d0c455314e0e9319ed2a82bd3d06ed607f0648bd8fd
BLAKE2b-256 checksum
How to use checksums
1bd448b93cfdd28a22214277bebd62e2e84496e436e66650af75258abfcf51a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page