A Django app for chatbot functionality.
Project description
My Django Package
My Django Package is a web application for managing and querying documents using a chatbot interface. It supports multiple file formats, extracts text from documents, and uses an AI model to answer questions based on the content of uploaded documents.
Features
- View and manage chat sessions
Installation
Prerequisites
- Python 3.11
- Django 3.2 or higher
Steps
-
Install the package:
pip install reliability-chatbot
-
Set up a virtual environment:
pip install virtualenv virtualenv env # On Windows .\env\Scripts\activate # On macOS/Linux source env/bin/activate
-
Set up the Django project:
python manage.py makemigrations python manage.py migrate python manage.py createsuperuser python manage.py runserver
-
Open your browser and navigate to:
http://127.0.0.1:8000/
This will display your Django project with the integrated
app1
app.
Usage
-
Integrate the library in your code: settings.py:
Add
app1
to yourINSTALLED_APPS
list:INSTALLED_APPS = [ 'app1', ]
views.py:
from app1.views import save_to_database # to save questions and answers in the database
from app1.views import get_answer_from_database # to check answers from database before asking llm
urls.py:
from django.urls import path
from app1.views import submit_feedback # to send feedback for the generated or retrieved answer
urlpatterns = [
path('submit_feedback/', submit_feedback, name='submit_feedback'),
# other paths...
]
By following these instructions, you should be able to set up and use your Django package correctly.
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
File details
Details for the file reliability_chatbot-0.23.tar.gz
.
File metadata
- Download URL: reliability_chatbot-0.23.tar.gz
- Upload date:
- Size: 67.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f455dbbbc0bed84552d3702945e422f778897957e1d3220d66b48f749b48843f |
|
MD5 | 6509e79b7d1f6837f6a8c067bafa83b5 |
|
BLAKE2b-256 | 3e044b843390377b07175d2ae98b06a2b31376c23ff51ed70f385e0e5d4c72e7 |
File details
Details for the file reliability_chatbot-0.23-py3-none-any.whl
.
File metadata
- Download URL: reliability_chatbot-0.23-py3-none-any.whl
- Upload date:
- Size: 135.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66304413781e23f3ea82cfd8df709716efc5d86591539beb6c0841ea2e06734 |
|
MD5 | bc38bb108f56dcb08ff9e1a8c6b5c8e8 |
|
BLAKE2b-256 | bb26d3e9d976d701f4256b7cc046cd30ded63b3b717beafa65295896a8676005 |