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.18.tar.gz
.
File metadata
- Download URL: reliability_chatbot-0.18.tar.gz
- Upload date:
- Size: 86.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe290a0f7b1b5dcad882540c732ecfe45e426e8c6092b5657ebcfe511b94009 |
|
MD5 | 7df4ea2c8d79c1907c646ef8d089cba3 |
|
BLAKE2b-256 | d413c4c91b76b8bf3c548de41396bdcdac2099fcab7770e73f9824cd94787cf2 |
File details
Details for the file reliability_chatbot-0.18-py3-none-any.whl
.
File metadata
- Download URL: reliability_chatbot-0.18-py3-none-any.whl
- Upload date:
- Size: 173.4 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 | 89c633bae55c3341060329b45b29b184172b2bcb1311abf75d80ba540eaebfb0 |
|
MD5 | 026bd174a27f1814a09d569f1fdb66f4 |
|
BLAKE2b-256 | b8e20ecd1c8111b06e8ddd9c06351e31d1114702233a50005a9797677aef3da9 |